www.mooseframework.org
PorousFlow2PhasePP.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 "PorousFlowVariableBase.h"
13 
15 
20 template <bool is_ad>
22 {
23 public:
25 
26  PorousFlow2PhasePPTempl(const InputParameters & parameters);
27 
28 protected:
29  virtual void initQpStatefulProperties() override;
30  virtual void computeQpProperties() override;
31 
37 
43  const unsigned int _phase0_porepressure_varnum;
45  const unsigned int _p0var;
51  const unsigned int _phase1_porepressure_varnum;
53  const unsigned int _p1var;
56 
58 };
59 
virtual void initQpStatefulProperties() override
const unsigned int _p0var
PorousFlow variable number of the phase0 porepressure.
const unsigned int _phase1_porepressure_varnum
Moose variable number of the phase1 porepressure.
const PorousFlowCapillaryPressure & _pc_uo
Capillary pressure UserObject.
typename Moose::GenericType< VariableValue, is_ad > GenericVariableValue
PorousFlow2PhasePPTempl< true > ADPorousFlow2PhasePP
const GenericVariableValue< is_ad > & _phase1_porepressure
Nodal or quadpoint value of porepressure of the one phase (eg, the gas phase)
const GenericVariableValue< is_ad > & _phase0_porepressure
Nodal or quadpoint value of porepressure of the zero phase (eg, the water phase)
Base class for capillary pressure for multiphase flow in porous media.
const unsigned int _phase0_porepressure_varnum
Moose variable number of the phase0 porepressure.
static InputParameters validParams()
GenericReal< is_ad > buildQpPPSS()
Assemble std::vectors of porepressure and saturation at the nodes and quadpoints, and return the capi...
Base class for thermophysical variable materials, which assemble materials for primary variables such...
const GenericVariableGradient< is_ad > & _phase1_gradp_qp
Gradient(phase1_porepressure) at the qps.
const GenericVariableGradient< is_ad > & _phase0_gradp_qp
Gradient(phase0_porepressure) at the qps.
PorousFlow2PhasePPTempl< false > PorousFlow2PhasePP
Material designed to calculate fluid phase porepressure and saturation for the two-phase situation as...
const unsigned int _p1var
PorousFlow variable number of the phase1 porepressure.
typename Moose::GenericType< Real, is_ad > GenericReal
typename Moose::GenericType< VariableGradient, is_ad > GenericVariableGradient
PorousFlow2PhasePPTempl(const InputParameters &parameters)
virtual void computeQpProperties() override