https://mooseframework.inl.gov
PorousFlowFullySaturatedAdvectiveFlux.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 
41  const unsigned int _fluid_component;
42 
45 
52 };
53 
Moose::GenericType< Real, is_ad > GenericReal
const bool _multiply_by_density
Whether the flux is multiplied by density (mass flux) or not (volume flux)
const InputParameters & parameters() const
PorousFlowFullySaturatedAdvectiveFluxTempl< true > ADPorousFlowFullySaturatedAdvectiveFlux
Darcy advective flux.
PorousFlowFullySaturatedAdvectiveFluxTempl(const InputParameters &parameters)
PorousFlowFullySaturatedAdvectiveFluxTempl< false > PorousFlowFullySaturatedAdvectiveFlux
const unsigned int _fluid_component
Index of the fluid component that this kernel acts on.
const GenericMaterialProperty< std::vector< std::vector< Real > >, is_ad > & _mass_fractions
Mass fraction of each component in each phase.
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
const MaterialProperty< std::vector< std::vector< std::vector< Real > > > > *const _dmass_fractions_dvar
Derivative of mass fraction wrt PorousFlow variables – null for AD path.
Convective flux of component k in a single-phase fluid.
virtual GenericReal< is_ad > mobility(unsigned nodenum, unsigned phase) const override
The mobility of the fluid.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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...