Subroutines to add advection terms to the RHS of a transport equation.
|
subroutine | init_dealias (this, lxd, coef) |
| Constructor. More...
|
|
subroutine | free_dealias (this) |
| Destructor. More...
|
|
subroutine | compute_advection_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. More...
|
|
subroutine | compute_scalar_advection_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. More...
|
|
◆ compute_advection_dealias()
subroutine adv_dealias::compute_advection_dealias |
( |
class(adv_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(inout) |
Xh, |
|
|
type(coef_t), intent(inout) |
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 171 of file adv_dealias.f90.
◆ compute_scalar_advection_dealias()
subroutine adv_dealias::compute_scalar_advection_dealias |
( |
class(adv_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(inout) |
Xh, |
|
|
type(coef_t), intent(inout) |
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 291 of file adv_dealias.f90.
◆ free_dealias()
subroutine adv_dealias::free_dealias |
( |
class(adv_dealias_t), intent(inout) |
this | ) |
|
|
private |
◆ init_dealias()
subroutine adv_dealias::init_dealias |
( |
class(adv_dealias_t), intent(inout), target |
this, |
|
|
integer, intent(in) |
lxd, |
|
|
type(coef_t), intent(inout), target |
coef |
|
) |
| |
- Parameters
-
lxd | The polynomial order of the space used in the dealiasing. |
coef | The coefficients of the (space, mesh) pair. |
Definition at line 102 of file adv_dealias.f90.