A constant source term. The strength is specified with the values keyword, which should be an array, with a value for each component of the source.
More...
|
| procedure, pass(this) | init (this, json, fields, coef, variable_name) |
| | The common constructor using a JSON object.
|
| procedure, pass(this) | init_from_compenents (this, fields, values, coef, start_time, end_time) |
| | The constructor from type components.
|
| procedure, pass(this) | free (this) |
| | Destructor.
|
| procedure, pass(this) | compute_ (this, time) |
| | Computes the source term and adds the result to fields.
|
| procedure, pass(this) | init_base (this, fields, coef, start_time, end_time) |
| | Constructor for the source_term_t (base) type.
|
| procedure, pass(this) | free_base (this) |
| | Destructor for the source_term_t (base) type.
|
| procedure, pass(this) | compute (this, time) |
| | Executes compute_ based on time conditions.
|
| procedure(source_term_init), deferred, pass | init (this, json, fields, coef, variable_name) |
| | The common constructor using a JSON object.
|
| procedure(source_term_free), deferred, pass | free (this) |
| | Destructor.
|
| procedure(source_term_compute), deferred, pass | compute_ (this, time) |
| | Computes the source term and adds the result to fields.
|
|
| real(kind=rp), dimension(:), allocatable | values |
| | The value of the source term.
|
| type(field_list_t) | fields |
| | The fields to be updated with the source term values.
|
| type(coef_t), pointer | coef => null() |
| | Coefficients for the SEM.
|
| real(kind=rp) | start_time = 0.0_rp |
| | Start time for adding the source term.
|
| real(kind=rp) | end_time = huge(0.0_rp) |
| | End time for adding the source term.
|
| logical | extrapolate = .true. |
| | Whether the owning scheme may extrapolate this term in time together with its other explicit terms.
|
Definition at line 52 of file const_source_term.f90.
◆ compute()
| procedure, pass(this) source_term::source_term_t::compute |
( |
class(source_term_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time ) |
|
inherited |
◆ compute_() [1/2]
| procedure, pass(this) const_source_term::const_source_term_t::compute_ |
( |
class(const_source_term_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time ) |
◆ compute_() [2/2]
| procedure(source_term_compute), deferred, pass source_term::source_term_t::compute_ |
( |
class(source_term_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time ) |
|
pure virtualinherited |
◆ free() [1/2]
| procedure, pass(this) const_source_term::const_source_term_t::free |
( |
class(const_source_term_t), intent(inout) | this | ) |
|
◆ free() [2/2]
| procedure(source_term_free), deferred, pass source_term::source_term_t::free |
( |
class(source_term_t), intent(inout) | this | ) |
|
|
pure virtualinherited |
◆ free_base()
| procedure, pass(this) source_term::source_term_t::free_base |
( |
class(source_term_t), intent(inout) | this | ) |
|
|
inherited |
◆ init() [1/2]
| procedure, pass(this) const_source_term::const_source_term_t::init |
( |
class(const_source_term_t), intent(inout) | this, |
|
|
type(json_file), intent(inout) | json, |
|
|
type(field_list_t), intent(in), target | fields, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
character(len=*), intent(in) | variable_name ) |
- Parameters
-
| json | The JSON object for the source. |
| fields | A list of fields for adding the source values. |
| coef | The SEM coeffs. |
| variable_name | The name of the variable for this source term. |
Definition at line 57 of file const_source_term.f90.
◆ init() [2/2]
| procedure(source_term_init), deferred, pass source_term::source_term_t::init |
( |
class(source_term_t), intent(inout) | this, |
|
|
type(json_file), intent(inout) | json, |
|
|
type(field_list_t), intent(in), target | fields, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
character(len=*), intent(in) | variable_name ) |
|
pure virtualinherited |
◆ init_base()
| procedure, pass(this) source_term::source_term_t::init_base |
( |
class(source_term_t), intent(inout) | this, |
|
|
type(field_list_t) | fields, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
real(kind=rp), intent(in) | start_time, |
|
|
real(kind=rp), intent(in) | end_time ) |
|
inherited |
- Parameters
-
| fields | A list of pointers to fields to be updated by the source term. |
| coef | SEM coefs. |
| start_time | When to start adding the source term. |
| end_time | When to stop adding the source term. |
Definition at line 59 of file source_term.f90.
◆ init_from_compenents()
| procedure, pass(this) const_source_term::const_source_term_t::init_from_compenents |
( |
class(const_source_term_t), intent(inout) | this, |
|
|
class(field_list_t), intent(in), target | fields, |
|
|
real(kind=rp), dimension(:), intent(in) | values, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
real(kind=rp), intent(in) | start_time, |
|
|
real(kind=rp), intent(in) | end_time ) |
- Parameters
-
| fields | A list of fields for adding the source values. |
| values | The array of values, one for each field. |
| coef | The SEM coeffs. |
| start_time | When to start adding the source term. |
| end_time | When to stop adding the source term. |
Definition at line 59 of file const_source_term.f90.
◆ coef
| type(coef_t), pointer source_term::source_term_t::coef => null() |
|
inherited |
◆ end_time
| real(kind=rp) source_term::source_term_t::end_time = huge(0.0_rp) |
|
inherited |
◆ extrapolate
| logical source_term::source_term_t::extrapolate = .true. |
|
inherited |
◆ fields
◆ start_time
| real(kind=rp) source_term::source_term_t::start_time = 0.0_rp |
|
inherited |
◆ values
| real(kind=rp), dimension(:), allocatable const_source_term::const_source_term_t::values |
The documentation for this type was generated from the following file: