Module to configure the variables of the Euler equations.
Init the variable system for Euler (inviscid) flow simulations.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_Equations_type), | intent(inout) | :: | equation |
The equation system |
||
type(atl_varSys_solverData_type) | :: | solverData |
the pointer to the data required for the varsys |
Append conservative variables for Euler equations.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_Equations_type), | intent(inout) | :: | equation |
The equation type . |
||
type(atl_varSys_solverData_type), | target | :: | solverData |
the pointer to the data required for the varsys |
Append primitive variables for euler equation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_varSys_type), | intent(inout) | :: | varSys |
The Euler variable system to modify, it has to contain the conservative variables already. |
||
integer, | intent(out), | allocatable | :: | primVar(:) |
Indices of the primitive variables in the overall system. |
|
type(atl_varSys_solverData_type), | target | :: | solverData |
the pointer to the data required for the varsys to fulfill all operations and derivations on the variables |
a p p e n d
/
s e t
d a t a
o f
d e r i v e d
q u a n t i t i e s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_varSys_type), | intent(inout) | :: | varSys | |||
type(atl_varSys_solverData_type), | target | :: | solverData |
the pointer to the data required for the varsys to fulfill all operations and derivations on the variables |
This routine initializes possible source variables and returns the filled up list of the poss_srcVars
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | possVars | |||
type(atl_eqn_sourceMap_type), | intent(out), | allocatable | :: | eval_source(:) |
Outputs the result of appending a variable. If appending was not successful, the program is aborted.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | wasAdded |
The result of the append call |
||
character(len=*), | intent(in) | :: | varName |
The name of the variable was appended (or not) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | rhs(:,:) |
The Right Hand side to be updated |
||
real(kind=rk), | intent(in) | :: | source(:,:) |
The source data to be used |
||
real(kind=rk), | intent(in) | :: | state(:,:) |
The state in the modal form |
||
real(kind=rk), | intent(in) | :: | constants(:) |
the constants required for the evaluation of source |
PV: Create a unit test for this routine and compare it to the version before the new varSys
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_source_op_type), | intent(in) | :: | fun |
Description of method to update source |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
variable system |
||
type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
type(atl_cube_elem_type), | intent(in) | :: | mesh |
Current level mesh information |
||
type(ply_poly_project_type), | intent(inout) | :: | poly_proj |
Parameters for projection |
||
integer, | intent(in) | :: | currentLevel |
current level |
||
real(kind=rk), | intent(in) | :: | state(:,:,:) |
The state in modal space. This is needed for several source terms that have to be applied to the current state |
||
real(kind=rk), | intent(in) | :: | material(:) |
Material description for the complete domain. Used for evaluation of some source terms. |
||
real(kind=rk), | intent(inout) | :: | sourcedata(:,:,:) |
The source data to update. When all source terms are added to this buffer, it is applied to the state. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | rhs(:,:) |
The Right Hand side to be updated |
||
real(kind=rk), | intent(in) | :: | source(:,:) |
The source data to be used |
||
real(kind=rk), | intent(in) | :: | state(:,:) |
The state in the modal form |
||
real(kind=rk), | intent(in) | :: | constants(:) |
the constants required for the evaluation of source |
PV: Create a unit test for this routine and compare it to the version before the new varSys
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_source_op_type), | intent(in) | :: | fun |
Description of method to update source |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
variable system |
||
type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
type(atl_cube_elem_type), | intent(in) | :: | mesh |
Current level mesh information |
||
type(ply_poly_project_type), | intent(inout) | :: | poly_proj |
Parameters for projection |
||
integer, | intent(in) | :: | currentLevel |
current level |
||
real(kind=rk), | intent(in) | :: | state(:,:,:) |
The state in modal space. This is needed for several source terms that have to be applied to the current state |
||
real(kind=rk), | intent(in) | :: | material(:) |
Material description for the complete domain. Used for evaluation of some source terms. |
||
real(kind=rk), | intent(inout) | :: | sourcedata(:,:,:) |
The source data to update. When all source terms are added to this buffer, it is applied to the state. |