https://mooseframework.inl.gov
PorousFlowDesorpedMassTimeDerivative.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 "GenericKernel.h"
13 #include "PorousFlowDictator.h"
14 
22 template <bool is_ad>
24 {
25 public:
27 
29 
30 protected:
31  virtual GenericReal<is_ad> computeQpResidual() override;
32  virtual Real computeQpJacobian() override;
33  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
34 
37 
39  const unsigned int _conc_var_number;
40 
43 
46 
49 
52 
55 
58 
62  Real computeQpJac(unsigned int jvar);
63 
66 };
67 
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.
Moose::GenericType< Real, is_ad > GenericReal
PorousFlowDesorpedMassTimeDerivativeTempl(const InputParameters &parameters)
const MaterialProperty< std::vector< Real > > *const _dporosity_dvar
d(porosity)/d(PorousFlow variable) – null for AD
Kernel = (desorped_mass - desorped_mass_old)/dt It is NOT lumped to the nodes.
PorousFlowDesorpedMassTimeDerivativeTempl< false > PorousFlowDesorpedMassTimeDerivative
PorousFlowDesorpedMassTimeDerivativeTempl< true > ADPorousFlowDesorpedMassTimeDerivative
const InputParameters & parameters() const
const GenericMaterialProperty< Real, is_ad > & _porosity
Porosity at the qps (AD or non-AD)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Moose::GenericType< VariableValue, is_ad > GenericVariableValue
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
const unsigned int _conc_var_number
The MOOSE variable number of the concentration variable.
VariableValueTempl< false > VariableValue
const VariableValue & _conc_old
Old value of the concentration variable (always non-AD)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const GenericVariableValue< is_ad > & _conc
The concentration variable (AD or non-AD)
const MaterialProperty< Real > & _porosity_old
Old value of porosity.
virtual GenericReal< is_ad > computeQpResidual() override
const MaterialProperty< std::vector< RealGradient > > *const _dporosity_dgradvar
d(porosity)/d(grad PorousFlow variable) – null for AD
Real computeQpJac(unsigned int jvar)
Derivative of residual with respect to variable number jvar (non-AD path only)