40 use json_module,
only : json_file
62 character(len=:),
allocatable :: name
79 type(
chkp_t),
pointer :: chkp => null()
94 type(
mesh_t),
pointer :: msh => null()
97 character(len=NEKO_MSH_MAX_ZLBL_LEN),
allocatable :: bc_labels(:)
109 logical :: freeze = .false.
113 user_material_properties => null()
125 procedure, pass(this) :: set_initial_condition => &
128 procedure, pass(this) :: set_initial_condition_base => &
132 pass(this),
deferred :: set_user_initial_condition
149 kspp_init, scheme, user)
157 type(
mesh_t),
target,
intent(inout) :: msh
158 integer,
intent(inout) :: lx
159 type(json_file),
target,
intent(inout) :: params
160 type(
user_t),
target,
intent(in) :: user
163 character(len=*),
intent(in) :: scheme
164 real(kind=
rp) :: abs_tol
165 integer :: integer_val, ierr
166 logical :: logical_val
167 character(len=:),
allocatable :: solver_type, precon_type
168 character(len=LOG_SIZE) :: log_buf
169 real(kind=
rp) :: gjp_param_a, gjp_param_b
185 type(
mesh_t),
target,
intent(inout) :: msh
186 integer,
intent(inout) :: lx
187 character(len=*),
intent(in) :: scheme
188 type(json_file),
target,
intent(inout) :: params
189 type(
user_t),
target,
intent(in) :: user
190 logical,
intent(in) :: kspv_init
192 character(len=LOG_SIZE) :: log_buf
193 real(kind=
rp),
allocatable :: real_vec(:)
194 real(kind=
rp) :: real_val, kappa, b, z0
195 logical :: logical_val
196 integer :: integer_val, ierr
197 type(json_file) :: wm_json
198 character(len=:),
allocatable :: string_val1, string_val2
221 numerics_params, user, chkp, output_boundary)
229 type(
mesh_t),
target,
intent(inout) :: msh
230 integer,
intent(in) :: lx
231 type(json_file),
target,
intent(inout) :: params
232 type(json_file),
target,
intent(inout) :: numerics_params
233 type(
user_t),
target,
intent(in) :: user
234 type(
chkp_t),
target,
intent(inout) :: chkp
235 logical,
intent(in) :: output_boundary
265 type(
chkp_t),
intent(inout) :: chkp
275 type(
user_t),
intent(in) :: user
284 type(
user_t),
target,
intent(in) :: user
285 type(json_file),
intent(inout) :: params
312 real(kind=
dp),
intent(in) :: dt
319 module subroutine fluid_scheme_base_factory(object, type_name)
320 class(fluid_scheme_base_t),
intent(inout),
allocatable :: object
321 character(len=*) :: type_name
322 end subroutine fluid_scheme_base_factory
332 subroutine fluid_scheme_base_set_initial_condition(this, params, user, &
334 class(fluid_scheme_base_t),
intent(inout) :: this
335 type(json_file),
intent(inout) :: params
336 type(
user_t),
intent(in) :: user
337 logical,
intent(in) :: is_restart
338 character(len=:),
allocatable :: ic_type
339 type(json_file) :: ic_params
341 call neko_log%section(
"Fluid initial condition ")
344 call neko_log%message(
"Restart file specified, " // &
345 "initial conditions ignored")
347 call json_get(params,
'initial_condition.type', ic_type)
351 if (trim(ic_type) .ne.
'user')
then
352 call json_get(params,
'initial_condition', ic_params)
354 this%gs_Xh, ic_type, ic_params)
355 call ic_params%destroy()
357 call this%set_user_initial_condition(
user)
365 end subroutine fluid_scheme_base_set_initial_condition
Deallocate a fluid formulation.
Initialize common data for the current scheme.
Abstract interface to dealocate a fluid formulation.
Abstract interface to initialize a fluid formulation.
Abstract interface to restart a fluid scheme.
Abstract interface to set the initial condition of a fluid scheme with the user routine.
Abstract interface to compute a time-step.
Abstract interface to setup boundary conditions.
Abstract interface to sets rho and mu.
Abstract interface to validate the user inflow.
Retrieves a parameter by name or throws an error.
Abstract interface for setting material properties.
Defines format-independent checkpoint registration and restart state.
Defines a dirichlet boundary condition.
Defines a mapping of the degrees of freedom.
Contains the field_serties_t type.
subroutine, public set_flow_ic_builtin(u, v, w, p, coef, gs, type, params)
Set initial flow condition (builtin).
subroutine fluid_scheme_base_set_initial_condition(this, params, user, is_restart)
Initialise a fluid scheme.
Utilities for retrieving parameters from the case files.
type(log_t), public neko_log
Global log stream.
integer, parameter, public log_size
integer, parameter, public neko_msh_max_zlbl_len
Max length of a zone label.
integer, parameter, public dp
integer, parameter, public rp
Global precision used in computations.
Defines a function space.
Compound scheme for the advection and diffusion operators in a transport equation.
Module with things related to the simulation time.
Implements type time_step_controller.
Interfaces for user interaction with NEKO.
A list of allocatable `bc_t`. Follows the standard interface of lists.
Collection of live simulation data registered for checkpointing.
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...
Generic Dirichlet boundary condition on .
field_list_t, To be able to group fields together
Stores a series (sequence) of fields, logically connected to a base field, and arranged according to ...
Base type of all fluid formulations.
The function space for the SEM solution fields.
Implements the logic to compute the time coefficients for the advection and diffusion operators in a ...
A struct that contains all info about the time, expand as needed.
Provides a tool to set time step dt.
A type collecting all the overridable user routines and flag to suppress type injection from custom m...