Neko  0.9.0
A portable framework for high-order spectral element flow simulations
flow_ic Module Reference

Initial flow condition.

Data Types

interface  set_flow_ic
 

Functions/Subroutines

subroutine set_flow_ic_int (u, v, w, p, coef, gs, type, params)
 Set initial flow condition (builtin) More...
 
subroutine set_flow_ic_usr (u, v, w, p, coef, gs, usr_ic, params)
 Set intial flow condition (user defined) More...
 
subroutine set_flow_ic_common (u, v, w, p, coef, gs)
 
subroutine set_flow_ic_uniform (u, v, w, uinf)
 Uniform initial condition. More...
 
subroutine set_flow_ic_blasius (u, v, w, delta, uinf, type)
 Set a Blasius profile as initial condition. More...
 
subroutine set_flow_ic_point_zone (u, v, w, base_value, zone_name, zone_value)
 Set the initial condition of the flow based on a point zone. More...
 
subroutine set_flow_ic_fld (u, v, w, p, file_name, interpolate, tolerance, mesh_file_name)
 Set the initial condition of the flow based on a field. @detail The fields are read from an fld file. If enabled, interpolation is also possible. In that case, the mesh coordinates can be read from another field in the fld field series. More...
 

Function/Subroutine Documentation

◆ set_flow_ic_blasius()

subroutine flow_ic::set_flow_ic_blasius ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
real(kind=rp), intent(in)  delta,
real(kind=rp), dimension(3), intent(in)  uinf,
character(len=*), intent(in)  type 
)
private
Note
currently limited to axis aligned flow

Definition at line 233 of file flow_ic.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_flow_ic_common()

subroutine flow_ic::set_flow_ic_common ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
type(field_t), intent(inout)  p,
type(coef_t), intent(in)  coef,
type(gs_t), intent(inout)  gs 
)
private

Definition at line 168 of file flow_ic.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_flow_ic_fld()

subroutine flow_ic::set_flow_ic_fld ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
type(field_t), intent(inout)  p,
character(len=*), intent(in)  file_name,
logical, intent(in)  interpolate,
real(kind=rp), intent(in)  tolerance,
character(len=*), intent(inout)  mesh_file_name 
)
private
Parameters
uThe x-component of the velocity field.
vThe y-component of the velocity field.
wThe z-component of the velocity field.
pThe pressure field.
file_nameThe name of the "fld" file series.
sample_idxindex of the field file .f000* to read, default is -1.
interpolateFlag to indicate wether or not to interpolate the values onto the current mesh.
toleranceIf interpolation is enabled, tolerance for finding the points in the mesh.
sample_mesh_idxIf interpolation is enabled, index of the field file where the mesh coordinates are located.

Definition at line 350 of file flow_ic.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_flow_ic_int()

subroutine flow_ic::set_flow_ic_int ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
type(field_t), intent(inout)  p,
type(coef_t), intent(in)  coef,
type(gs_t), intent(inout)  gs,
character(len=*)  type,
type(json_file), intent(inout)  params 
)
private

Definition at line 71 of file flow_ic.f90.

◆ set_flow_ic_point_zone()

subroutine flow_ic::set_flow_ic_point_zone ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
real(kind=rp), dimension(3), intent(in)  base_value,
character(len=*), intent(in)  zone_name,
real(kind=rp), dimension(:), intent(in)  zone_value 
)
private

The initial condition is set to the base value and then the zone is filled with the zone value.

Parameters
uThe x-component of the velocity field.
vThe y-component of the velocity field.
wThe z-component of the velocity field.
base_valueThe base value of the initial condition.
zone_nameThe name of the point zone.
zone_valueThe value of the point zone.

Definition at line 301 of file flow_ic.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_flow_ic_uniform()

subroutine flow_ic::set_flow_ic_uniform ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
real(kind=rp), dimension(3), intent(in)  uinf 
)
private

Definition at line 206 of file flow_ic.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_flow_ic_usr()

subroutine flow_ic::set_flow_ic_usr ( type(field_t), intent(inout)  u,
type(field_t), intent(inout)  v,
type(field_t), intent(inout)  w,
type(field_t), intent(inout)  p,
type(coef_t), intent(in)  coef,
type(gs_t), intent(inout)  gs,
procedure(useric usr_ic,
type(json_file), intent(inout)  params 
)
private

Definition at line 150 of file flow_ic.f90.