Neko 0.9.99
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, dt, cfl, cfl_avrg, tstep)
 Set time stepping.
 

Public Attributes

logical if_variable_dt
 Components recording time stepping info.
 
real(kind=rp) set_cfl
 
real(kind=rp) max_dt
 
integer max_update_frequency
 
integer dt_last_change
 
real(kind=rp) alpha
 
real(kind=rp) max_dt_increase_factor
 
real(kind=rp) min_dt_decrease_factor
 
real(kind=rp) dev_tol
 

Detailed Description

Definition at line 43 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 55 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,
real(kind=rp), intent(inout dt,
real(kind=rp), intent(in cfl,
real(kind=rp), intent(inout cfl_avrg,
integer, intent(in tstep 
)
Parameters
dttime step in case_t.
cflcourant number of current iteration.
cfl_avrgaverage Courant number.
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_avrg is offset by 20%.

Definition at line 57 of file time_step_controller.f90.

Member Data Documentation

◆ alpha

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

Definition at line 50 of file time_step_controller.f90.

◆ dev_tol

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

Definition at line 52 of file time_step_controller.f90.

◆ dt_last_change

integer time_step_controller::time_step_controller_t::dt_last_change

Definition at line 49 of file time_step_controller.f90.

◆ if_variable_dt

logical time_step_controller::time_step_controller_t::if_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 47 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 51 of file time_step_controller.f90.

◆ max_update_frequency

integer time_step_controller::time_step_controller_t::max_update_frequency

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 51 of file time_step_controller.f90.

◆ set_cfl

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

Definition at line 46 of file time_step_controller.f90.


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