https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EigenKernel.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 "Kernel.h"
13
15
23class EigenKernel : public Kernel
24{
25public:
27
28 virtual void computeResidual() override;
29 virtual void computeJacobian() override;
30 virtual void computeOffDiagJacobian(unsigned int jvar) override;
31 virtual void computeOffDiagJacobianScalar(unsigned int /*jvar*/) override {}
32
34 virtual bool enabled() const override;
35
36protected:
38 bool _eigen;
39
42
47 const Real * _eigenvalue;
48};
The behavior of this kernel is controlled by one problem-wise global parameter eigen_on_current - boo...
Definition EigenKernel.h:24
MooseEigenSystem * _eigen_sys
EigenKernel always lives in EigenSystem.
Definition EigenKernel.h:41
virtual void computeOffDiagJacobianScalar(unsigned int) override
Computes jacobian block with respect to a scalar variable.
Definition EigenKernel.h:31
static InputParameters validParams()
Definition EigenKernel.C:24
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar... storing the result in Ke.
virtual bool enabled() const override
Return the enabled status of the object.
bool _eigen
flag for as an eigen kernel or a normal kernel
Definition EigenKernel.h:38
const Real * _eigenvalue
A pointer to the eigenvalue that is stored in a postprocessor This is a pointer so that the method fo...
Definition EigenKernel.h:47
virtual void computeJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian entries.
virtual void computeResidual() override
Compute this Kernel's contribution to the residual.
Definition EigenKernel.C:81
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