Module to encapsulate output for various formats.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | hvs_AsciiTransient | = | 1 |
parameter for ascii output, writing only one row consisting of all the elements with all variable values in that row into an initially opened file |
integer, | public, | parameter | :: | hvs_AsciiSpatial | = | 2 |
Parameter for gnuplot ascii, writing a complete spatial representation at each time step into a new file |
integer, | public, | parameter | :: | hvs_Internal | = | 3 |
Parameter for harvester output |
integer, | public, | parameter | :: | hvs_PreciceSpatial | = | 4 |
Parameter for precice spatial coupling |
integer, | public, | parameter | :: | hvs_VTK | = | 5 |
Parameter for VTK output |
This data type contains data loaded from disk.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | vis_kind |
Kind of visualization file to use for the output. |
|||
type(hvs_vtk_config_type), | public | :: | vtk |
Description of the vtk configuration (used when vis_kind='vtk') |
|||
logical, | public | :: | useGetPoint |
Logic to decide to use get_point or get_element to dump data |
|||
integer, | public | :: | nDofs |
Stores the number of output dofs to be dumped. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | vis_kind |
Kind of visualization file to use for the output. |
|||
character(len=PathLen), | public | :: | basename |
Basename to use for the output files. |
|||
type(tem_comm_env_type), | public | :: | proc |
Process description to use for the output. Might be only a subset of the global communicator |
|||
type(hvs_vtk_file_type), | public | :: | vtk |
Description for vtk output |
|||
type(hvs_ascii_type), | public | :: | ascii |
Description for ascii output |
|||
type(hvs_asciiSpatial_type), | public | :: | asciiSpatial |
Description for ascii output |
|||
type(tem_restart_type), | public | :: | restart |
Description for harvester output i.e restart format |
|||
type(tem_time_type), | public | :: | time |
Point in time for which this output should be done. |
|||
integer, | public | :: | nVars |
Number of variables to write to this file. |
|||
integer, | public, | allocatable | :: | varPos(:) |
List of variable positions to write into this file. |
||
type(tem_vrtx_type), | public | :: | vrtx |
Vertex information of elements within the tracking shape. Required for vtk output |
|||
real(kind=rk), | public, | allocatable | :: | bary(:,:) |
Store the barycenters for the linearized tree elements it has a size of ( nElems, 3 ). Used in dump AsciiSpatial It is set in hvs_output_init It is used in hvs_output_write Need to UPDATE after balance |
||
integer, | public | :: | nDofs |
is there any transient reduction active? Then this tracking must be updated every timestep! transient reductions which collect and reduce data over several timesteps The number of dofs for each scalar variable of the equation system |
|||
logical, | public | :: | useGetPoint |
Logic to decide to use get_point or get_element to dump data |
Read the output configuration from a Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_config_type), | intent(out) | :: | me |
The output configuration settings to fill. |
||
type(flu_State) | :: | conf |
Handle of the Lua script to load the configuration from. |
|||
integer, | intent(in), | optional | :: | parent |
Table handle to the table providing the output settings. |
|
logical, | intent(in) | :: | isReduce |
true if reduction is defined |
Initialize the output for a given mesh.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_file_type), | intent(inout) | :: | out_file |
Output file settings It must be intent inout since ascii%reduction and trasient%reduction are loaded in tem_load_trackingHeader |
||
type(hvs_output_config_type), | intent(in) | :: | out_config |
The output configuration settings to use. |
||
type(treelmesh_type), | intent(in) | :: | tree |
Mesh of the data to visualize. |
||
type(tem_varSys_type), | intent(in) | :: | varsys |
Description of the available variable system to get the given varnames from. |
||
type(tem_subTree_type), | intent(in), | optional | :: | subtree |
Optional restriction of the elements to output. |
|
integer, | intent(in), | optional | :: | varPos(:) |
List of variable positions that should be written in the output. |
|
character(len=*), | intent(in) | :: | basename |
An extension to the output basename. |
||
type(tem_timeControl_type), | intent(in), | optional | :: | timeControl |
output timeControl |
|
integer, | intent(in), | optional | :: | nDofs |
The number of dofs for each scalar variable of the equation system |
|
type(tem_comm_env_type), | intent(in) | :: | globProc |
Global communicator type for global rank information |
||
type(tem_solveHead_type), | intent(in) | :: | solver |
Global solver information |
||
type(tem_shape_type), | intent(in), | optional | :: | geometry(:) |
shape defined for this ascii output |
|
integer, | intent(in), | optional | :: | solSpec_unit |
Solver specific unit for restart header |
Open the output for a given mesh.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_file_type), | intent(inout) | :: | out_file | |||
logical, | intent(in) | :: | use_iter |
The output configuration settings to use. |
||
type(treelmesh_type), | intent(in) | :: | mesh |
Mesh of the data to visualize. |
||
type(tem_varSys_type), | intent(in) | :: | varsys |
Description of the available variable system to get the given varnames from. |
||
type(tem_time_type), | intent(in), | optional | :: | time |
Time information. |
|
type(tem_subTree_type), | intent(inout), | optional | :: | subtree |
Optional restriction of the elements to output. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_file_type), | intent(inout) | :: | out_file | |||
type(tem_varSys_type), | intent(in) | :: | varsys |
Description of the available variable system to get the given varnames from. |
||
type(treelmesh_type), | intent(in) | :: | mesh |
Mesh to write the data on. |
||
type(tem_subTree_type), | intent(in), | optional | :: | subtree |
Optional restriction of the elements to output. |
Close all files open for current time step.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_file_type), | intent(inout) | :: | out_file | |||
type(treelmesh_type), | intent(in) | :: | mesh |
Mesh to write the data on. |
||
type(tem_varSys_type), | intent(in) | :: | varsys |
Description of the available variable system to get the given varnames from. |
||
type(tem_subTree_type), | intent(in), | optional | :: | subtree |
Optional restriction of the elements to output. |
Finalize the output
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_output_file_type), | intent(inout) | :: | out_file |