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

Public Member Functions

subroutine import_fields_from_json (fname, global_interp_subdict, mesh_fname, u, v, w, p, t, s_target_list, s_index_list, interpolate)
 Imports fields from an fld file, potentially with interpolation, with parameters provided in a JSON subdict.
 
subroutine import_fields_from_params (fname, mesh_fname, u, v, w, p, t, s_target_list, s_index_list, interpolate, tolerance, padding)
 Imports fields from an fld file, potentially with interpolation.
 

Detailed Description

Definition at line 54 of file import_field_utils.f90.

Member Function/Subroutine Documentation

◆ import_fields_from_json()

subroutine import_field_utils::import_fields::import_fields_from_json ( character(len=*), intent(in fname,
type(json_file), intent(inout global_interp_subdict,
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 
)
Parameters
fnameThe name of the fld file, e.g. "my_field0.f00019".
global_interp_subdictIf interpolation is enabled, subdict containing the interpolation parameters to use.
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.
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 91 of file import_field_utils.f90.

Here is the call graph for this function:

◆ import_fields_from_params()

subroutine import_field_utils::import_fields::import_fields_from_params ( 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=dp), intent(in), optional  tolerance,
real(kind=dp), intent(in), optional  padding 
)
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.
paddingIf 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 147 of file import_field_utils.f90.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: