A factory for advection_t decendants. Both creates and initializes the object.
More...
|
| subroutine | compute_adv (this, vx, vy, vz, fx, fy, fz, xh, coef, n, dt) |
- Parameters
-
| object | The object allocated by the factory. |
| json | The parameter file. |
| coef | The coefficients of the (space, mesh) pair. |
| ulag,vlag,wlag | The lagged velocity fields. |
| dtlag | The lagged time steps. |
| tlag | The lagged times. |
| time_scheme | The bdf-ext time scheme used in the method. |
| use_dummy | If true, a dummy zero-valued advection type is |
| slag | The lagged scalar field. allocated. This can be used to kill the advection term. |
- Note
- The factory both allocates and initializes object. Add advection operator to the right-hand-side for a fluid.
- Parameters
-
| this | The object. |
| 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 used in OIFS method. |
Definition at line 99 of file advection.f90.
◆ compute_adv()
| subroutine advection::compute_adv::compute_adv |
( |
class(advection_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 ) |
|
virtual |
The documentation for this interface was generated from the following file: