https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MassEigenKernel.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 "MassEigenKernel.h"
11
13
16{
19 "An eigenkernel with weak form $\\lambda(\\psi_i, -u_h \\times coeff)$ where "
20 "$\\lambda$ is the eigenvalue.");
21 params.addParam<Real>("coefficient", 1.0, "Coefficient multiplying the term");
22 return params;
23}
24
26 : EigenKernel(parameters), _coef(this->template getParam<Real>("coefficient"))
27{
28}
29
30Real
35
36Real
registerMooseObject("MooseApp", MassEigenKernel)
The behavior of this kernel is controlled by one problem-wise global parameter eigen_on_current - boo...
Definition EigenKernel.h:24
static InputParameters validParams()
Definition EigenKernel.C:24
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.
unsigned int _qp
The current quadrature point index.
Definition KernelBase.h:43
unsigned int _j
current index for the shape function
Definition KernelBase.h:61
unsigned int _i
current index for the test function
Definition KernelBase.h:58
const VariablePhiValue & _phi
the current shape functions
Definition Kernel.h:81
const VariableTestValue & _test
the current test function
Definition Kernel.h:75
const VariableValue & _u
Holds the solution at current quadrature points.
Definition Kernel.h:87
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
static InputParameters validParams()
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
MassEigenKernel(const InputParameters &parameters)