www.mooseframework.org
MassEigenKernel.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "MassEigenKernel.h"
16 
17 template <>
20 {
22  params.addClassDescription("An eigenkernel with weak form $\\lambda(\\psi_i, -u_h)$ where "
23  "$\\lambda$ is the eigenvalue.");
24  return params;
25 }
26 
27 MassEigenKernel::MassEigenKernel(const InputParameters & parameters) : EigenKernel(parameters) {}
28 
29 Real
31 {
32  return -_u[_qp] * _test[_i][_qp];
33 }
34 
35 Real
37 {
38  return -_phi[_j][_qp] * _test[_i][_qp];
39 }
const VariableTestValue & _test
the current test function
Definition: KernelBase.h:152
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< MassEigenKernel >()
unsigned int _i
current index for the test function
Definition: KernelBase.h:146
The behavior of this kernel is controlled by one problem-wise global parameter eigen_on_current - boo...
Definition: EigenKernel.h:34
const VariableValue & _u
Holds the solution at current quadrature points.
Definition: EigenKernel.h:51
const VariablePhiValue & _phi
the current shape functions
Definition: KernelBase.h:158
virtual Real computeQpResidual() override
unsigned int _j
current index for the shape function
Definition: KernelBase.h:149
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...
MassEigenKernel(const InputParameters &parameters)
virtual Real computeQpJacobian() override
InputParameters validParams< EigenKernel >()
Definition: EigenKernel.C:29
unsigned int _qp
The current quadrature point index.
Definition: KernelBase.h:131