Subroutines to add advection terms to the RHS of a transport equation.
|
subroutine | init_dealias (this, lxd, coef) |
| Constructor.
|
|
subroutine | free_dealias (this) |
| Destructor.
|
|
subroutine | compute_adjoint_advection_dealias (this, vx, vy, vz, vxb, vyb, vzb, fx, fy, fz, xh, coef, n) |
| Add the adjoint advection term for the fluid in weak form, i.e. \( \int_\Omega v \cdot u' (\nabla \bar{U})^T u^\dagger d\Omega
+ \int_\Omega \nabla v \cdot (\bar{U} \otimes u^\dagger) d \Omega \), to the RHS.
|
|
subroutine | compute_linear_advection_dealias (this, vx, vy, vz, vxb, vyb, vzb, fx, fy, fz, xh, coef, n) |
| Add the linearized advection term for the fluid, i.e. \(u' \cdot \nabla \bar{U} + \bar{U} \cdot \nabla u' \), to the RHS.
|
|
◆ compute_adjoint_advection_dealias()
subroutine adv_lin_dealias::compute_adjoint_advection_dealias |
( |
class(adv_lin_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) |
vxb, |
|
|
type(field_t), intent(inout) |
vyb, |
|
|
type(field_t), intent(inout) |
vzb, |
|
|
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 |
|
) |
| |
|
private |
- Parameters
-
vx | The x component of adjoint velocity. |
vy | The y component of adjoint velocity. |
vz | The z component of adjoint velocity. |
vxb | The x component of baseflow. |
vyb | The y component of baseflow. |
vzb | The z component of baseflow. |
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. |
Definition at line 235 of file adv_adjoint_dealias.f90.
◆ compute_linear_advection_dealias()
subroutine adv_lin_dealias::compute_linear_advection_dealias |
( |
class(adv_lin_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) |
vxb, |
|
|
type(field_t), intent(inout) |
vyb, |
|
|
type(field_t), intent(inout) |
vzb, |
|
|
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 |
|
) |
| |
|
private |
- Parameters
-
vx | The x component of perturbed velocity. |
vy | The y component of perturbed velocity. |
vz | The z component of perturbed velocity. |
vxb | The x component of baseflow. |
vyb | The y component of baseflow. |
vzb | The z component of baseflow. |
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. |
Definition at line 479 of file adv_adjoint_dealias.f90.
◆ free_dealias()
◆ init_dealias()
- Parameters
-
lxd | The polynomial order of the space used in the dealiasing. |
coef | The coefficients of the (space, mesh) pair. |
Definition at line 137 of file adv_adjoint_dealias.f90.