www.mooseframework.org
PorousFlowAdvectiveFlux.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 "PorousFlowDarcyBase.h"
13 
15 
16 template <>
17 InputParameters validParams<PorousFlowAdvectiveFlux>();
18 
25 {
26 public:
27  PorousFlowAdvectiveFlux(const InputParameters & parameters);
28 
29 protected:
30  virtual Real mobility(unsigned nodenum, unsigned phase) const override;
31  virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override;
32 
34  const MaterialProperty<std::vector<std::vector<Real>>> & _mass_fractions;
35 
37  const MaterialProperty<std::vector<std::vector<std::vector<Real>>>> & _dmass_fractions_dvar;
38 
40  const MaterialProperty<std::vector<Real>> & _relative_permeability;
41 
43  const MaterialProperty<std::vector<std::vector<Real>>> & _drelative_permeability_dvar;
44 
46  const unsigned int _fluid_component;
47 };
48 
validParams< PorousFlowAdvectiveFlux >
InputParameters validParams< PorousFlowAdvectiveFlux >()
Definition: PorousFlowAdvectiveFlux.C:16
PorousFlowAdvectiveFlux::_fluid_component
const unsigned int _fluid_component
Index of the fluid component that this kernel acts on.
Definition: PorousFlowAdvectiveFlux.h:46
PorousFlowDarcyBase.h
PorousFlowAdvectiveFlux::_dmass_fractions_dvar
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.
Definition: PorousFlowAdvectiveFlux.h:37
PorousFlowAdvectiveFlux::dmobility
virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override
The derivative of mobility with respect to PorousFlow variable pvar.
Definition: PorousFlowAdvectiveFlux.C:48
PorousFlowAdvectiveFlux::_relative_permeability
const MaterialProperty< std::vector< Real > > & _relative_permeability
Relative permeability of each phase.
Definition: PorousFlowAdvectiveFlux.h:40
PorousFlowAdvectiveFlux::_drelative_permeability_dvar
const MaterialProperty< std::vector< std::vector< Real > > > & _drelative_permeability_dvar
Derivative of relative permeability of each phase wrt PorousFlow variables.
Definition: PorousFlowAdvectiveFlux.h:43
PorousFlowAdvectiveFlux::PorousFlowAdvectiveFlux
PorousFlowAdvectiveFlux(const InputParameters &parameters)
Definition: PorousFlowAdvectiveFlux.C:26
PorousFlowDarcyBase
Darcy advective flux.
Definition: PorousFlowDarcyBase.h:28
PorousFlowAdvectiveFlux::_mass_fractions
const MaterialProperty< std::vector< std::vector< Real > > > & _mass_fractions
Mass fraction of each component in each phase.
Definition: PorousFlowAdvectiveFlux.h:34
PorousFlowAdvectiveFlux::mobility
virtual Real mobility(unsigned nodenum, unsigned phase) const override
The mobility of the fluid.
Definition: PorousFlowAdvectiveFlux.C:41
PorousFlowAdvectiveFlux
Convective flux of component k in fluid phase alpha.
Definition: PorousFlowAdvectiveFlux.h:24