Implements the coriolis_source_term_t type. Implements the translation_source_term_t type.
|
| subroutine | translation_source_term_init_from_json (this, json, fields, coef, variable_name) |
| | The common constructor using a JSON object.
|
| |
| subroutine | translation_source_term_init_from_components (this, fields, domain_vel, coef, start_time, end_time) |
| | The constructor from type components.
|
| |
| subroutine | translation_source_term_free (this) |
| | Destructor.
|
| |
| subroutine | translation_source_term_compute (this, time) |
| | Computes the source term and adds the result to fields.
|
| |
◆ translation_source_term_compute()
- 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 146 of file translation_source_term.f90.
◆ translation_source_term_free()
◆ translation_source_term_init_from_components()
| subroutine translation_source_term::translation_source_term_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 |
|
) |
| |
|
private |
- 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 113 of file translation_source_term.f90.
◆ translation_source_term_init_from_json()
| subroutine translation_source_term::translation_source_term_init_from_json |
( |
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 77 of file translation_source_term.f90.