Neko 1.99.3
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
import_field_utils Module Reference

Importation of fields from fld files. More...

Functions/Subroutines

subroutine, public import_fields (fname, mesh_fname, u, v, w, p, t, s_target_list, s_index_list, interpolate, tolerance)
 Imports fields from an fld file, potentially with interpolation.
 

Detailed Description

Import field from fld files. This tool is in a separate file because of multiple import requirements.

Function/Subroutine Documentation

◆ import_fields()

subroutine, public import_field_utils::import_fields ( character(len=*), intent(in fname,
character(len=*), intent(in), optional  mesh_fname,
type(field_t), intent(inout), optional, pointer  u,
type(field_t), intent(inout), optional, pointer  v,
type(field_t), intent(inout), optional, pointer  w,
type(field_t), intent(inout), optional, pointer  p,
type(field_t), intent(inout), optional, pointer  t,
type(field_list_t), intent(inout), optional  s_target_list,
integer, dimension(:), intent(in), optional  s_index_list,
logical, intent(in), optional  interpolate,
real(kind=rp), intent(in), optional  tolerance 
)
Parameters
fnameThe name of the fld file, e.g. "my_field0.f00019".
mesh_fnameThe name of the fld file containing the spatial coordinates, if interpolation is enabled and fname does not already contain them.
uThe field on which to import the u component of the fld data.
vThe field on which to import the v component of the fld data.
wThe field on which to import the w component of the fld data.
pThe field on which to import the pressure field of the fld data.
tThe field on which to import the temperature field of the fld data.
s_target_listField list containing the fields on which to import the scalar fields of the fld data. Unless a list of target indices is provided in s_index_list, assigns field at position i in the list to scalar i in the fld file.
s_index_listThe list of scalars indices from which to load the fields provided in s_target_list. Must have the same size as s_target_list. For example, s_index_list = (/2,3/) will load scalar #2 in s_target_listitems(1) and scalar #3 in s_target_listitems(2). Index 0 corresponds to temperature by default. Therefore using s_index_list = (/0/) is equivalent to using the argument t=....
interpolateWhether or not to interpolate the fld data.
toleranceIf interpolation is enabled, the tolerance to use for the point finding.
Note
If interpolation is disabled, space-to-space interpolation is still performed within each element to allow for seamless change of polynomial order for the same given mesh.
This subroutine also takes care of data movement from host to to device when necessary, i.e. only the required fields are copied to device.

Definition at line 86 of file import_field_utils.f90.

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