www.mooseframework.org
MovingPlanarFront.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "Function.h"
13 #include "FunctionInterface.h"
14 
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) const override;
34 
35 protected:
37  const RealVectorValue _start_posn;
38 
40  const RealVectorValue _end_posn;
41 
43  const 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 };
MovingPlanarFront::_deactivation_time
const Real _deactivation_time
Deactivation time.
Definition: MovingPlanarFront.h:58
MovingPlanarFront::_active_length
const Real _active_length
Active length.
Definition: MovingPlanarFront.h:46
MovingPlanarFront
Defines the position of a moving front.
Definition: MovingPlanarFront.h:28
MovingPlanarFront::_front_normal
RealVectorValue _front_normal
Front unit normal.
Definition: MovingPlanarFront.h:61
validParams< MovingPlanarFront >
InputParameters validParams< MovingPlanarFront >()
Definition: MovingPlanarFront.C:16
MovingPlanarFront::_false_value
const Real _false_value
False value to return.
Definition: MovingPlanarFront.h:52
MovingPlanarFront::_start_posn
const RealVectorValue _start_posn
Initial position of front.
Definition: MovingPlanarFront.h:37
MovingPlanarFront::_true_value
const Real _true_value
True value to return.
Definition: MovingPlanarFront.h:49
MovingPlanarFront::_end_posn
const RealVectorValue _end_posn
Final position of the front: together with start_posn this defines the front's normal.
Definition: MovingPlanarFront.h:40
MovingPlanarFront::_distance
const Function & _distance
The front's distance from start_posn (along the normal direction)
Definition: MovingPlanarFront.h:43
MovingPlanarFront::_activation_time
const Real _activation_time
Activation time.
Definition: MovingPlanarFront.h:55
MovingPlanarFront::MovingPlanarFront
MovingPlanarFront(const InputParameters &parameters)
Definition: MovingPlanarFront.C:57
MovingPlanarFront::value
virtual Real value(Real t, const Point &p) const override
Definition: MovingPlanarFront.C:76