Routines to derive quantities from the state in the Euler equation system.
Convert primitive varibales to conservative variables.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_Equations_type), | intent(in) | :: | equation |
Description of the equation system. |
||
real(kind=rk), | intent(inout) | :: | instate(:,:) |
Primitive variables to convert. If outstate is not provided, conversion will take in place of instate. |
||
real(kind=rk), | intent(out), | optional | :: | outstate(:,:) |
Converted variables. |
|
real(kind=rk), | intent(in), | optional | :: | material(:,:) |
The material information. |
Convert conservative to primitive variables.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_Equations_type), | intent(in) | :: | equation |
Description of the equation system. |
||
real(kind=rk), | intent(inout) | :: | instate(:,:) |
Primitive variables to convert. If outstate is not provided, conversion will take in place of instate. |
||
real(kind=rk), | intent(out), | optional | :: | outstate(:,:) |
Converted variables. |
|
real(kind=rk), | intent(in), | optional | :: | material(:,:) |
The material information. |
Convert primitive varibales to conservative variables.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_Equations_type), | intent(in) | :: | equation |
Description of the equation system. |
||
real(kind=rk), | intent(inout) | :: | instate(:,:,:) |
Primitive variables to convert. If outstate is not provided, conversion will take in place of instate. |
||
real(kind=rk), | intent(out), | optional | :: | outstate(:,:,:) |
Converted variables. |
|
integer, | intent(in) | :: | nElems |
Number of elements to act on (first index in the state arrays). |
Convert conservative to primitive variables.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(atl_Equations_type), | intent(in) | :: | equation |
Description of the equation system. |
||
real(kind=rk), | intent(inout) | :: | instate(:,:,:) |
Primitive variables to convert. If outstate is not provided, conversion will take in place of instate. |
||
real(kind=rk), | intent(out), | optional | :: | outstate(:,:,:) |
Converted variables. |
|
integer, | intent(in) | :: | nElems |
Number of elements to act on (first index in the state arrays). |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun |
Description of the method to obtain the variables, here some preset values might be stored, like the space time function to use or the required variables. |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
The variable system to obtain the variable from. |
||
real(kind=rk), | intent(in) | :: | point(:,:) |
Three-dimensional coordinates at which the variable should be evaluated. Only useful for variables provided as space-time functions. |
||
type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh info |
||
integer, | intent(in) | :: | nPnts |
Number of values to obtain for this variable (vectorized access). |
||
real(kind=rk), | intent(out) | :: | res(:) |
Resulting values for the requested variable. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun |
Description of the method to obtain the variables, |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
The variable system to obtain the variable from. |
||
type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
integer, | intent(in) | :: | iLevel |
Level on which values are requested |
||
integer, | intent(in) | :: | idx(:) |
Index of points in the growing array and variable val array to return. Size: n |
||
integer, | intent(in), | optional | :: | idxLen(:) |
With idx as start index in contiguous memory, idxLength defines length of each contiguous memory Size: nVals |
|
integer, | intent(in) | :: | nVals |
Number of values to obtain for this variable (vectorized access). |
||
real(kind=rk), | intent(out) | :: | res(:) |
Resulting values for the requested variable. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun |
Description of the method to obtain the variables, here some preset values might be stored, like the space time function to use or the required variables. |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
The variable system to obtain the variable from. |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh info |
||
integer, | intent(in) | :: | iElem |
The Current element index |
||
integer, | intent(in) | :: | elempos(:) |
TreeID of the element to get the variable for. |
||
type(atl_derive_inputVar_type) | :: | nodalInput(:) |
The input data. nodalInput contains one entry for each input variable. This entry itself contains the nodal data for the dofs and components of the input variable. These nodal data has to be gained by oversampling and projecting the modal state into nodal space. |
|||
real(kind=rk), | allocatable | :: | nodalRes(:,:) |
The result in nodal space |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun |
Description of the method to obtain the variables, here some preset values might be stored, like the space time function to use or the required variables. |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
The variable system to obtain the variable from. |
||
integer, | intent(in) | :: | elempos(:) |
TreeID of the element to get the variable for. |
||
type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh info |
||
integer, | intent(in) | :: | nElems |
Number of values to obtain for this variable (vectorized access). |
||
integer, | intent(in) | :: | nDofs |
Number of degrees of freedom within an element. |
||
real(kind=rk), | intent(out) | :: | res(:) |
Resulting values for the requested variable. |