Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
fluid_source_term::fluid_source_term_t Type Reference

Wrapper contaning and executing the fluid source terms. More...

Inheritance diagram for fluid_source_term::fluid_source_term_t:
Collaboration diagram for fluid_source_term::fluid_source_term_t:

Public Member Functions

procedure, pass(thisinit (this, f_x, f_y, f_z, coef, user)
 Constructor.
 
procedure, pass(thisinit_base (this, rhs_fields, coef, user)
 Constructor.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thiscompute (this, t, tstep)
 Add all the source terms to the passed right-hand side fields.
 
generic add (this, source_term)
 Generic interface to add a source term to the list.
 
generic add (this, json, name)
 Generic interface to add a source term to the list.
 
procedure, pass(thisadd_source_term (this, source_term)
 Append a new source term to the source_terms array.
 
procedure, pass(thisadd_json_source_terms (this, json, name)
 Read from the json file and initialize the source terms.
 

Static Public Member Functions

procedure, nopass init_user_source (source_term, rhs_fields, coef, type, user)
 Initialize the user source term.
 

Public Attributes

class(source_term_wrapper_t), dimension(:), allocatable source_terms
 Array of ordinary source terms.
 
type(field_list_trhs_fields
 The right-hand side.
 
type(coef_t), pointer coef
 The coefficients of the (space, mesh) pair.
 
type(user_t), pointer user
 The user object.
 

Detailed Description

Exists mainly to keep the fluid_scheme_t type smaller and also as placeholder for future optimizations.

Definition at line 50 of file fluid_source_term.f90.

Member Function/Subroutine Documentation

◆ add() [1/2]

generic source_term_handler::source_term_handler_t::add ( class(source_term_handler_t), intent(inout this,
type(json_file), intent(inout json,
character(len=*), intent(in name 
)
inherited

Definition at line 80 of file source_term_handler.f90.

◆ add() [2/2]

generic source_term_handler::source_term_handler_t::add ( class(source_term_handler_t), intent(inout this,
class(source_term_t), intent(in source_term 
)
inherited
Parameters
source_termThe source term to be added.

Definition at line 80 of file source_term_handler.f90.

◆ add_json_source_terms()

procedure, pass(this) source_term_handler::source_term_handler_t::add_json_source_terms ( class(source_term_handler_t), intent(inout this,
type(json_file), intent(inout json,
character(len=*), intent(in name 
)
inherited

Definition at line 85 of file source_term_handler.f90.

◆ add_source_term()

procedure, pass(this) source_term_handler::source_term_handler_t::add_source_term ( class(source_term_handler_t), intent(inout this,
class(source_term_t), intent(in source_term 
)
inherited
Parameters
source_termThe source term to be added.

Definition at line 82 of file source_term_handler.f90.

◆ compute()

procedure, pass(this) source_term_handler::source_term_handler_t::compute ( class(source_term_handler_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
inherited
Parameters
tThe time value.
tstepThe current time step.

Definition at line 78 of file source_term_handler.f90.

◆ free()

procedure, pass(this) source_term_handler::source_term_handler_t::free ( class(source_term_handler_t), intent(inout this)
inherited

Definition at line 76 of file source_term_handler.f90.

◆ init()

procedure, pass(this) fluid_source_term::fluid_source_term_t::init ( class(fluid_source_term_t), intent(inout this,
type(field_t), intent(in), pointer  f_x,
type(field_t), intent(in), pointer  f_y,
type(field_t), intent(in), pointer  f_z,
type(coef_t), intent(in), target  coef,
type(user_t), intent(in), target  user 
)

Definition at line 54 of file fluid_source_term.f90.

◆ init_base()

procedure, pass(this) source_term_handler::source_term_handler_t::init_base ( class(source_term_handler_t), intent(inout this,
type(field_list_t), intent(in rhs_fields,
type(coef_t), intent(in), target  coef,
type(user_t), intent(in), target  user 
)
inherited

Definition at line 74 of file source_term_handler.f90.

◆ init_user_source()

procedure, nopass fluid_source_term::fluid_source_term_t::init_user_source ( class(source_term_t), intent(inout), allocatable  source_term,
type(field_list_t rhs_fields,
type(coef_t), intent(in coef,
character(len=*)  type,
type(user_t), intent(in user 
)
staticvirtual
Parameters
source_termThe allocatable source term to be initialized to a user.
rhs_fieldsThe field list with the 3 right-hand-side components.
coefThe SEM coefs.
typeThe type of the user source term, "user_vector" or "user_poinwise".
userThe user type containing the user source term routines.

Implements source_term_handler::source_term_handler_t.

Definition at line 56 of file fluid_source_term.f90.

Member Data Documentation

◆ coef

type(coef_t), pointer source_term_handler::source_term_handler_t::coef
inherited

Definition at line 68 of file source_term_handler.f90.

◆ rhs_fields

type(field_list_t) source_term_handler::source_term_handler_t::rhs_fields
inherited

Definition at line 66 of file source_term_handler.f90.

◆ source_terms

class(source_term_wrapper_t), dimension(:), allocatable source_term_handler::source_term_handler_t::source_terms
inherited

Definition at line 64 of file source_term_handler.f90.

◆ user

type(user_t), pointer source_term_handler::source_term_handler_t::user
inherited

Definition at line 70 of file source_term_handler.f90.


The documentation for this type was generated from the following file: