JakobCHR.com
 
Quick Navigation:
 
Personal:
 Go to Home
 MS Research
 PhD Research
 Curriculum Vitae

General:
 Linux

Soon to come:
 Matlab
 On-line Stores
 Cycling
 Medicine & Health
 LaTeX
 OOP & C++
 Sony PCM-R500 DAT


next up previous contents index
Next: The main procedure Up: Neutronics Implementation Previous: Overview   Contents   Index


Arrangement of source code--Contents of the different modules

As stated earlier the source code is divided up in different parts, the so-called modules. Every module holds a group of similar functions. At present the source has 5 modules besides the main source code collected in the file project.c and these are shown below

.
neutroni.c: Main module which contains functions specific to the neutronics computations.
>
Generation of a computational grid suitable for the neutronics calculations.
>
Performs a linear interpolation in an one dimensional table of reflector cross sections (see section 3.5.7).
>
Performs a linear interpolation in a two dimensional table of fuel cross sections (see section 3.5.8).
>
Calculate the non-zero block matrices in the eigenvalue problem, ie calculate the matrices B and C in (1.91).
>
Reduces all steplength in the computational grid, hk, by a factor of 2.
>
Read a reflector cross section set.
>
Read a fuel cross section set.
>
Read a two dimensional table of fuel cross section sets.
>
Read a "table" for the bottom reflector.
>
Read an one dimensional table of reflector cross section sets.
>
Set up all variables for the neutronics calculation.
>
Read and parse the input file.
>
Calculate the axial power distribution (in the shape of a linear heat generation rate at node k, qk') in the reactor core.
>
Main function which performs all actions for the neutronics computation.
.
memalloc.c: Functions related to dynamically allocated arrays.
>
Function which is called when an allocation error is encountered.
>
Allocate a vector of double type elements.
>
Allocate a matrix of double type elements.
>
Allocate a vector of matrices with elements of double type.
>
Free memory occupied by a vector of double type elements previously allocated.
>
Free memory occupied by a matrix of double type elements previously allocated.
>
Free memory occupied by a vector of matrices with double type elements previously allocated.
.
io.c: Functions related to general input and output.
>
Function called when a file I/O error is encountered.
>
Write a vector of double type elements to screen.
>
Write a matrix of double type elements to screen.
>
Write a vector of matrices with double type elements to screen.
>
Write a vector of double type elements to a file.
>
Write a matrix of double type elements to a file.
>
Write a vector of matrices with double type elements to a file.
>
Read a vector of double type elements from a file.
>
Read a matrix of double type elements from a file.
.
mathlib1.c: Functions which perform mathematical operations to arguments of vector and matrix type (all numerical elements are in double precision).
>
Addition of two square matrices.
>
Subtraction of two square matrices.
>
Multiplication of two square matrices.
>
Multiplication of a scalar by a matrix.
>
Multiplication of a square matrix by a (column) vector.
>
Addition of two vectors.
>
Subtraction of two vectors.
>
Multiplication of a scalar by a vector.
>
Multiplication of a square matrix by a diagonal matrix.
>
Multiplication of a diagonal matrix by a square matrix.
>
Multiplication of a diagonal matrix by a vector.
>
Performs Gaussian elimination on a square matrix.
>
Inverts a square matrix using simple Gaussian elimination.
>
Solves a block-tri-diagonal system of equations.
>
Multiplication of a block-diagonal matrix by a block-vector.
>
Addition of a block-tri-diagonal matrix and a block-diagonal matrix.
>
Multiplication of a block-tri-diagonal matrix by a block-vector.
>
Multiplication of a block-tri-diagonal matrix by a scalar.
>
Returns the largest absolute matrix element with sign.
>
Performs the power iterations on the block-tri-diagonal eigenvalue problem.
>
Returns the infinity norm of the matrix resulting from subtraction of the two square matrices.
>
Performs the fractional-iteration method on the block-tri-diagonal eigenvalue problem.
>
Returns the sum of all elements of a vector.
>
Returns the smallest interval (ie the limits of the interval) from the numbers in a vector which includes a specified value.
.
parser.c: Functions which parse an input file.
>
Returns a line from a input file stream.
>
Reads and parses an input file and returns the resulting characters.
.
mlab_io.c: Functions which write a vector and matrix in Matlab format.
>
Write a matrix to a Matlab mat-file.
>
Write a vector to a Matlab mat-file.


next up previous contents index
Next: The main procedure Up: Neutronics Implementation Previous: Overview   Contents   Index  
 
 
 
Revision 2.0, Copyright © 1999-2004 Jakob Christensen
http://www.JakobCHR.com
E-Mail: webmaster@JakobCHR.com
Top Quality
Developed with

Danish
Brain Power
Linux Powered!