Subroutines to add advection terms to the RHS of a transport equation.
|
subroutine | init_no_dealias (this, coef) |
| Constructor.
|
|
subroutine | free_no_dealias (this) |
| Destructor.
|
|
subroutine | compute_advection_no_dealias (this, vx, vy, vz, fx, fy, fz, xh, coef, n, dt) |
| Add the advection term for the fluid, i.e. \(u \cdot \nabla u \) to the RHS.
|
|
subroutine | compute_scalar_advection_no_dealias (this, vx, vy, vz, s, fs, xh, coef, n, dt) |
| Add the advection term for a scalar, i.e. \(u \cdot \nabla s \), to the RHS.
|
|
◆ compute_advection_no_dealias()
subroutine adv_no_dealias::compute_advection_no_dealias |
( |
class(adv_no_dealias_t), intent(inout) |
this, |
|
|
type(field_t), intent(inout) |
vx, |
|
|
type(field_t), intent(inout) |
vy, |
|
|
type(field_t), intent(inout) |
vz, |
|
|
type(field_t), intent(inout) |
fx, |
|
|
type(field_t), intent(inout) |
fy, |
|
|
type(field_t), intent(inout) |
fz, |
|
|
type(space_t), intent(in) |
xh, |
|
|
type(coef_t), intent(in) |
coef, |
|
|
integer, intent(in) |
n, |
|
|
real(kind=rp), intent(in), optional |
dt |
|
) |
| |
|
private |
- Parameters
-
vx | The x component of velocity. |
vy | The y component of velocity. |
vz | The z component of velocity. |
fx | The x component of source term. |
fy | The y component of source term. |
fz | The z component of source term. |
Xh | The function space. |
coef | The coefficients of the (Xh, mesh) pair. |
n | Typically the size of the mesh. |
dt | Current time-step, not required for this method. |
Definition at line 107 of file adv_no_dealias.f90.
◆ compute_scalar_advection_no_dealias()
subroutine adv_no_dealias::compute_scalar_advection_no_dealias |
( |
class(adv_no_dealias_t), intent(inout) |
this, |
|
|
type(field_t), intent(inout) |
vx, |
|
|
type(field_t), intent(inout) |
vy, |
|
|
type(field_t), intent(inout) |
vz, |
|
|
type(field_t), intent(inout) |
s, |
|
|
type(field_t), intent(inout) |
fs, |
|
|
type(space_t), intent(in) |
xh, |
|
|
type(coef_t), intent(in) |
coef, |
|
|
integer, intent(in) |
n, |
|
|
real(kind=rp), intent(in), optional |
dt |
|
) |
| |
|
private |
- Parameters
-
this | The object. |
vx | The x component of velocity. |
vy | The y component of velocity. |
vz | The z component of velocity. |
s | The scalar. |
fs | The source term. |
Xh | The function space. |
coef | The coefficients of the (Xh, mesh) pair. |
n | Typically the size of the mesh. |
dt | Current time-step, not required for this method. |
Definition at line 156 of file adv_no_dealias.f90.
◆ free_no_dealias()
◆ init_no_dealias()
- Parameters
-
coef | The coefficients of the (space, mesh) pair. |
Definition at line 71 of file adv_no_dealias.f90.