User Input
The Lionbolt input file is intended to be structured with some degree of freedom. Besides the PROBLEM, there is absolutely no requirement on the order in which various headers are defined. However, ordering of duplicate subheaders does in general matter, and determines important properties of the solve, for one example, the order in which to transport particles (see the PARTICLES header), or the order in which slabs are stacked (see the MESH header).
Note the following generally:
The input file is case insensitive.
Use # to make a comment in the input file.
Blank lines are not read, anywhere.
The number of spaces/tabs following a key does not matter.
In the following guide, the keys which activate some option are listed first like KEY, but if the key demands variable inputs then they are listed afterwards like val1 val2 val3, then formatted like KEY val1 val2 val3. If the other inputs are fixed options, they will be denoted like [ opt1 | opt2 | opt 3 ]. Required options are designated with REQUIRED. Options that are required depending on a particular option are designated like REQUIRED : PROBLEM GENERAL.
Input Headers
PROBLEM
This key indicates the problem type to be solved by Lionbolt.
PROBLEM [ GENERAL | SLAB ]
PROBLEM [ GENERAL | SLAB ] REQUIRED
MESH
This key defines the mesh to use for the problem.
MESH
GMSH /absolute/path/to/mesh/file.msh
TRANSLATE Tx Ty Tz
SCALE Sx Sy Sz
SLAB
THICKNESS T
ELEMENTS N
STRUCTURE [ LINEAR | LOGARITHMIC ]
MATERIAL mat
END
END
GMSH /absolute/path/to/mesh/file.msh REQUIRED IF : PROBLEM GENERAL
TRANSLATE Tx Ty Tz
SCALE Sx Sy Sz
SLAB REQUIRED IF : PROBLEM SLAB
MATERIALS
This key defines the materials to be used in the problem. Note, the material definitions given here are entirely used to construct the cross section library with NittanyPhysics. If the user wants to provide their own cross section library (WIP), they do not need a materials header.
In general, the user should ensure that the number of materials specified here match up with the materials specified in the mesh, whether in a mesh file or in the SLAB subheaders in MESH.
MATERIALS
[MATERIAL NAME]
DENSITY rho
Atom NAtoms
END
END
[MATERIAL NAME] REQUIRED
DENSITY rho REQUIRED
Atom NAtoms REQUIRED
ANGULAR
ANGULAR
PNSCATTERING L
END
PNSCATTERING L REQUIRED
PARTICLES
PARTICLES
[ ELECTRONS | PHOTONS ]
STRUCTURE
ANGULAR [ SN ]
SOLVER [ GMRES | SI ]
NOSCATTER
END
END
[ ELECTRONS | PHOTONS ] REQUIRED
BEAM
Example Input File
Below, we give an input file that would allow the user to perform coupled photon-electron transport in a 30 x 30 x 30 cm water tank.
PROBLEM GENERAL
MESH
GMSH /absolute/path/to/mesh/file.msh
SCALE 30.0 30.0 30.0
END
MATERIALS
WATER
DENSITY 1.0 # g / cc
H 2
O 1
END
END
ANGULAR
PNSCATTERING 15
END
PARTICLES
PHOTONS
STRUCTURE 0.001:5.4:25
ANGULAR SN
SOLVER GMRES
NOSCATTER
END
END
BEAM
POLYCHROMATIC /absolute/path/to/linac/spectrum.txt
AXIS 0.0 0.0 -1.0
ORIGIN 0.0 0.0 130.0
CUTOUT RECTANGLE 100.0 10.0 10.0 0.0
SPHERICAL
END
STORAGELIMITED
DEBUG