www.mooseframework.org
Functions
MovingPlanarFront.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("PorousFlowApp", MovingPlanarFront)
 
template<>
InputParameters validParams< MovingPlanarFront > ()
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "PorousFlowApp"  ,
MovingPlanarFront   
)

◆ validParams< MovingPlanarFront >()

template<>
InputParameters validParams< MovingPlanarFront > ( )

Definition at line 16 of file MovingPlanarFront.C.

17 {
18  InputParameters params = validParams<Function>();
19  params.addRequiredParam<RealVectorValue>("start_posn", "Initial position of the front");
20  params.addRequiredParam<RealVectorValue>("end_posn", "Final position of the front");
21  params.addRequiredParam<FunctionName>(
22  "distance",
23  "The front is an infinite plane with normal pointing from start_posn to "
24  "end_posn. The front's distance from start_posn is defined by distance. You "
25  "should ensure that distance is positive");
26  params.addParam<Real>(
27  "active_length",
28  std::numeric_limits<Real>::max(),
29  "Points greater than active_length behind the front will return false_value");
30  params.addParam<Real>("true_value", 1.0, "Return this value if a point is in the active zone.");
31  params.addParam<Real>(
32  "false_value", 0.0, "Return this value if a point is not in the active zone.");
33  params.addParam<Real>("activation_time",
34  std::numeric_limits<Real>::lowest(),
35  "This function will return false_value when t < activation_time");
36  params.addParam<Real>("deactivation_time",
37  std::numeric_limits<Real>::max(),
38  "This function will return false_value when t >= deactivation_time");
39  params.addClassDescription(
40  "This function defines the position of a moving front. The front is "
41  "an infinite plane with normal pointing from start_posn to end_posn. The front's distance "
42  "from start_posn is defined by 'distance', so if the 'distance' function is time dependent, "
43  "the front's position will change with time. Roughly speaking, the function returns "
44  "true_value for points lying in between start_posn and start_posn + distance. Precisely "
45  "speaking, two planes are constructed, both with normal pointing from start_posn to "
46  "end_posn. The first plane passes through start_posn; the second plane passes through "
47  "end_posn. Given a point p and time t, this function returns false_value if ANY of the "
48  "following are true: (a) t<activation_time; (b) t>=deactivation_time; (c) p is 'behind' "
49  "start_posn (ie, p lies on one side of the start_posn plane and end_posn lies on the other "
50  "side); (d) p is 'ahead' of the front (ie, p lies one one side of the front and start_posn "
51  "lies on the other side); (e) the distance between p and the front is greater than "
52  "active_length. Otherwise, the point is 'in the active zone' and the function returns "
53  "true_value.");
54  return params;
55 }