LCOV - code coverage report
Current view: top level - include/auxkernels - PorousFlowDarcyVelocityComponent.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-21 14:47:27 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 POROUSFLOWDARCYVELOCITYCOMPONENT_H
       9             : #define POROUSFLOWDARCYVELOCITYCOMPONENT_H
      10             : 
      11             : #include "AuxKernel.h"
      12             : #include "PorousFlowDictator.h"
      13             : 
      14             : // Forward Declarations
      15             : class PorousFlowDarcyVelocityComponent;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlowDarcyVelocityComponent>();
      19             : 
      20             : /**
      21             :  * Computes a component of the Darcy velocity:
      22             :  * -k_ij * krel /mu (nabla_j P - w_j)
      23             :  * where k_ij is the permeability tensor,
      24             :  * krel is the relative permeaility,
      25             :  * mu is the fluid viscosity,
      26             :  * P is the fluid pressure
      27             :  * and w_j is the fluid weight
      28             :  * This is measured in m^3 . s^-1 . m^-2
      29             :  */
      30          88 : class PorousFlowDarcyVelocityComponent : public AuxKernel
      31             : {
      32             : public:
      33             :   PorousFlowDarcyVelocityComponent(const InputParameters & parameters);
      34             : 
      35             : protected:
      36             :   virtual Real computeValue();
      37             : 
      38             :   /// Relative permeability of each phase
      39             :   const MaterialProperty<std::vector<Real>> & _relative_permeability;
      40             : 
      41             :   /// Viscosity of each component in each phase
      42             :   const MaterialProperty<std::vector<Real>> & _fluid_viscosity;
      43             : 
      44             :   /// Permeability of porous material
      45             :   const MaterialProperty<RealTensorValue> & _permeability;
      46             : 
      47             :   /// Gradient of the pore pressure in each phase
      48             :   const MaterialProperty<std::vector<RealGradient>> & _grad_p;
      49             : 
      50             :   /// Fluid density for each phase (at the qp)
      51             :   const MaterialProperty<std::vector<Real>> & _fluid_density_qp;
      52             : 
      53             :   /// PorousFlow UserObject
      54             :   const PorousFlowDictator & _dictator;
      55             : 
      56             :   /// Index of the fluid phase
      57             :   const unsigned int _ph;
      58             : 
      59             :   /// Desired spatial component
      60             :   unsigned int _component;
      61             : 
      62             :   /// Gravitational acceleration
      63             :   const RealVectorValue _gravity;
      64             : };
      65             : 
      66             : #endif // POROUSFLOWDARCYVELOCITYCOMPONENT_H

Generated by: LCOV version 1.11