www.mooseframework.org
MovingPlanarFront.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 MOVINGPLANARFRONT_H
9 #define MOVINGPLANARFRONT_H
10 
11 #include "Function.h"
12 #include "FunctionInterface.h"
13 
14 // Forward Declarations
15 class MovingPlanarFront;
16 
17 template <>
18 InputParameters validParams<MovingPlanarFront>();
19 
28 class MovingPlanarFront : public Function, protected FunctionInterface
29 {
30 public:
31  MovingPlanarFront(const InputParameters & parameters);
32 
33  virtual Real value(Real t, const Point & p) override;
34 
35 protected:
37  const RealVectorValue _start_posn;
38 
40  const RealVectorValue _end_posn;
41 
43  Function & _distance;
44 
46  const Real _active_length;
47 
49  const Real _true_value;
50 
52  const Real _false_value;
53 
55  const Real _activation_time;
56 
58  const Real _deactivation_time;
59 
61  RealVectorValue _front_normal;
62 };
63 
64 #endif // MOVINGPLANARFRONT_H
const Real _activation_time
activation time
MovingPlanarFront(const InputParameters &parameters)
InputParameters validParams< MovingPlanarFront >()
const Real _deactivation_time
deactivation time
const RealVectorValue _start_posn
Initial position of front.
virtual Real value(Real t, const Point &p) override
const Real _false_value
false value to return
Defines the position of a moving front.
Function & _distance
The front&#39;s distance from start_posn (along the normal direction)
const Real _true_value
true value to return
const RealVectorValue _end_posn
Final position of the front: together with start_posn this defines the front&#39;s normal.
const Real _active_length
active length
RealVectorValue _front_normal
front unit normal