LCOV - code coverage report
Current view: top level - include/functions - MovingPlanarFront.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      20             : /**
      21             :  * Defines the position of a moving front.
      22             :  * The front is an infinite plane with normal pointing from start_posn to end_posn.
      23             :  * The front's distance from start_posn is defined by the 'distance' function
      24             :  *
      25             :  * This Function may be used to define the geometry of an underground excavation,
      26             :  * probably in conjunction with a predefined sideset.
      27             :  */
      28           2 : 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:
      36             :   /// Initial position of front
      37             :   const RealVectorValue _start_posn;
      38             : 
      39             :   /// Final position of the front: together with start_posn this defines the front's normal
      40             :   const RealVectorValue _end_posn;
      41             : 
      42             :   /// The front's distance from start_posn (along the normal direction)
      43             :   Function & _distance;
      44             : 
      45             :   /// active length
      46             :   const Real _active_length;
      47             : 
      48             :   /// true value to return
      49             :   const Real _true_value;
      50             : 
      51             :   /// false value to return
      52             :   const Real _false_value;
      53             : 
      54             :   /// activation time
      55             :   const Real _activation_time;
      56             : 
      57             :   /// deactivation time
      58             :   const Real _deactivation_time;
      59             : 
      60             :   /// front unit normal
      61             :   RealVectorValue _front_normal;
      62             : };
      63             : 
      64             : #endif // MOVINGPLANARFRONT_H

Generated by: LCOV version 1.11