Neko  0.9.0
A portable framework for high-order spectral element flow simulations
time_interpolator Module Reference

Implements type time_interpolator_t.

Data Types

type  time_interpolator_t
 Provides a tool to perform interpolation in time. More...
 

Functions/Subroutines

subroutine time_interpolator_init (this, order)
 Constructor. More...
 
subroutine time_interpolator_free (this)
 Destructor. More...
 
subroutine time_interpolator_interpolate (this, t, f, t_past, f_past, t_future, f_future)
 Interpolate a field at time t from fields at time t-dt and t+dt. More...
 
subroutine time_interpolator_scalar (this, t, f_interpolated, f_n, tlag, n)
 Interpolate a scalar field at time t from known scalar fields at different time steps. More...
 

Function/Subroutine Documentation

◆ time_interpolator_free()

subroutine time_interpolator::time_interpolator_free ( class(time_interpolator_t), intent(inout)  this)
private

Definition at line 80 of file time_interpolator.f90.

◆ time_interpolator_init()

subroutine time_interpolator::time_interpolator_init ( class(time_interpolator_t), intent(inout)  this,
integer, intent(in), target  order 
)
Parameters
orderorder of the interpolation

call destructior

Assign values

Definition at line 66 of file time_interpolator.f90.

◆ time_interpolator_interpolate()

subroutine time_interpolator::time_interpolator_interpolate ( class(time_interpolator_t), intent(inout)  this,
real(kind=rp), intent(inout)  t,
type(field_t), intent(inout)  f,
real(kind=rp), intent(inout)  t_past,
type(field_t), intent(inout)  f_past,
real(kind=rp), intent(inout)  t_future,
type(field_t), intent(inout)  f_future 
)
private
Parameters
ttime to get interpolated field
finterpolated field
t_pasttime in the past for interpolation
f_pastfield in the past for interpolation
t_futuretime in future for interpolation
f_futuretime in future for interpolation

Definition at line 92 of file time_interpolator.f90.

Here is the call graph for this function:

◆ time_interpolator_scalar()

subroutine time_interpolator::time_interpolator_scalar ( class(time_interpolator_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
real(kind=rp), dimension(n), intent(inout)  f_interpolated,
real(kind=rp), dimension(n, 0:this%order - 1), intent(in)  f_n,
real(kind=rp), dimension(0:this%order), intent(in)  tlag,
integer, intent(in)  n 
)
private
Parameters
ttime to get interpolated field
f_interpolatedthe interpolated field
f_nan array of known fields
tlagan array of the time steps corresponding to f_n.
nsize of the array
Note
This subroutine is similar to the int_vel subroutine of NEK5000

Definition at line 127 of file time_interpolator.f90.

Here is the call graph for this function: