https://mooseframework.inl.gov
EigenDirichletBC.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 "EigenDirichletBC.h"
11 #include "NonlinearSystemBase.h"
12 
14 
17 {
19 
20  params.set<MultiMooseEnum>("vector_tags") = "eigen";
21  params.set<MultiMooseEnum>("matrix_tags") = "eigen";
22 
23  params.addClassDescription("Dirichlet BC for eigenvalue solvers");
24 
25  return params;
26 }
27 
28 EigenDirichletBC::EigenDirichletBC(const InputParameters & parameters) : NodalBC(parameters) {}
29 
30 Real
32 {
33  return 0.0;
34 }
35 
36 Real
38 {
39  return 0.0;
40 }
41 
42 Real
44 {
45  return 0.0;
46 }
registerMooseObject("MooseApp", EigenDirichletBC)
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for deriving any boundary condition that works at nodes.
Definition: NodalBC.h:20
static InputParameters validParams()
EigenDirichletBC(const InputParameters &parameters)
Set Dirichlet boundary condition for eigenvalue problems.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpResidual() override
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...
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution for this Nodal...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
static InputParameters validParams()
Definition: NodalBC.C:19
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...