https://mooseframework.inl.gov
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 {
19 public:
21 
23 
24  virtual void init() override;
25  virtual void acceptStep() override;
26 
27 protected:
28  virtual Real computeInitialDT() override;
29  virtual Real computeDT() override;
30 
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 
47 
51  unsigned int & _fp_its;
52 };
const unsigned int _target_center
Target number of fixed point iterations.
const Real _decrease_factor
Factor by which to decrease time steps.
virtual Real computeInitialDT() override
Computes time step size for the initial time step.
Base class for time stepping.
Definition: TimeStepper.h:22
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void init() override
Initialize the time stepper.
const unsigned int _target_max
Maximum fixed point iterations of window.
Computes time step size based on a target number of fixed point iterations.
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 Real _increase_factor
Factor by which to increase time steps.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _target_min
Minimum fixed point iterations of window.
const Real _dt_initial
Initial time step size.
const InputParameters & parameters() const
Get the parameters of the object.
const unsigned int _target_window
Number subtracted/added to determine window min and max.
virtual void acceptStep() override
This gets called when time step is accepted.
FixedPointIterationAdaptiveDT(const InputParameters &parameters)