https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FixedPointIterationAdaptiveDT.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "TimeStepper.h"
13
18{
19public:
21
23
24 virtual void init() override;
25 virtual void acceptStep() override;
26
27protected:
28 virtual Real computeInitialDT() override;
29 virtual Real computeDT() override;
30
32 const Real _dt_initial;
33
35 const unsigned int _target_center;
37 const unsigned int _target_window;
39 const unsigned int _target_min;
41 const unsigned int _target_max;
42
44 const Real _increase_factor;
46 const Real _decrease_factor;
47
49 Real & _dt_old;
51 unsigned int & _fp_its;
52};
Computes time step size based on a target number of fixed point iterations.
const Real _dt_initial
Initial time step size.
virtual Real computeInitialDT() override
Computes time step size for the initial time step.
virtual void acceptStep() override
This gets called when time step is accepted.
const unsigned int _target_center
Target number of fixed point iterations.
const Real _increase_factor
Factor by which to increase time steps.
const unsigned int _target_max
Maximum fixed point iterations of window.
unsigned int & _fp_its
Number of fixed point iterations in previous solve.
virtual Real computeDT() override
Computes time step size after the initial time step.
const unsigned int _target_min
Minimum fixed point iterations of window.
virtual void init() override
Initialize the time stepper.
const unsigned int _target_window
Number subtracted/added to determine window min and max.
const Real _decrease_factor
Factor by which to decrease time steps.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Base class for time stepping.
Definition TimeStepper.h:23