Neko  0.9.0
A portable framework for high-order spectral element flow simulations
source_term Module Reference

Implements the source_term_t type and a wrapper source_term_wrapper_t.

Data Types

type  source_term_t
 Base abstract type for source terms. More...
 
type  source_term_wrapper_t
 A helper type that is needed to have an array of polymorphic objects. More...
 
interface  source_term_init
 The common constructor using a JSON object. More...
 
interface  source_term_free
 Destructor. More...
 
interface  source_term_compute
 Computes the source term and adds the result to fields. More...
 

Functions/Subroutines

subroutine source_term_init_base (this, fields, coef, start_time, end_time)
 Source term factory. Both constructs and initializes the object. More...
 
subroutine source_term_free_base (this)
 Destructor for the source_term_t (base) type. More...
 
subroutine source_term_wrapper_free (this)
 Destructor for the source_term_wrapper_t type. More...
 
subroutine source_term_compute_wrapper (this, t, tstep)
 Executes compute_ based on time conditions. More...
 

Function/Subroutine Documentation

◆ source_term_compute_wrapper()

subroutine source_term::source_term_compute_wrapper ( class(source_term_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tTime value.
tstepCurrent time step.

Definition at line 178 of file source_term.f90.

◆ source_term_free_base()

subroutine source_term::source_term_free_base ( class(source_term_t), intent(inout)  this)
private

Definition at line 157 of file source_term.f90.

◆ source_term_init_base()

subroutine source_term::source_term_init_base ( class(source_term_t), intent(inout)  this,
type(field_list_t fields,
type(coef_t), intent(inout), target  coef,
real(kind=rp), intent(in)  start_time,
real(kind=rp), intent(in)  end_time 
)
private
Parameters
jsonJSON object initializing the source term.
fieldsThe list of fields updated by the source term.
coefThe SEM coefficients. Constructor for the source_term_t (base) type.
fieldsA list of pointers to fields to be updated by the source term.
coefSEM coefs.
start_timeWhen to start adding the source term.
end_timeWhen to stop adding the source term.

Definition at line 134 of file source_term.f90.

◆ source_term_wrapper_free()

subroutine source_term::source_term_wrapper_free ( class(source_term_wrapper_t), intent(inout)  this)
private

Definition at line 165 of file source_term.f90.