www.mooseframework.org
PorousFlowAdvectiveFlux.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 POROUSFLOWADVECTIVEFLUX_H
9 #define POROUSFLOWADVECTIVEFLUX_H
10 
11 #include "PorousFlowDarcyBase.h"
12 
14 
15 template <>
16 InputParameters validParams<PorousFlowAdvectiveFlux>();
17 
24 {
25 public:
26  PorousFlowAdvectiveFlux(const InputParameters & parameters);
27 
28 protected:
29  virtual Real mobility(unsigned nodenum, unsigned phase) const override;
30  virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override;
31 
33  const MaterialProperty<std::vector<std::vector<Real>>> & _mass_fractions;
34 
36  const MaterialProperty<std::vector<std::vector<std::vector<Real>>>> & _dmass_fractions_dvar;
37 
39  const MaterialProperty<std::vector<Real>> & _relative_permeability;
40 
42  const MaterialProperty<std::vector<std::vector<Real>>> & _drelative_permeability_dvar;
43 
45  const unsigned int _fluid_component;
46 };
47 
48 #endif // POROUSFLOWADVECTIVEFLUX_H
const unsigned int _fluid_component
Index of the fluid component that this kernel acts on.
Darcy advective flux.
virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override
The derivative of mobility with respect to PorousFlow variable pvar.
const MaterialProperty< std::vector< Real > > & _relative_permeability
Relative permeability of each phase.
const MaterialProperty< std::vector< std::vector< std::vector< Real > > > > & _dmass_fractions_dvar
Derivative of the mass fraction of each component in each phase wrt PorousFlow variables.
const MaterialProperty< std::vector< std::vector< Real > > > & _mass_fractions
Mass fraction of each component in each phase.
PorousFlowAdvectiveFlux(const InputParameters &parameters)
virtual Real mobility(unsigned nodenum, unsigned phase) const override
The mobility of the fluid.
Convective flux of component k in fluid phase alpha.
const MaterialProperty< std::vector< std::vector< Real > > > & _drelative_permeability_dvar
Derivative of relative permeability of each phase wrt PorousFlow variables.
InputParameters validParams< PorousFlowAdvectiveFlux >()