This source term adds the translation force.
More...
|
| procedure, pass(this) | init (this, json, fields, coef, variable_name) |
| | The common constructor using a JSON object.
|
| |
| procedure, pass(this) | init_from_components (this, fields, domain_vel, 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.
|
| |
Definition at line 56 of file translation_source_term.f90.
◆ compute()
◆ compute_() [1/2]
◆ compute_() [2/2]
- Parameters
-
- Note
- In this case we get the convection term produced by the mesh velocity, which comes from using the relative velocity as advection velocity. The term comes from ((u-u_mesh) . div) u Here we calculate - (u_mesh . div) u. In conservative form so
- div (u_mesh u). Then we put it in the RHS as +
Definition at line 68 of file translation_source_term.f90.
◆ free() [1/2]
◆ free() [2/2]
◆ free_base()
◆ init() [1/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() [2/2]
| procedure, pass(this) translation_source_term::translation_source_term_t::init |
( |
class(translation_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 61 of file translation_source_term.f90.
◆ 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 55 of file source_term.f90.
◆ init_from_components()
| procedure, pass(this) translation_source_term::translation_source_term_t::init_from_components |
( |
class(translation_source_term_t), intent(inout) |
this, |
|
|
class(field_list_t), intent(in), target |
fields, |
|
|
real(kind=rp), dimension(3), intent(in) |
domain_vel, |
|
|
type(coef_t) |
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. |
| domain_vel | The domain velocity. |
| 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 63 of file translation_source_term.f90.
◆ coef
◆ domain_vel
| real(kind=rp), dimension(3) translation_source_term::translation_source_term_t::domain_vel |
◆ end_time
| real(kind=rp) source_term::source_term_t::end_time = huge(0.0_rp) |
|
inherited |
◆ fields
◆ start_time
| real(kind=rp) source_term::source_term_t::start_time = 0.0_rp |
|
inherited |
The documentation for this type was generated from the following file: