Wrapper contaning and executing the scalar source terms.
More...
|
| procedure, pass(this) | init (this, f, coef, user, scheme_name) |
| | Constructor.
|
| procedure, pass(this) | init_base (this, rhs_fields, coef, user, scheme_name) |
| | Constructor.
|
| procedure, pass(this) | free (this) |
| | Destructor.
|
| procedure, pass(this) | compute (this, time, extrapolate, scale) |
| | Add source terms to the 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.
|
|
| 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.
|
| character(len=:), allocatable | scheme_name |
| | The name of the scheme that owns this source term handler.
|
| integer | n_unextrapolated = 0 |
| | Number of source terms that are not extrapolated in time, counted when the terms are added.
|
Exists mainly to keep the scalar_scheme_t type smaller and also as placeholder for future optimizations.
Definition at line 50 of file scalar_source_term.f90.
◆ 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 |
◆ add() [2/2]
◆ 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 |
◆ 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 |
◆ compute()
| procedure, pass(this) source_term_handler::source_term_handler_t::compute |
( |
class(source_term_handler_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time, |
|
|
logical, intent(in) | extrapolate, |
|
|
type(field_t), intent(in), optional | scale ) |
|
inherited |
The source terms whose extrapolate attribute equals extrapolate are summed and multiplied by the mass matrix and, if present, by scale. For .true. the result replaces the right-hand side, for .false. it is added to it. A scheme that extrapolates its explicit terms in time calls the .true. form before and the .false. form after the extrapolation, so that the latter terms enter the step as computed.
- Parameters
-
| time | The time state. |
| extrapolate | Select the terms by their extrapolate attribute. |
| scale | Field multiplying the contributions, e.g. the density. |
Definition at line 85 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 |
◆ init()
| procedure, pass(this) scalar_source_term::scalar_source_term_t::init |
( |
class(scalar_source_term_t), intent(inout) | this, |
|
|
type(field_t), intent(in), pointer | f, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
type(user_t), intent(in), target | user, |
|
|
character(len=*), intent(in) | scheme_name ) |
◆ 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, |
|
|
character(len=*), intent(in) | scheme_name ) |
|
inherited |
◆ init_user_source()
| procedure, nopass scalar_source_term::scalar_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, |
|
|
type(user_t), intent(in) | user, |
|
|
character(len=*), intent(in) | scheme_name ) |
|
staticvirtual |
- Parameters
-
| source_term | The allocatable source term to be initialized to a user. |
| rhs_fields | The field list with the right-hand-side. |
| coef | The SEM coefs. "user_poinwise". |
| user | The user type containing the user source term routines. |
| scheme_name | The name of the scalar scheme that owns this source term. |
Implements source_term_handler::source_term_handler_t.
Definition at line 56 of file scalar_source_term.f90.
◆ coef
| type(coef_t), pointer source_term_handler::source_term_handler_t::coef |
|
inherited |
◆ n_unextrapolated
| integer source_term_handler::source_term_handler_t::n_unextrapolated = 0 |
|
inherited |
◆ rhs_fields
| type(field_list_t) source_term_handler::source_term_handler_t::rhs_fields |
|
inherited |
◆ scheme_name
| character(len=:), allocatable source_term_handler::source_term_handler_t::scheme_name |
|
inherited |
◆ source_terms
| class(source_term_wrapper_t), dimension(:), allocatable source_term_handler::source_term_handler_t::source_terms |
|
inherited |
◆ user
| type(user_t), pointer source_term_handler::source_term_handler_t::user |
|
inherited |
The documentation for this type was generated from the following file: