Chi-Tech
|
Functions | |
Returns | chi_lua::chiPhysicsTransportXSCreate () |
void | chi_lua::chiPhysicsTransportXSSet (int XS_handle, int OperationIndex, varying Information) |
void | chi_lua::chiPhysicsTransportXSGet (int XS_handle) |
Returns | chi_lua::chiPhysicsTransportXSMakeCombined (table Combinations) |
void | chi_lua::chiPhysicsTransportXSSetCombined (int XS_handle, table Combinations) |
void | chi_lua::chiPhysicsTransportXSExportToChiTechFormat (int XS_handle, string file_name) |
Returns chi_lua::chiPhysicsTransportXSCreate | ( | ) |
Creates a stand-alone transport cross section.
test/modules/LinearBoltzmannSolvers/MGDiffusion_KEigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_1.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_3.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport2D_3.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport2D_2.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_2.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/c5g7/materials/materials.lua
Definition at line 792 of file lua_functions.c.
void chi_lua::chiPhysicsTransportXSExportToChiTechFormat | ( | int | XS_handle, |
string | file_name | ||
) |
Exports a cross section to ChiTech format.
XS_handle | int Handle to the cross section to be exported. |
file_name | string The name of the file to which the XS is to be exported. |
Definition at line 954 of file lua_functions.c.
void chi_lua::chiPhysicsTransportXSGet | ( | int | XS_handle | ) |
Obtains a lua table of all the cross section values.
XS_handle | int Handle to the cross section to be modified. |
To print the contents of the table, execute the following:
test/modules/LinearBoltzmannSolvers/MGDiffusion_KEigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/c5g7/materials/materials.lua
Definition at line 874 of file lua_functions.c.
Returns chi_lua::chiPhysicsTransportXSMakeCombined | ( | table | Combinations | ) |
Makes a combined cross section from multiple other cross sections.
Combinations | table A lua-table with each element another table containing a handle to an existing xs and a scalar multiplier. |
Example lua code:
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_1.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_3.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport2D_3.lua
Definition at line 914 of file lua_functions.c.
void chi_lua::chiPhysicsTransportXSSet | ( | int | XS_handle, |
int | OperationIndex, | ||
varying | Information | ||
) |
Sets the properties of a transport cross section.
XS_handle | int Handle to the cross section to be modified. |
OperationIndex | int Method used for setting the xs property. |
Information | varying Varying information depending on the operation. |
SINGLE_VALUE
Sets the property based on a single value. Requires a single value as additional information. As a simple example consider the case where the user would like to set a single constant thermal conductivity. This can be achieved with
FROM_ARRAY
Sets a property based on a Lua array indexed from 1 to N. Internally will be converted to 0 to N-1. This method can be used to set mutli-group cross sections or sources.
SIMPLEXS0
Makes a simple material with no transfer matrix just . Expects two values:
SIMPLEXS1
Makes a simple material with isotropic transfer matrix (L=0) and mostly down scattering but with a few of the last groups subject to up-scattering. Expects three values values:
CHI_XSFILE
Loads transport cross sections from CHI type cross section files. Expects to be followed by a filepath specifying the xs-file.
Example lua code:
test/modules/LinearBoltzmannSolvers/MGDiffusion_KEigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_1.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_3.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport2D_3.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport2D_2.lua
test/modules/LinearBoltzmannSolvers/Transport_Transient/TransientTransport1D_2.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/utils/QBlock_materials.lua
test/modules/LinearBoltzmannSolvers/Transport_Keigen/c5g7/materials/materials.lua
Definition at line 855 of file lua_functions.c.
void chi_lua::chiPhysicsTransportXSSetCombined | ( | int | XS_handle, |
table | Combinations | ||
) |
Sets a combined cross section from multiple other cross sections. This function can be called multiple times on the same cross section handle.
XS_handle | int Handle to the cross section to be modified. |
Combinations | table A lua-table with each element another table containing a handle to an existing xs and a scalar multiplier. |
Example lua code:
Definition at line 946 of file lua_functions.c.