Neko  0.8.1
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. More...

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)
 Constructor for the source_term_t (base) type. 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...
 

Detailed Description

Implements the source_term_t type and a wrapper source_term_wrapper_t.

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

Executes compute_ based on time conditions.

Parameters
tTime value.
tstepCurrent time step.

Definition at line 163 of file source_term.f90.

◆ source_term_free_base()

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

Destructor for the source_term_t (base) type.

Definition at line 142 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

Constructor for the source_term_t (base) type.

Parameters
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 120 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

Destructor for the source_term_wrapper_t type.

Definition at line 150 of file source_term.f90.