Neko  0.9.99
A portable framework for high-order spectral element flow simulations
fld_file_data Module Reference

Simple module to handle fld file series. Provides an interface to the different fields sotred in a fld file Also provides simple functions to scale and add different fld files. An example of using this module is shown in contrib/average_fields.f90 The fld_file_data_t should dynamically update each time one reads a new fld file. Martin Karp 1/2-2023.

Data Types

type  fld_file_data_t
 

Functions/Subroutines

subroutine fld_file_data_init (this, nelv, offset_el)
 Initialise a fld_file_data object with nelv elements with a offset_nel. More...
 
integer function fld_file_data_size (this)
 Get number of fields in this fld file. More...
 
subroutine fld_file_data_init_same (this, fld_file, n)
 Genereate same fields as in another fld_file. More...
 
subroutine fld_file_data_init_n_fields (this, n_fields, n)
 Genereate same fields as in another fld_file. More...
 
subroutine fld_file_data_get_list (this, ptr_list, n)
 Get a list with pointers to the fields in the fld file. More...
 
subroutine fld_file_data_scale (this, c)
 Scale the values stored in this fld_file_data. More...
 
subroutine fld_file_data_add (this, fld_data_add)
 Add the values in another fld file to this. More...
 
subroutine fld_file_data_free (this)
 Deallocate fld file data type. More...
 
type(global_interpolation_t) function fld_file_data_generate_interpolator (this, to_dof, to_msh, tolerance)
 Generates a global_interpolation object to interpolate the fld data. More...
 

Function/Subroutine Documentation

◆ fld_file_data_add()

subroutine fld_file_data::fld_file_data_add ( class(fld_file_data_t), intent(inout)  this,
class(fld_file_data_t), intent(in)  fld_data_add 
)
private

Definition at line 205 of file fld_file_data.f90.

Here is the call graph for this function:

◆ fld_file_data_free()

subroutine fld_file_data::fld_file_data_free ( class(fld_file_data_t), intent(inout)  this)
private

Definition at line 223 of file fld_file_data.f90.

◆ fld_file_data_generate_interpolator()

type(global_interpolation_t) function fld_file_data::fld_file_data_generate_interpolator ( class(fld_file_data_t), intent(in)  this,
type(dofmap_t), intent(in), target  to_dof,
type(mesh_t), intent(in), target  to_msh,
real(kind=rp), intent(in)  tolerance 
)
private
Parameters
to_dofDofmap on which to interpolate.
to_mshMesh on which to interpolate.
toleranceTolerance for the newton iterations.

To ensure that each point is within an element Remedies issue with points on the boundary Technically gives each point a slightly different value but still within the specified tolerance

Definition at line 258 of file fld_file_data.f90.

◆ fld_file_data_get_list()

subroutine fld_file_data::fld_file_data_get_list ( class(fld_file_data_t), intent(in), target  this,
type(vector_ptr_t), dimension(n), intent(inout)  ptr_list,
integer, intent(in)  n 
)
private

Definition at line 151 of file fld_file_data.f90.

◆ fld_file_data_init()

subroutine fld_file_data::fld_file_data_init ( class(fld_file_data_t), intent(inout)  this,
integer, intent(in), optional  nelv,
integer, intent(in), optional  offset_el 
)

Definition at line 65 of file fld_file_data.f90.

◆ fld_file_data_init_n_fields()

subroutine fld_file_data::fld_file_data_init_n_fields ( class(fld_file_data_t), intent(inout), target  this,
integer, intent(in)  n_fields,
integer, intent(in)  n 
)
private

Definition at line 119 of file fld_file_data.f90.

◆ fld_file_data_init_same()

subroutine fld_file_data::fld_file_data_init_same ( class(fld_file_data_t), intent(inout), target  this,
class(fld_file_data_t), intent(in), target  fld_file,
integer, intent(in)  n 
)
private

Definition at line 89 of file fld_file_data.f90.

◆ fld_file_data_scale()

subroutine fld_file_data::fld_file_data_scale ( class(fld_file_data_t), intent(inout)  this,
real(kind=rp), intent(in)  c 
)
private

Definition at line 187 of file fld_file_data.f90.

Here is the call graph for this function:

◆ fld_file_data_size()

integer function fld_file_data::fld_file_data_size ( class(fld_file_data_t this)
private

Definition at line 75 of file fld_file_data.f90.