Neko 1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
divergence_simcomp Module Reference

Implements the divergence_t type.

Data Types

type  divergence_t
 A simulation component that computes the divergence of a vector field. Added to the field registry as div by default, bu can be controlled by the computed_field keyword. More...
 

Functions/Subroutines

subroutine divergence_init_from_json (this, json, case)
 Constructor from json.
 
subroutine divergence_init_common (this, field_names, computed_field)
 Actual constructor.
 
subroutine divergence_init_from_controllers (this, case, order, preprocess_controller, compute_controller, output_controller, field_names, computed_field, filename, precision)
 Constructor from components, passing controllers.
 
subroutine divergence_init_from_controllers_properties (this, case, order, preprocess_control, preprocess_value, compute_control, compute_value, output_control, output_value, field_names, computed_field, filename, precision)
 Constructor from components, passing properties to the time_based_controller` components in the base type.
 
subroutine divergence_free (this)
 Destructor.
 
subroutine divergence_compute (this, time)
 Compute the divergence field.
 

Function/Subroutine Documentation

◆ divergence_compute()

subroutine divergence_simcomp::divergence_compute ( class(divergence_t), intent(inout this,
type(time_state_t), intent(in time 
)
private

Definition at line 235 of file divergence_simcomp.f90.

Here is the call graph for this function:

◆ divergence_free()

subroutine divergence_simcomp::divergence_free ( class(divergence_t), intent(inout this)
private

Definition at line 223 of file divergence_simcomp.f90.

◆ divergence_init_common()

subroutine divergence_simcomp::divergence_init_common ( class(divergence_t), intent(inout this,
character(len=*), dimension(3)  field_names,
character(len=*)  computed_field 
)
private
Parameters
field_namesThe name of the fields to compute the divergence of.
computed_fieldThe base name of the divergence field components.

Definition at line 124 of file divergence_simcomp.f90.

Here is the caller graph for this function:

◆ divergence_init_from_controllers()

subroutine divergence_simcomp::divergence_init_from_controllers ( class(divergence_t), intent(inout this,
class(case_t), intent(inout), target  case,
integer  order,
type(time_based_controller_t), intent(in preprocess_controller,
type(time_based_controller_t), intent(in compute_controller,
type(time_based_controller_t), intent(in output_controller,
character(len=*), dimension(3)  field_names,
character(len=*)  computed_field,
character(len=*), intent(in), optional  filename,
integer, intent(in), optional  precision 
)
private
Parameters
caseThe simulation case object.
orderThe execution oder priority of the simcomp.
preprocess_controllerThe controller for running preprocessing.
compute_controllerThe controller for running compute.
output_controllerThe controller for producing output.
field_namesThe name of the fields to compute the divergence of.
computed_fieldThe base name of the divergence field components.
filenameThe name of the file save the fields to. Optional, if not
precisionThe real precision of the output data. Optional, defaults to single precision.

Definition at line 148 of file divergence_simcomp.f90.

◆ divergence_init_from_controllers_properties()

subroutine divergence_simcomp::divergence_init_from_controllers_properties ( class(divergence_t), intent(inout this,
class(case_t), intent(inout), target  case,
integer  order,
character(len=*), intent(in preprocess_control,
real(kind=rp), intent(in preprocess_value,
character(len=*), intent(in compute_control,
real(kind=rp), intent(in compute_value,
character(len=*), intent(in output_control,
real(kind=rp), intent(in output_value,
character(len=*), dimension(3)  field_names,
character(len=*)  computed_field,
character(len=*), intent(in), optional  filename,
integer, intent(in), optional  precision 
)
private
Parameters
caseThe simulation case object.
orderThe execution oder priority of the simcomp.
preprocess_controllerControl mode for preprocessing.
preprocess_valueValue parameter for preprocessing.
compute_controllerControl mode for computing.
compute_valueValue parameter for computing.
output_controllerControl mode for output.
output_valueValue parameter for output.
field_namesThe name of the field to compute the divergence of.
computed_fieldThe base name of the divergence field components.
filenameThe name of the file save the fields to. Optional, if not provided, fields are added to the main output file.
precisionThe real precision of the output data. Optional, defaults to single precision.

Definition at line 190 of file divergence_simcomp.f90.

◆ divergence_init_from_json()

subroutine divergence_simcomp::divergence_init_from_json ( class(divergence_t), intent(inout), target  this,
type(json_file), intent(inout json,
class(case_t), intent(inout), target  case 
)

Definition at line 93 of file divergence_simcomp.f90.

Here is the call graph for this function: