https://mooseframework.inl.gov
ScalarLMKernel.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 "GenericKernelScalar.h"
13 
32 template <bool is_ad>
34 {
35 public:
37 
39 
40 protected:
44  virtual GenericReal<is_ad> computeQpResidual() override;
45 
50 
55  virtual Real computeScalarQpJacobian() override;
56 
60  virtual Real computeQpOffDiagJacobianScalar(const unsigned int svar) override;
61 
65  virtual Real computeScalarQpOffDiagJacobian(const unsigned int jvar) override;
66 
69 
72 
74 };
75 
Moose::GenericType< Real, is_ad > GenericReal
Definition: MooseTypes.h:648
virtual GenericReal< is_ad > computeQpResidual() override
Method for computing the residual at quadrature points.
virtual Real computeScalarQpOffDiagJacobian(const unsigned int jvar) override
Method for computing d-_kappa-residual / d-_var at quadrature points.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real _value
Given (constant) which we want the integral of the solution variable to match.
const PostprocessorValue & _pp_value
Name of the Postprocessor containing the volume of the domain.
virtual Real computeQpOffDiagJacobianScalar(const unsigned int svar) override
Method for computing d-_var-residual / d-_kappa at quadrature points.
virtual GenericReal< is_ad > computeScalarQpResidual() override
Method for computing the scalar part of residual at quadrature points.
This Kernel implements part of the equation that enforces the constraint of.
ScalarLMKernelTempl< true > ADScalarLMKernel
virtual Real computeScalarQpJacobian() override
Method for computing the scalar variable part of Jacobian at quadrature points.
ScalarLMKernelTempl(const InputParameters &parameters)
Real PostprocessorValue
various MOOSE typedefs
Definition: MooseTypes.h:202
ScalarLMKernelTempl< false > ScalarLMKernel
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()