Neko 1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
time_step_controller::time_step_controller_t Type Reference

Provides a tool to set time step dt. More...

Public Member Functions

procedure, pass(thisinit (this, params)
 Initialize object.
 
procedure, pass(thisset_dt (this, time, cfl)
 Set time stepping.
 

Public Attributes

logical is_variable_dt
 
real(kind=rp) cfl_trg
 
real(kind=rp) cfl_avg
 
real(kind=rp) max_dt
 
real(kind=rp) min_dt
 
integer max_update_frequency
 
integer min_update_frequency
 
integer dt_last_change
 
real(kind=rp) alpha
 coefficient of running average
 
real(kind=rp) max_dt_increase_factor
 
real(kind=rp) min_dt_decrease_factor
 
real(kind=rp) dev_tol
 

Detailed Description

Definition at line 44 of file time_step_controller.f90.

Member Function/Subroutine Documentation

◆ init()

procedure, pass(this) time_step_controller::time_step_controller_t::init ( class(time_step_controller_t), intent(inout this,
type(json_file), intent(inout params 
)
Parameters
orderorder of the interpolation

Definition at line 56 of file time_step_controller.f90.

◆ set_dt()

procedure, pass(this) time_step_controller::time_step_controller_t::set_dt ( class(time_step_controller_t), intent(inout this,
type(time_state_t), intent(inout time,
real(kind=rp), intent(in cfl 
)
Parameters
dttime step in case_t.
cflcourant number of current iteration.
tstepthe current time step. @Algorithm:
  1. Set the first time step such that cfl is the set one;
  2. During time-stepping, adjust dt when cfl_avg is offset by 20%.

Definition at line 58 of file time_step_controller.f90.

Member Data Documentation

◆ alpha

real(kind=rp) time_step_controller::time_step_controller_t::alpha

Definition at line 51 of file time_step_controller.f90.

◆ cfl_avg

real(kind=rp) time_step_controller::time_step_controller_t::cfl_avg

Definition at line 47 of file time_step_controller.f90.

◆ cfl_trg

real(kind=rp) time_step_controller::time_step_controller_t::cfl_trg

Definition at line 46 of file time_step_controller.f90.

◆ dev_tol

real(kind=rp) time_step_controller::time_step_controller_t::dev_tol

Definition at line 53 of file time_step_controller.f90.

◆ dt_last_change

integer time_step_controller::time_step_controller_t::dt_last_change

Definition at line 50 of file time_step_controller.f90.

◆ is_variable_dt

logical time_step_controller::time_step_controller_t::is_variable_dt

Definition at line 45 of file time_step_controller.f90.

◆ max_dt

real(kind=rp) time_step_controller::time_step_controller_t::max_dt

Definition at line 48 of file time_step_controller.f90.

◆ max_dt_increase_factor

real(kind=rp) time_step_controller::time_step_controller_t::max_dt_increase_factor

Definition at line 52 of file time_step_controller.f90.

◆ max_update_frequency

integer time_step_controller::time_step_controller_t::max_update_frequency

Definition at line 49 of file time_step_controller.f90.

◆ min_dt

real(kind=rp) time_step_controller::time_step_controller_t::min_dt

Definition at line 48 of file time_step_controller.f90.

◆ min_dt_decrease_factor

real(kind=rp) time_step_controller::time_step_controller_t::min_dt_decrease_factor

Definition at line 52 of file time_step_controller.f90.

◆ min_update_frequency

integer time_step_controller::time_step_controller_t::min_update_frequency

Definition at line 49 of file time_step_controller.f90.


The documentation for this type was generated from the following file: