Cardinal
NekTimeStepper.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 UChicago Argonne, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by UChicago Argonne, LLC */
9 /* Under Contract No. DE-AC02-06CH11357 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* Prepared by Battelle Energy Alliance, LLC */
13 /* Under Contract No. DE-AC07-05ID14517 */
14 /* With the U. S. Department of Energy */
15 /* */
16 /* See LICENSE for full restrictions */
17 /********************************************************************/
18 
19 #pragma once
20 
21 #include "TimeStepper.h"
22 
37 class NekTimeStepper : public TimeStepper
38 {
39 public:
40  NekTimeStepper(const InputParameters & parameters);
41 
42  static InputParameters validParams();
43 
44  virtual Real minDT() const;
45 
51  virtual void setReferenceTime(const Real & L, const Real & U);
52 
58  virtual Real nondimensionalDT(const Real & dimensional_dt) const;
59 
60 protected:
61  virtual Real computeInitialDT() override;
62 
63  virtual Real computeDT() override;
64 
66  Real _min_dt;
67 
72  Real _nek_dt;
73 
75  Real _t_ref;
76 };
Real _min_dt
Minimum allowable time step (dimensional) that MOOSE can set in NekRS.
Definition: NekTimeStepper.h:66
Real _nek_dt
Definition: NekTimeStepper.h:72
virtual Real minDT() const
Real _t_ref
Reference time scale.
Definition: NekTimeStepper.h:75
virtual Real computeDT() override
virtual Real computeInitialDT() override
static InputParameters validParams()
virtual void setReferenceTime(const Real &L, const Real &U)
virtual Real nondimensionalDT(const Real &dimensional_dt) const
Time stepper that reads time step information directly from nekRS.
Definition: NekTimeStepper.h:37
NekTimeStepper(const InputParameters &parameters)