Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
Wrapper contaning and executing the fluid source terms. More...
Public Member Functions | |
procedure, pass(this) | init (this, f_x, f_y, f_z, coef, user) |
Constructor. | |
procedure, pass(this) | init_base (this, rhs_fields, coef, user) |
Constructor. | |
procedure, pass(this) | free (this) |
Destructor. | |
procedure, pass(this) | compute (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(this) | add_source_term (this, source_term) |
Append a new source term to the source_terms array. | |
procedure, pass(this) | add_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_t) | rhs_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. | |
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.
|
inherited |
Definition at line 80 of file source_term_handler.f90.
|
inherited |
source_term | The source term to be added. |
Definition at line 80 of file source_term_handler.f90.
|
inherited |
Definition at line 85 of file source_term_handler.f90.
|
inherited |
source_term | The source term to be added. |
Definition at line 82 of file source_term_handler.f90.
|
inherited |
t | The time value. |
tstep | The current time step. |
Definition at line 78 of file source_term_handler.f90.
|
inherited |
Definition at line 76 of file source_term_handler.f90.
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.
|
inherited |
Definition at line 74 of file source_term_handler.f90.
|
staticvirtual |
source_term | The allocatable source term to be initialized to a user. |
rhs_fields | The field list with the 3 right-hand-side components. |
coef | The SEM coefs. |
type | The type of the user source term, "user_vector" or "user_poinwise". |
user | The 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.
Definition at line 68 of file source_term_handler.f90.
|
inherited |
Definition at line 66 of file source_term_handler.f90.
|
inherited |
Definition at line 64 of file source_term_handler.f90.
Definition at line 70 of file source_term_handler.f90.