|
| 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.
|
| |
Definition at line 54 of file import_field_utils.f90.
◆ 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
-
| fname | The name of the fld file, e.g. "my_field0.f00019". |
| global_interp_subdict | If interpolation is enabled, subdict containing the interpolation parameters to use. |
| mesh_fname | The name of the fld file containing the spatial coordinates, if interpolation is enabled and fname does not already contain them. |
| u | The field on which to import the u component of the fld data. |
| v | The field on which to import the v component of the fld data. |
| w | The field on which to import the w component of the fld data. |
| p | The field on which to import the pressure field of the fld data. |
| t | The field on which to import the temperature field of the fld data. |
| s_target_list | Field 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_list | The 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=.... |
| interpolate | Whether 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.
◆ 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
-
| fname | The name of the fld file, e.g. "my_field0.f00019". |
| mesh_fname | The name of the fld file containing the spatial coordinates, if interpolation is enabled and fname does not already contain them. |
| u | The field on which to import the u component of the fld data. |
| v | The field on which to import the v component of the fld data. |
| w | The field on which to import the w component of the fld data. |
| p | The field on which to import the pressure field of the fld data. |
| t | The field on which to import the temperature field of the fld data. |
| s_target_list | Field 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_list | The 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=.... |
| interpolate | Whether or not to interpolate the fld data. |
| tolerance | If interpolation is enabled, the tolerance to use for the point finding. |
| padding | If 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.
The documentation for this interface was generated from the following file: