Provides routines to initialize and update source terms (accumulate the RHS of the PDE)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_source_type), | intent(inout) | :: | source |
Instance of atl_source_type to be initialized. This instance will contain the source definitions from lua as well as the corresponding variables in the global variable system. |
||
type(atl_init_source_type), | intent(in) | :: | initSource |
Initialize source type contains possible source terms and function pointers to update those source terms |
||
type(flu_State), | intent(inout) | :: | conf |
lua state |
||
type(atl_Equations_type), | intent(inout) | :: | equation |
Description on the equation system to solve. |
||
type(ply_poly_project_type), | intent(in) | :: | poly_proj_list(:) |
unique list for projection methods |
||
type(atl_cube_elem_type), | intent(in) | :: | mesh_list(tree%global%minLevel:) |
Mesh list to access the level descriptors |
||
type(treelmesh_type), | intent(in) | :: | tree |
Mesh data in treelmesh format. |
||
type(atl_varSys_solverData_type), | intent(in), | target | :: | varSys_data |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_source_type), | intent(inout) | :: | me |
Instance of atl_source_type to be initialized. This instance will contain the source definitions from lua as well as the corresponding variables in the global variable system. |
||
type(tem_varSys_type), | intent(inout) | :: | varSys |
The variable system to which the souce variables have to be added |
||
type(atl_varSys_solverData_type), | intent(in), | target | :: | varSys_data |
Data for the variable System |
|
type(tem_possible_variable_type) | :: | poss_srcVars |
The list of possible source variables. This is used to determine the index of the eval-source_routine in eval_source. |
|||
type(atl_eqn_sourceMap_type), | allocatable | :: | eval_source(:) |
List of function pointers for each possible source to apply the source term to the state. |
Create source elements list for given source variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_source_type), | intent(inout) | :: | source |
Instance of atl_source_type to be initialized. This instance will contain the source definitions from lua as well as the corresponding variables in the global variable system. |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
integer, | intent(in) | :: | nDim |
equation nDimensions |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh |
||
type(ply_poly_project_type), | intent(in), | target | :: | poly_proj_list(:) |
unique list for projection methods |
|
type(atl_cube_elem_type), | intent(in) | :: | mesh_list(tree%global%minLevel:) |
Mesh list to access the level descriptors |
This routine converts primitive variables in source terms to convervative
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_Equations_type), | intent(in) | :: | equation | |||
type(atl_source_type), | intent(in) | :: | source | |||
type(tem_varSys_type), | intent(in) | :: | varSys |
s u b r o u t i n e
t o
c a l c u l a t e
t h e
R H S
o f
t h e
P D E
f r o m
t h e
s u m
o f
a l l
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_Equations_type), | intent(in) | :: | equation |
The equation with source term data |
||
type(tem_time_type), | intent(in) | :: | time |
current time |
||
type(atl_cube_elem_type), | intent(in) | :: | mesh |
Current level mesh information |
||
type(ply_poly_project_type), | intent(inout) | :: | poly_proj |
The projection used for update the source terms for. |
||
integer, | intent(in) | :: | currentLevel |
The current Level |
||
real(kind=rk), | intent(in) | :: | state(:,:,:) |
state vector (sources may depend on the state) |
||
type(atl_material_type), | intent(inout) | :: | material |
The material description. |
||
type(atl_source_type), | intent(inout) | :: | source |
sources for this level |
||
type(atl_scheme_type), | intent(in) | :: | scheme |
The scheme you update the source terms for. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_source_type), | intent(inout) | :: | source | |||
integer, | intent(in) | :: | nDofs | |||
integer, | intent(in) | :: | nComponents |
Deallocates the array for storing the sourceData for the currentLevel
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_source_type), | intent(inout) | :: | source |
Levelwise list of sources |