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

Implements the coriolis_source_term_t type. Implements the translation_source_term_t type.

Data Types

type  translation_source_term_t
 This source term adds the translation force. More...
 

Functions/Subroutines

subroutine translation_source_term_init_from_json (this, json, fields, coef, variable_name)
 The common constructor using a JSON object.
 
subroutine translation_source_term_init_from_components (this, fields, domain_vel, coef, start_time, end_time)
 The constructor from type components.
 
subroutine translation_source_term_free (this)
 Destructor.
 
subroutine translation_source_term_compute (this, time)
 Computes the source term and adds the result to fields.
 

Function/Subroutine Documentation

◆ translation_source_term_compute()

subroutine translation_source_term::translation_source_term_compute ( class(translation_source_term_t), intent(inout this,
type(time_state_t), intent(in time 
)
private
Parameters
timeThe time state.
Note
In this case we get the convection term produced by the mesh velocity, which comes from using the relative velocity as advection velocity. The term comes from ((u-u_mesh) . div) u Here we calculate - (u_mesh . div) u. In conservative form so
  • div (u_mesh u). Then we put it in the RHS as +

Definition at line 146 of file translation_source_term.f90.

Here is the call graph for this function:

◆ translation_source_term_free()

subroutine translation_source_term::translation_source_term_free ( class(translation_source_term_t), intent(inout this)
private

Definition at line 133 of file translation_source_term.f90.

◆ translation_source_term_init_from_components()

subroutine translation_source_term::translation_source_term_init_from_components ( class(translation_source_term_t), intent(inout this,
class(field_list_t), intent(in), target  fields,
real(kind=rp), dimension(3), intent(in domain_vel,
type(coef_t coef,
real(kind=rp), intent(in start_time,
real(kind=rp), intent(in end_time 
)
private
Parameters
fieldsA list of fields for adding the source values.
domain_velThe domain velocity.
coefThe SEM coeffs.
start_timeWhen to start adding the source term.
end_timeWhen to stop adding the source term.

Definition at line 113 of file translation_source_term.f90.

Here is the caller graph for this function:

◆ translation_source_term_init_from_json()

subroutine translation_source_term::translation_source_term_init_from_json ( class(translation_source_term_t), intent(inout this,
type(json_file), intent(inout json,
type(field_list_t), intent(in), target  fields,
type(coef_t), intent(in), target  coef,
character(len=*), intent(in variable_name 
)
Parameters
jsonThe JSON object for the source.
fieldsA list of fields for adding the source values.
coefThe SEM coeffs.
variable_nameThe name of the variable for this source term.

Definition at line 77 of file translation_source_term.f90.

Here is the call graph for this function: