|
Neko 1.99.3
A portable framework for high-order spectral element flow simulations
|
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. | |
Import field from fld files. This tool is in a separate file because of multiple import requirements.
| 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 | ||
| ) |
| 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. |
Definition at line 86 of file import_field_utils.f90.

