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