Implements type time_interpolator_t.
|
subroutine | time_interpolator_init (this, order) |
| Constructor.
|
|
subroutine | time_interpolator_free (this) |
| Destructor.
|
|
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.
|
|
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.
|
|
◆ time_interpolator_free()
◆ time_interpolator_init()
- Parameters
-
order | order 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
-
t | time to get interpolated field |
f | interpolated field |
t_past | time in the past for interpolation |
f_past | field in the past for interpolation |
t_future | time in future for interpolation |
f_future | time in future for interpolation |
Definition at line 92 of file time_interpolator.f90.
◆ 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
-
t | time to get interpolated field |
f_interpolated | the interpolated field |
f_n | an array of known fields |
tlag | an array of the time steps corresponding to f_n. |
n | size of the array |
- Note
- This subroutine is similar to the int_vel subroutine of NEK5000
Definition at line 127 of file time_interpolator.f90.