https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NullScalarKernel.C
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#include "NullScalarKernel.h"
11
12// MOOSE includes
13#include "Assembly.h"
14
16
19{
22 "Scalar kernel that sets a zero residual, to avoid error from system missing this variable.");
23 params.addParam<Real>("jacobian_fill",
24 0.0,
25 "On diagonal Jacobian fill term, potentially needed for preconditioner");
26 return params;
27}
28
30 : ScalarKernel(parameters), _jacobian_fill(getParam<Real>("jacobian_fill"))
31{
32}
33
34void
38
39Real
44
45Real
registerMooseObject("MooseApp", NullScalarKernel)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
Scalar kernel that sets a zero residual, to avoid error from system missing this variable.
virtual Real computeQpJacobian() override
const Real _jacobian_fill
filler value to put on the on-diagonal Jacobian
static InputParameters validParams()
virtual Real computeQpResidual() override
NullScalarKernel(const InputParameters &parameters)
virtual void reinit() override
Reinitialization method called before each call to computeResidual()
static InputParameters validParams()