The tem_bc_header is providing an overview of the boundary conditions defined in the configuration of the solver.
It provides collects the labels and the kinds of the configured BCs, and connects them to the corresponding boundaries defined in the mesh, given in the BC_prop.
This type describes the general, not solver specific, header information given in the Lua configuration of the solvers.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | nBCs | ||||
character(len=LabelLen), | private, | allocatable | :: | label(:) | Label for each boundary condition |
||
character(len=LabelLen), | private, | allocatable | :: | BC_kind(:) | The kind of each boundary condition |
||
integer, | private, | allocatable | :: | BC_ID(:) | ID of the boundary in the mesh property, as defined by the bc_prop If an entry is not positive, there is no corresponding boundary condition found. |
This subroutine reads in the boundary conditions specified in the configuration file, and connects them to the corresponding entries in the treelmesh. If there boundary conditions in the mesh, for which no configuration is found, the program is aborted!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_bc_header_type), | intent(inout) | :: | me | The boundary conditions to fill |
||
type(flu_State) | :: | conf | A handle to the Lua configuration script, to read the data from |
|||
integer, | intent(in), | optional | :: | parentHandle | handle for schemes table |
|
type(tem_BC_prop_type), | intent(in) | :: | BC_prop | The boundary properties of the treelmesh, to connect the header to |
This subroutine looks for a given label in the given boundary conditions table, and returns the according table handle. Note, that this should usually not be necessary, as the number of the header is given by the ordering in the bc_header_type, and you can use the desired position directly to look up a specific bc in the configuration script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=LabelLen), | intent(in) | :: | label | The label to look for |
||
integer, | intent(in) | :: | bc_table | Handle to the boundary_condition table, to look in |
||
type(flu_State) | :: | conf | Handle of the Lua script to use |
|||
integer, | intent(out) | :: | thandle | Returned handle of to the entry providing the requested label |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_bc_header_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | outUnit |
This routine does the allocation job
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_bc_header_type), | intent(out) | :: | me | The boundary header |
||
integer, | intent(in) | :: | nBCs |
This routine match the labels in me(tem_bc_header_type) against the labels in the bcProp(tem_BC_prop_type). If a bc label can not be matched, the code will STOP!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_bc_header_type) | :: | me | The boundary header to fill |
|||
type(tem_BC_prop_type), | intent(in) | :: | BC_prop | The boundary properties of the treelmesh, to connect the header to |