Neko 1.99.11
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, name, 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, name, 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, name, fluid_name, zone_id, zone_name, center, scale, coef, long_print, center_type)
 Common part of constructors.
subroutine force_torque_free (this)
 Destructor.
subroutine force_torque_compute (this, time)
 Compute the force_torque field.
subroutine setup_ale_link (this, zone_id, center_type, center_in)
 Routine to configure ALE connectivity for force/torque module.

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 455 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 413 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) name,
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,
character(len=*), intent(in), optional center_type )
private
Parameters
nameThe unique name of the simcomp.
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.
center_typeThe type of center used.
scaleNormalization factor.
coefThe SEM coefficients.
long_printIf true, use a more precise print format.

Definition at line 268 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,
character(len=*), intent(in) name,
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
nameThe unique name of the simcomp.
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 185 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,
character(len=*), intent(in) name,
class(case_t), intent(inout), target case,
integer order,
character(len=*), intent(in) preprocess_control,
real(kind=dp), intent(in) preprocess_value,
character(len=*), intent(in) compute_control,
real(kind=dp), intent(in) compute_value,
character(len=*), intent(in) output_control,
real(kind=dp), 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
nameThe unique name of the simcomp.
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 228 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 137 of file force_torque.f90.

◆ setup_ale_link()

subroutine force_torque::setup_ale_link ( class(force_torque_t), intent(inout) this,
integer, intent(in) zone_id,
character(len=*), intent(in) center_type,
real(kind=rp), dimension(3), intent(in) center_in )
private

Definition at line 664 of file force_torque.f90.