Neko
0.9.0
A portable framework for high-order spectral element flow simulations
|
Base type for a scalar advection-diffusion solver. More...
Public Member Functions | |
procedure, pass(this) | scheme_init => scalar_scheme_init |
Constructor for the base type. More... | |
procedure, pass(this) | scheme_free => scalar_scheme_free |
Destructor for the base type. More... | |
procedure, pass(this) | validate => scalar_scheme_validate |
Validate successful initialization. More... | |
procedure, pass(this) | set_user_bc => scalar_scheme_set_user_bc |
Assigns the evaluation function for user_bc . More... | |
procedure, pass(this) | set_material_properties => scalar_scheme_set_material_properties |
Set lambda and cp. More... | |
procedure, pass(this) | update_material_properties => scalar_scheme_update_material_properties |
Update variable material properties. More... | |
procedure(scalar_scheme_init_intrf), deferred, pass | init |
Constructor. More... | |
procedure(scalar_scheme_free_intrf), deferred, pass | free |
Destructor. More... | |
procedure(scalar_scheme_step_intrf), deferred, pass | step |
Solve for the current timestep. More... | |
procedure(scalar_scheme_restart_intrf), deferred, pass | restart |
Restart from a checkpoint. More... | |
Public Attributes | |
type(field_t), pointer | u |
x-component of Velocity More... | |
type(field_t), pointer | v |
y-component of Velocity More... | |
type(field_t), pointer | w |
z-component of Velocity More... | |
type(field_t), pointer | s |
The scalar. More... | |
type(field_series_t) | slag |
Lag arrays, i.e. solutions at previous timesteps. More... | |
type(space_t), pointer | xh |
Function space \( X_h \). More... | |
type(dofmap_t), pointer | dm_xh |
Dofmap associated with \( X_h \). More... | |
type(gs_t), pointer | gs_xh |
Gather-scatter associated with \( X_h \). More... | |
type(coef_t), pointer | c_xh |
Coefficients associated with \( X_h \). More... | |
type(field_t), pointer | f_xh => null() |
Right-hand side. More... | |
type(scalar_source_term_t) | source_term |
The source term for equation. More... | |
class(ksp_t), allocatable | ksp |
Krylov solver. More... | |
integer | ksp_maxiter |
Max iterations in the Krylov solver. More... | |
integer | projection_dim |
Projection space size. More... | |
integer | projection_activ_step |
class(pc_t), allocatable | pc |
Preconditioner. More... | |
type(dirichlet_t), dimension(neko_msh_max_zlbls) | dir_bcs |
Dirichlet conditions. More... | |
type(field_dirichlet_t) | field_dir_bc |
Field Dirichlet conditions. More... | |
type(bc_list_t) | field_dirichlet_bcs |
List of BC objects to pass to user_dirichlet_update. More... | |
type(neumann_t), dimension(neko_msh_max_zlbls) | neumann_bcs |
Neumann conditions. More... | |
type(usr_scalar_t) | user_bc |
User Dirichlet conditions. More... | |
integer | n_dir_bcs = 0 |
Number of Dirichlet bcs. More... | |
integer | n_neumann_bcs = 0 |
Number of Neumann bcs. More... | |
type(bc_list_t) | bclst_dirichlet |
List of Dirichlet boundary conditions, including the user one. More... | |
type(bc_list_t) | bclst_neumann |
List of Neumann conditions list. More... | |
type(json_file), pointer | params |
Case paramters. More... | |
type(mesh_t), pointer | msh => null() |
Mesh. More... | |
type(chkp_t) | chkp |
Checkpoint for restarts. More... | |
real(kind=rp) | lambda |
Thermal diffusivity. More... | |
type(field_t) | lambda_field |
The variable lambda field. More... | |
character(len=:), allocatable | nut_field_name |
The turbulent kinematic viscosity field name. More... | |
real(kind=rp) | rho |
Density. More... | |
real(kind=rp) | cp |
Specific heat capacity. More... | |
real(kind=rp) | pr_turb |
Turbulent Prandtl number. More... | |
logical | variable_material_properties = .false. |
Is lambda varying in time? Currently only due to LES models. More... | |
character(len=neko_msh_max_zlbl_len), dimension(:), allocatable | bc_labels |
Boundary condition labels (if any) More... | |
logical | if_gradient_jump_penalty |
Gradient jump panelty. More... | |
type(gradient_jump_penalty_t) | gradient_jump_penalty |
Definition at line 79 of file scalar_scheme.f90.
procedure(scalar_scheme_free_intrf), deferred, pass scalar_scheme::scalar_scheme_t::free |
Definition at line 173 of file scalar_scheme.f90.
procedure(scalar_scheme_init_intrf), deferred, pass scalar_scheme::scalar_scheme_t::init |
Definition at line 171 of file scalar_scheme.f90.
procedure(scalar_scheme_restart_intrf), deferred, pass scalar_scheme::scalar_scheme_t::restart |
Definition at line 177 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::scheme_free |
Definition at line 159 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::scheme_init |
Definition at line 157 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::set_material_properties |
Definition at line 165 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::set_user_bc |
Definition at line 163 of file scalar_scheme.f90.
procedure(scalar_scheme_step_intrf), deferred, pass scalar_scheme::scalar_scheme_t::step |
Definition at line 175 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::update_material_properties |
Definition at line 168 of file scalar_scheme.f90.
procedure, pass(this) scalar_scheme::scalar_scheme_t::validate |
Definition at line 161 of file scalar_scheme.f90.
character(len=neko_msh_max_zlbl_len), dimension(:), allocatable scalar_scheme::scalar_scheme_t::bc_labels |
Definition at line 151 of file scalar_scheme.f90.
type(bc_list_t) scalar_scheme::scalar_scheme_t::bclst_dirichlet |
Definition at line 127 of file scalar_scheme.f90.
type(bc_list_t) scalar_scheme::scalar_scheme_t::bclst_neumann |
Definition at line 129 of file scalar_scheme.f90.
type(coef_t), pointer scalar_scheme::scalar_scheme_t::c_xh |
Definition at line 97 of file scalar_scheme.f90.
type(chkp_t) scalar_scheme::scalar_scheme_t::chkp |
Definition at line 135 of file scalar_scheme.f90.
real(kind=rp) scalar_scheme::scalar_scheme_t::cp |
Definition at line 145 of file scalar_scheme.f90.
type(dirichlet_t), dimension(neko_msh_max_zlbls) scalar_scheme::scalar_scheme_t::dir_bcs |
Definition at line 113 of file scalar_scheme.f90.
type(dofmap_t), pointer scalar_scheme::scalar_scheme_t::dm_xh |
Definition at line 93 of file scalar_scheme.f90.
type(field_t), pointer scalar_scheme::scalar_scheme_t::f_xh => null() |
Definition at line 99 of file scalar_scheme.f90.
type(field_dirichlet_t) scalar_scheme::scalar_scheme_t::field_dir_bc |
Definition at line 115 of file scalar_scheme.f90.
type(bc_list_t) scalar_scheme::scalar_scheme_t::field_dirichlet_bcs |
Definition at line 117 of file scalar_scheme.f90.
type(gradient_jump_penalty_t) scalar_scheme::scalar_scheme_t::gradient_jump_penalty |
Definition at line 154 of file scalar_scheme.f90.
type(gs_t), pointer scalar_scheme::scalar_scheme_t::gs_xh |
Definition at line 95 of file scalar_scheme.f90.
logical scalar_scheme::scalar_scheme_t::if_gradient_jump_penalty |
Definition at line 153 of file scalar_scheme.f90.
class(ksp_t), allocatable scalar_scheme::scalar_scheme_t::ksp |
Definition at line 103 of file scalar_scheme.f90.
integer scalar_scheme::scalar_scheme_t::ksp_maxiter |
Definition at line 105 of file scalar_scheme.f90.
real(kind=rp) scalar_scheme::scalar_scheme_t::lambda |
Definition at line 137 of file scalar_scheme.f90.
type(field_t) scalar_scheme::scalar_scheme_t::lambda_field |
Definition at line 139 of file scalar_scheme.f90.
type(mesh_t), pointer scalar_scheme::scalar_scheme_t::msh => null() |
Definition at line 133 of file scalar_scheme.f90.
integer scalar_scheme::scalar_scheme_t::n_dir_bcs = 0 |
Definition at line 123 of file scalar_scheme.f90.
integer scalar_scheme::scalar_scheme_t::n_neumann_bcs = 0 |
Definition at line 125 of file scalar_scheme.f90.
type(neumann_t), dimension(neko_msh_max_zlbls) scalar_scheme::scalar_scheme_t::neumann_bcs |
Definition at line 119 of file scalar_scheme.f90.
character(len=:), allocatable scalar_scheme::scalar_scheme_t::nut_field_name |
Definition at line 141 of file scalar_scheme.f90.
type(json_file), pointer scalar_scheme::scalar_scheme_t::params |
Definition at line 131 of file scalar_scheme.f90.
class(pc_t), allocatable scalar_scheme::scalar_scheme_t::pc |
Definition at line 111 of file scalar_scheme.f90.
real(kind=rp) scalar_scheme::scalar_scheme_t::pr_turb |
Definition at line 147 of file scalar_scheme.f90.
integer scalar_scheme::scalar_scheme_t::projection_activ_step |
Definition at line 109 of file scalar_scheme.f90.
integer scalar_scheme::scalar_scheme_t::projection_dim |
Steps to activate projection for ksp
Definition at line 107 of file scalar_scheme.f90.
real(kind=rp) scalar_scheme::scalar_scheme_t::rho |
Definition at line 143 of file scalar_scheme.f90.
type(field_t), pointer scalar_scheme::scalar_scheme_t::s |
Definition at line 87 of file scalar_scheme.f90.
type(field_series_t) scalar_scheme::scalar_scheme_t::slag |
Definition at line 89 of file scalar_scheme.f90.
type(scalar_source_term_t) scalar_scheme::scalar_scheme_t::source_term |
Definition at line 101 of file scalar_scheme.f90.
type(field_t), pointer scalar_scheme::scalar_scheme_t::u |
Definition at line 81 of file scalar_scheme.f90.
type(usr_scalar_t) scalar_scheme::scalar_scheme_t::user_bc |
Definition at line 121 of file scalar_scheme.f90.
type(field_t), pointer scalar_scheme::scalar_scheme_t::v |
Definition at line 83 of file scalar_scheme.f90.
logical scalar_scheme::scalar_scheme_t::variable_material_properties = .false. |
Definition at line 149 of file scalar_scheme.f90.
type(field_t), pointer scalar_scheme::scalar_scheme_t::w |
Definition at line 85 of file scalar_scheme.f90.
type(space_t), pointer scalar_scheme::scalar_scheme_t::xh |
Definition at line 91 of file scalar_scheme.f90.