https://mooseframework.inl.gov
PorousFlowAdvectiveFlux.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
22 template <bool is_ad>
24 {
25 public:
27 
29 
30 protected:
31  virtual GenericReal<is_ad> mobility(unsigned nodenum, unsigned phase) const override;
32  virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override;
33 
36 
39 
42 
45 
47  const unsigned int _fluid_component;
48 
55 };
56 
const GenericMaterialProperty< std::vector< std::vector< Real > >, is_ad > & _mass_fractions
Mass fraction of each component in each phase.
Moose::GenericType< Real, is_ad > GenericReal
PorousFlowAdvectiveFluxTempl< true > ADPorousFlowAdvectiveFlux
const InputParameters & parameters() const
virtual GenericReal< is_ad > mobility(unsigned nodenum, unsigned phase) const override
The mobility of the fluid.
Convective flux of component k in fluid phase alpha.
Darcy advective flux.
static InputParameters validParams()
const MaterialProperty< std::vector< std::vector< Real > > > *const _drelative_permeability_dvar
Derivative of relative permeability of each phase wrt PorousFlow variables – null for AD path...
PorousFlowAdvectiveFluxTempl(const InputParameters &parameters)
virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override
The derivative of mobility with respect to PorousFlow variable pvar – non-AD path only...
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
PorousFlowAdvectiveFluxTempl< false > PorousFlowAdvectiveFlux
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MaterialProperty< std::vector< std::vector< std::vector< Real > > > > *const _dmass_fractions_dvar
Derivative of the mass fraction of each component in each phase wrt PorousFlow variables – null for ...
const GenericMaterialProperty< std::vector< Real >, is_ad > & _relative_permeability
Relative permeability of each phase.
const unsigned int _fluid_component
Index of the fluid component that this kernel acts on.