www.mooseframework.org
CNSFVTimeStepLimit.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef CNSFVTIMESTEPLIMIT_H
9 #define CNSFVTIMESTEPLIMIT_H
10 
11 #include "ElementPostprocessor.h"
12 
13 class CNSFVTimeStepLimit;
14 
15 template <>
16 InputParameters validParams<CNSFVTimeStepLimit>();
17 
21 class CNSFVTimeStepLimit : public ElementPostprocessor
22 {
23 public:
24  CNSFVTimeStepLimit(const InputParameters & parameters);
25  virtual ~CNSFVTimeStepLimit();
26 
27  virtual void initialize();
28 
29  virtual void execute();
30 
31  virtual Real getValue();
32 
33  virtual void threadJoin(const UserObject & uo);
34 
35 protected:
36  unsigned int _dim;
37 
39  Real _value;
40 
42  Real _cfl;
43 
45  const MaterialProperty<Real> & _vmag;
46 
48  const MaterialProperty<Real> & _csou;
49 };
50 
51 #endif
const MaterialProperty< Real > & _vmag
velocity magnitude
virtual Real getValue()
virtual void threadJoin(const UserObject &uo)
const MaterialProperty< Real > & _csou
speed of sound
virtual void initialize()
Real _value
the value of dt
virtual void execute()
Real _cfl
user-input coefficient
CNSFVTimeStepLimit(const InputParameters &parameters)
InputParameters validParams< CNSFVTimeStepLimit >()
A PostProcessor object to calculate the allowable time step size for the CNS equations.