Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
Base type of all fluid formulations. More...
Public Member Functions | |
procedure, pass(this) | init_base (this, msh, lx, params, scheme, user, kspv_init) |
Constructor for the base type. | |
procedure, pass(this) | scheme_free (this) |
procedure, pass(this) | validate (this) |
Validate that all components are properly allocated. | |
procedure, pass(this) | bc_apply_vel (this, t, tstep, strong) |
Apply pressure boundary conditions. | |
procedure, pass(this) | bc_apply_prs (this, t, tstep) |
Apply velocity boundary conditions. | |
procedure, pass(this) | compute_cfl (this, dt) |
Compute the CFL number. | |
procedure, pass(this) | set_material_properties (this, params, user) |
Set rho and mu. | |
procedure, pass(this) | update_material_properties (this) |
Update variable material properties. | |
procedure, pass(this) | precon_factory_ (this, pc, ksp, coef, dof, gs, bclst, pctype) |
Preconditioner factory. | |
procedure(fluid_scheme_base_init_intrf), deferred, pass | init (this, msh, lx, params, user) |
Constructor. | |
procedure(fluid_scheme_base_free_intrf), deferred, pass | free (this) |
Destructor. | |
procedure(fluid_scheme_base_step_intrf), deferred, pass | step (this, t, tstep, dt, ext_bdf, dt_controller) |
Advance one step in time. | |
procedure(fluid_scheme_base_restart_intrf), deferred, pass | restart (this, dtlag, tlag) |
Restart from a checkpoint. | |
procedure(fluid_scheme_setup_bcs_intrf), deferred, pass | setup_bcs (this, user, params) |
procedure(validate_intrf), deferred, pass | validate (this) |
Set the user inflow. | |
procedure(fluid_scheme_base_compute_cfl_intrf), deferred, pass | compute_cfl (this, dt) |
Compute the CFL number. | |
procedure(update_material_properties), deferred, pass | update_material_properties (this) |
Set rho and mu. | |
Static Public Member Functions | |
procedure, nopass | solver_factory (ksp, n, solver, max_iter, abstol, monitor) |
Linear solver factory, wraps a KSP constructor. | |
Public Attributes | |
type(fluid_source_term_t) | source_term |
The source term for the momentum equation. | |
class(ksp_t), allocatable | ksp_vel |
Krylov solver for velocity. | |
class(ksp_t), allocatable | ksp_prs |
Krylov solver for pressure. | |
class(pc_t), allocatable | pc_vel |
Velocity Preconditioner. | |
class(pc_t), allocatable | pc_prs |
Velocity Preconditioner. | |
integer | vel_projection_dim |
Size of the projection space for ksp_vel. | |
integer | pr_projection_dim |
Size of the projection space for ksp_pr. | |
integer | vel_projection_activ_step |
Steps to activate projection for ksp_vel. | |
integer | pr_projection_activ_step |
Steps to activate projection for ksp_pr. | |
logical | strict_convergence |
Strict convergence for the velocity solver. | |
logical | if_gradient_jump_penalty |
Gradient jump panelty. | |
type(gradient_jump_penalty_t) | gradient_jump_penalty_u |
type(gradient_jump_penalty_t) | gradient_jump_penalty_v |
type(gradient_jump_penalty_t) | gradient_jump_penalty_w |
type(field_t), pointer | u_e => null() |
Extrapolation velocity fields for LES. | |
type(field_t), pointer | v_e => null() |
Extrapolated y-Velocity. | |
type(field_t), pointer | w_e => null() |
Extrapolated z-Velocity. | |
type(mean_flow_t) | mean |
Mean flow field. | |
type(fluid_stats_t) | stats |
Fluid statistics. | |
type(mean_sqr_flow_t) | mean_sqr |
Mean squared flow field. | |
logical | forced_flow_rate = .false. |
Is the flow rate forced? | |
character(len=:), allocatable | nut_field_name |
The turbulent kinematic viscosity field name. | |
integer(kind=i8) | glb_n_points |
Global number of GLL points for the fluid (not unique) | |
integer(kind=i8) | glb_unique_points |
Global number of GLL points for the fluid (unique) | |
type(scratch_registry_t) | scratch |
Manager for temporary fields. | |
type(space_t) | xh |
Function space X_h . | |
type(dofmap_t) | dm_xh |
Dofmap associated with X_h . | |
type(gs_t) | gs_xh |
Gather-scatter associated with X_h . | |
type(coef_t) | c_xh |
Coefficients associated with X_h . | |
type(time_scheme_controller_t), allocatable | ext_bdf |
type(field_t), pointer | u => null() |
The velocity field. | |
type(field_t), pointer | v => null() |
y-component of Velocity | |
type(field_t), pointer | w => null() |
z-component of Velocity | |
type(field_t), pointer | p => null() |
Pressure. | |
type(field_series_t) | ulag |
type(field_series_t) | vlag |
type(field_series_t) | wlag |
fluid field (lag) | |
real(kind=rp) | rho |
Density. | |
type(field_t) | rho_field |
type(field_t), pointer | f_x => null() |
X-component of the right-hand side. | |
type(field_t), pointer | f_y => null() |
Y-component of the right-hand side. | |
type(field_t), pointer | f_z => null() |
Z-component of the right-hand side. | |
type(bc_list_t) | bcs_prs |
Boundary conditions. | |
type(bc_list_t) | bcs_vel |
type(json_file), pointer | params |
Parameters. | |
type(mesh_t), pointer | msh => null() |
Mesh. | |
type(chkp_t) | chkp |
Checkpoint. | |
character(len=neko_msh_max_zlbl_len), dimension(:), allocatable | bc_labels |
Boundary condition labels (if any) | |
real(kind=rp) | mu |
Dynamic viscosity. | |
type(field_t) | mu_field |
The variable mu field. | |
logical | variable_material_properties = .false. |
Is mu varying in time? Currently only due to LES models. | |
logical | freeze = .false. |
Is the fluid frozen at the moment. | |
Definition at line 88 of file fluid_scheme_incompressible.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::bc_apply_prs | ( | class(fluid_scheme_incompressible_t), intent(inout) | this, |
real(kind=rp), intent(in) | t, | ||
integer, intent(in) | tstep | ||
) |
Definition at line 132 of file fluid_scheme_incompressible.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::bc_apply_vel | ( | class(fluid_scheme_incompressible_t), intent(inout) | this, |
real(kind=rp), intent(in) | t, | ||
integer, intent(in) | tstep, | ||
logical, intent(in) | strong | ||
) |
Definition at line 130 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 124 of file fluid_scheme_base.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::compute_cfl | ( | class(fluid_scheme_incompressible_t), intent(in) | this, |
real(kind=rp), intent(in) | dt | ||
) |
Definition at line 134 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 113 of file fluid_scheme_base.f90.
|
pure virtualinherited |
Definition at line 111 of file fluid_scheme_base.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::init_base | ( | class(fluid_scheme_incompressible_t), intent(inout), target | this, |
type(mesh_t), intent(inout), target | msh, | ||
integer, intent(in) | lx, | ||
type(json_file), intent(inout), target | params, | ||
character(len=*), intent(in) | scheme, | ||
type(user_t), intent(in), target | user, | ||
logical, intent(in) | kspv_init | ||
) |
Initialize common data for the current scheme
Definition at line 125 of file fluid_scheme_incompressible.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::precon_factory_ | ( | class(fluid_scheme_incompressible_t), intent(inout) | this, |
class(pc_t), intent(inout), allocatable, target | pc, | ||
class(ksp_t), intent(inout), target | ksp, | ||
type(coef_t), intent(in), target | coef, | ||
type(dofmap_t), intent(in), target | dof, | ||
type(gs_t), intent(inout), target | gs, | ||
type(bc_list_t), intent(inout), target | bclst, | ||
character(len=*) | pctype | ||
) |
Definition at line 145 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 117 of file fluid_scheme_base.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::scheme_free | ( | class(fluid_scheme_incompressible_t), intent(inout) | this | ) |
Definition at line 126 of file fluid_scheme_incompressible.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::set_material_properties | ( | class(fluid_scheme_incompressible_t), intent(inout) | this, |
type(json_file), intent(inout) | params, | ||
type(user_t), intent(in), target | user | ||
) |
params | The case paramter file. |
user | The user interface. |
Definition at line 136 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 119 of file fluid_scheme_base.f90.
|
static |
Definition at line 143 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 115 of file fluid_scheme_base.f90.
|
pure virtualinherited |
Definition at line 126 of file fluid_scheme_base.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::update_material_properties | ( | class(fluid_scheme_incompressible_t), intent(inout) | this | ) |
Definition at line 140 of file fluid_scheme_incompressible.f90.
|
pure virtualinherited |
Definition at line 122 of file fluid_scheme_base.f90.
procedure, pass(this) fluid_scheme_incompressible::fluid_scheme_incompressible_t::validate | ( | class(fluid_scheme_incompressible_t), intent(inout), target | this | ) |
Definition at line 128 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 96 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 87 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 89 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 63 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 93 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 61 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 65 of file fluid_scheme_base.f90.
Definition at line 79 of file fluid_scheme_base.f90.
Definition at line 81 of file fluid_scheme_base.f90.
Definition at line 83 of file fluid_scheme_base.f90.
logical fluid_scheme_incompressible::fluid_scheme_incompressible_t::forced_flow_rate = .false. |
Definition at line 113 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 107 of file fluid_scheme_base.f90.
Definition at line 119 of file fluid_scheme_incompressible.f90.
Definition at line 121 of file fluid_scheme_incompressible.f90.
type(gradient_jump_penalty_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::gradient_jump_penalty_u |
Definition at line 102 of file fluid_scheme_incompressible.f90.
type(gradient_jump_penalty_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::gradient_jump_penalty_v |
Definition at line 103 of file fluid_scheme_incompressible.f90.
type(gradient_jump_penalty_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::gradient_jump_penalty_w |
Definition at line 104 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 62 of file fluid_scheme_base.f90.
logical fluid_scheme_incompressible::fluid_scheme_incompressible_t::if_gradient_jump_penalty |
Definition at line 101 of file fluid_scheme_incompressible.f90.
class(ksp_t), allocatable fluid_scheme_incompressible::fluid_scheme_incompressible_t::ksp_prs |
Definition at line 92 of file fluid_scheme_incompressible.f90.
class(ksp_t), allocatable fluid_scheme_incompressible::fluid_scheme_incompressible_t::ksp_vel |
Definition at line 91 of file fluid_scheme_incompressible.f90.
type(mean_flow_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::mean |
Definition at line 110 of file fluid_scheme_incompressible.f90.
type(mean_sqr_flow_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::mean_sqr |
Definition at line 112 of file fluid_scheme_incompressible.f90.
Definition at line 92 of file fluid_scheme_base.f90.
Definition at line 99 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 102 of file fluid_scheme_base.f90.
character(len=:), allocatable fluid_scheme_incompressible::fluid_scheme_incompressible_t::nut_field_name |
Definition at line 116 of file fluid_scheme_incompressible.f90.
Definition at line 71 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 91 of file fluid_scheme_base.f90.
class(pc_t), allocatable fluid_scheme_incompressible::fluid_scheme_incompressible_t::pc_prs |
Definition at line 94 of file fluid_scheme_incompressible.f90.
class(pc_t), allocatable fluid_scheme_incompressible::fluid_scheme_incompressible_t::pc_vel |
Definition at line 93 of file fluid_scheme_incompressible.f90.
integer fluid_scheme_incompressible::fluid_scheme_incompressible_t::pr_projection_activ_step |
Definition at line 98 of file fluid_scheme_incompressible.f90.
integer fluid_scheme_incompressible::fluid_scheme_incompressible_t::pr_projection_dim |
Definition at line 96 of file fluid_scheme_incompressible.f90.
Definition at line 75 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 76 of file fluid_scheme_base.f90.
type(scratch_registry_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::scratch |
Definition at line 122 of file fluid_scheme_incompressible.f90.
type(fluid_source_term_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::source_term |
Definition at line 90 of file fluid_scheme_incompressible.f90.
type(fluid_stats_t) fluid_scheme_incompressible::fluid_scheme_incompressible_t::stats |
Definition at line 111 of file fluid_scheme_incompressible.f90.
logical fluid_scheme_incompressible::fluid_scheme_incompressible_t::strict_convergence |
Definition at line 99 of file fluid_scheme_incompressible.f90.
x-component of Velocity
Definition at line 68 of file fluid_scheme_base.f90.
Extrapolated x-Velocity
Definition at line 106 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 72 of file fluid_scheme_base.f90.
Definition at line 69 of file fluid_scheme_base.f90.
Definition at line 107 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 105 of file fluid_scheme_base.f90.
integer fluid_scheme_incompressible::fluid_scheme_incompressible_t::vel_projection_activ_step |
Definition at line 97 of file fluid_scheme_incompressible.f90.
integer fluid_scheme_incompressible::fluid_scheme_incompressible_t::vel_projection_dim |
Definition at line 95 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 72 of file fluid_scheme_base.f90.
Definition at line 70 of file fluid_scheme_base.f90.
Definition at line 108 of file fluid_scheme_incompressible.f90.
|
inherited |
Definition at line 72 of file fluid_scheme_base.f90.
|
inherited |
Definition at line 60 of file fluid_scheme_base.f90.