www.mooseframework.org
PorousFlowDarcyVelocityComponent.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 POROUSFLOWDARCYVELOCITYCOMPONENT_H
9 #define POROUSFLOWDARCYVELOCITYCOMPONENT_H
10 
11 #include "AuxKernel.h"
12 #include "PorousFlowDictator.h"
13 
14 // Forward Declarations
16 
17 template <>
19 
30 class PorousFlowDarcyVelocityComponent : public AuxKernel
31 {
32 public:
33  PorousFlowDarcyVelocityComponent(const InputParameters & parameters);
34 
35 protected:
36  virtual Real computeValue();
37 
39  const MaterialProperty<std::vector<Real>> & _relative_permeability;
40 
42  const MaterialProperty<std::vector<Real>> & _fluid_viscosity;
43 
45  const MaterialProperty<RealTensorValue> & _permeability;
46 
48  const MaterialProperty<std::vector<RealGradient>> & _grad_p;
49 
51  const MaterialProperty<std::vector<Real>> & _fluid_density_qp;
52 
55 
57  const unsigned int _ph;
58 
60  unsigned int _component;
61 
63  const RealVectorValue _gravity;
64 };
65 
66 #endif // POROUSFLOWDARCYVELOCITYCOMPONENT_H
InputParameters validParams< PorousFlowDarcyVelocityComponent >()
const MaterialProperty< RealTensorValue > & _permeability
Permeability of porous material.
const MaterialProperty< std::vector< RealGradient > > & _grad_p
Gradient of the pore pressure in each phase.
const MaterialProperty< std::vector< Real > > & _relative_permeability
Relative permeability of each phase.
const RealVectorValue _gravity
Gravitational acceleration.
Computes a component of the Darcy velocity: -k_ij * krel /mu (nabla_j P - w_j) where k_ij is the perm...
PorousFlowDarcyVelocityComponent(const InputParameters &parameters)
unsigned int _component
Desired spatial component.
const PorousFlowDictator & _dictator
PorousFlow UserObject.
const MaterialProperty< std::vector< Real > > & _fluid_viscosity
Viscosity of each component in each phase.
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const unsigned int _ph
Index of the fluid phase.
const MaterialProperty< std::vector< Real > > & _fluid_density_qp
Fluid density for each phase (at the qp)