https://mooseframework.inl.gov
PorousFlowLumpedKernelBase.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 
23 template <bool is_ad>
25 {
26 public:
28 
29 protected:
30  virtual void computeJacobian() override;
31  virtual void computeOffDiagJacobian(unsigned int jvar) override;
32  virtual void jacobianSetup() override;
33 
35 
36 private:
37  // Cache to avoid recomputing AD residuals for each off-diagonal jvar on the same element,
38  // mirroring the _my_elem guard in ADKernel::computeOffDiagJacobian.
39  const Elem * _my_elem_lma = nullptr;
40 };
41 
const InputParameters & parameters() const
PorousFlowLumpedKernelBaseTempl< true > ADPorousFlowLumpedKernelBase
virtual void computeOffDiagJacobian(unsigned int jvar) override
PorousFlowLumpedKernelBaseTempl(const InputParameters &parameters)
Base class for PorousFlow kernels that use mass-lumped (nodal) material properties.
PorousFlowLumpedKernelBaseTempl< false > PorousFlowLumpedKernelBase