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

Implements the force_torque_t type.

Data Types

type  force_torque_t
 A simulation component that computes the force and torque on a given boundary zone. More...
 

Functions/Subroutines

subroutine force_torque_init_from_json (this, json, case)
 Constructor from json.
 
subroutine force_torque_init_from_controllers (this, case, order, preprocess_controller, compute_controller, output_controller, fluid_name, zone_id, zone_name, center, scale, coef, long_print)
 Constructor from components, passing controllers.
 
subroutine force_torque_init_from_controllers_properties (this, case, order, preprocess_control, preprocess_value, compute_control, compute_value, output_control, output_value, fluid_name, zone_name, zone_id, center, scale, coef, long_print)
 Constructor from components, passing properties to the time_based_controller` components in the base type.
 
subroutine force_torque_init_common (this, fluid_name, zone_id, zone_name, center, scale, coef, long_print)
 Common part of constructors.
 
subroutine force_torque_free (this)
 Destructor.
 
subroutine force_torque_compute (this, time)
 Compute the force_torque field.
 

Function/Subroutine Documentation

◆ force_torque_compute()

subroutine force_torque::force_torque_compute ( class(force_torque_t), intent(inout this,
type(time_state_t), intent(in time 
)
private
Parameters
timeThe current time state.

Definition at line 357 of file force_torque.f90.

Here is the call graph for this function:

◆ force_torque_free()

subroutine force_torque::force_torque_free ( class(force_torque_t), intent(inout this)
private

Definition at line 344 of file force_torque.f90.

◆ force_torque_init_common()

subroutine force_torque::force_torque_init_common ( class(force_torque_t), intent(inout this,
character(len=*), intent(in fluid_name,
integer, intent(in zone_id,
character(len=*), intent(in zone_name,
real(kind=rp), dimension(3), intent(in center,
real(kind=rp), intent(in scale,
type(coef_t), intent(in), target  coef,
logical, intent(in long_print 
)
private
Parameters
fluid_nameThe name of the fluid solver.
zone_idThe id of the boundary zone.
zone_nameThe name of the boundary zone, to use in the log.
centerThe center of the torque calculation.
scaleNormalization factor.
coefThe SEM coefficients.
long_printIf true, use a more precise print format.

Definition at line 234 of file force_torque.f90.

Here is the call graph for this function:

◆ force_torque_init_from_controllers()

subroutine force_torque::force_torque_init_from_controllers ( class(force_torque_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=*), intent(in fluid_name,
integer, intent(in zone_id,
character(len=*), intent(in zone_name,
real(kind=rp), dimension(3), intent(in center,
real(kind=rp), intent(in scale,
type(coef_t), intent(in), target  coef,
logical, intent(in long_print 
)
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.
fluid_nameThe name of the fluid solver.
zone_idThe id of the boundary zone.
zone_nameThe name of the boundary zone, to use in the log.
centerThe center of the torque calculation.
scaleNormalization factor.
coefThe SEM coefficients.
long_printIf true, use a more precise print format.

Definition at line 156 of file force_torque.f90.

◆ force_torque_init_from_controllers_properties()

subroutine force_torque::force_torque_init_from_controllers_properties ( class(force_torque_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=*), intent(in fluid_name,
character(len=*), intent(in zone_name,
integer, intent(in zone_id,
real(kind=rp), dimension(3), intent(in center,
real(kind=rp), intent(in scale,
type(coef_t), intent(in), target  coef,
logical, intent(in long_print 
)
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.
fluid_nameThe name of the fluid solver.
zone_idThe id of the boundary zone.
zone_nameThe name of the boundary zone, to use in the log.
centerThe center of the torque calculation.
scaleNormalization factor.
coefThe SEM coefficients.
long_printIf true, use a more precise print format.

Definition at line 197 of file force_torque.f90.

◆ force_torque_init_from_json()

subroutine force_torque::force_torque_init_from_json ( class(force_torque_t), intent(inout), target  this,
type(json_file), intent(inout json,
class(case_t), intent(inout), target  case 
)

Definition at line 120 of file force_torque.f90.