www.mooseframework.org
LevelSetOlssonVortex.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 LEVELSETOLSSONVORTEX_H
9 #define LEVELSETOLSSONVORTEX_H
10 
11 #include "Function.h"
12 
13 // Forward declarations
15 
16 template <>
17 InputParameters validParams<LevelSetOlssonVortex>();
18 
22 class LevelSetOlssonVortex : public Function
23 {
24 public:
25  LevelSetOlssonVortex(const InputParameters & parameters);
26 
27  Real value(Real t, const Point & p) override;
28 
29  RealVectorValue vectorValue(Real t, const Point & p) override;
30 
31 protected:
33  const Real & _reverse_time;
34 
36  const MooseEnum & _reverse_type;
37 
39  const MooseEnum & _component;
40 
42  RealVectorValue _output;
43 
46 
47  // Convenience for libMesh::pi
48  const Real _pi;
49 };
50 
51 #endif // LEVELSETOLSSONVORTEX_H
Real _reverse_coefficient
The time reversal coefficient.
RealVectorValue _output
The velocity field computed.
const MooseEnum & _reverse_type
Type of reverse (instantaneous or smooth)
RealVectorValue vectorValue(Real t, const Point &p) override
const MooseEnum & _component
The vector component to return.
InputParameters validParams< LevelSetOlssonVortex >()
Real value(Real t, const Point &p) override
LevelSetOlssonVortex(const InputParameters &parameters)
const Real & _reverse_time
Total time for the velocity field to complete reverse.
Defines a vortex velocity field in the x-y plane.