Subroutines to add advection terms to the RHS of a transport equation.
|
subroutine | adv_oifs_init (this, lxd, coef, ctarget, ulag, vlag, wlag, dtlag, tlag, time_scheme, slag) |
| Constructor. More...
|
|
subroutine | adv_oifs_free (this) |
| Destructor. More...
|
|
subroutine | set_conv_velocity_fst (this, u, v, w) |
| Mapping the velocity fields to GL space and transforming them to the rst format. More...
|
|
subroutine | adv_oifs_compute (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 using the OIFS method. More...
|
|
subroutine | adv_oifs_compute_scalar (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...
|
|
◆ adv_oifs_compute()
subroutine adv_oifs::adv_oifs_compute |
( |
class(adv_oifs_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. |
Definition at line 285 of file adv_oifs.f90.
◆ adv_oifs_compute_scalar()
subroutine adv_oifs::adv_oifs_compute_scalar |
( |
class(adv_oifs_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. |
Definition at line 389 of file adv_oifs.f90.
◆ adv_oifs_free()
subroutine adv_oifs::adv_oifs_free |
( |
class(adv_oifs_t), intent(inout) |
this | ) |
|
|
private |
◆ adv_oifs_init()
subroutine adv_oifs::adv_oifs_init |
( |
class(adv_oifs_t) |
this, |
|
|
integer, intent(in) |
lxd, |
|
|
type(coef_t), target |
coef, |
|
|
real(kind=rp), intent(in) |
ctarget, |
|
|
type(field_series_t), intent(in), target |
ulag, |
|
|
type(field_series_t), intent(in), target |
vlag, |
|
|
type(field_series_t), intent(in), target |
wlag, |
|
|
real(kind=rp), dimension(10), intent(in), target |
dtlag, |
|
|
real(kind=rp), dimension(10), intent(in), target |
tlag, |
|
|
type(time_scheme_controller_t), intent(in), target |
time_scheme, |
|
|
type(field_series_t), optional, target |
slag |
|
) |
| |
- Parameters
-
lxd | The polynomial order of the space used in the dealiasing. |
coef | The coefficients of the (space, mesh) pair. |
ctarget | Target CFL number. |
ulag | The x component of lagged velocity. |
vlag | The y component of lagged velocity. |
wlag | The z component of lagged velocity. |
dtlag | Lagged time steps. |
tlag | Lagged simulation times. |
time_scheme | The bdf-ext time scheme used in the method. |
slag | The lagged scalar field. |
Definition at line 113 of file adv_oifs.f90.
◆ set_conv_velocity_fst()
subroutine adv_oifs::set_conv_velocity_fst |
( |
class(adv_oifs_t), intent(inout) |
this, |
|
|
type(field_t), intent(inout) |
u, |
|
|
type(field_t), intent(inout) |
v, |
|
|
type(field_t), intent(inout) |
w |
|
) |
| |
|
private |
- Parameters
-
u | Velocity component in x-direction |
v | Velocity component in y-direction |
w | Velocity component in z-direction |
- Note
- similar to set_ct_cvx in NEK5000
Definition at line 247 of file adv_oifs.f90.