www.mooseframework.org
NodalBCBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "BoundaryCondition.h"
13 #include "RandomInterface.h"
15 
16 // Forward declarations
17 class NodalBCBase;
18 
19 // libMesh forward declarations
20 namespace libMesh
21 {
22 template <typename T>
23 class NumericVector;
24 }
25 
26 template <>
28 
33  public RandomInterface,
35 {
36 public:
38  virtual void computeResidual() = 0;
39  virtual void computeJacobian() = 0;
40  virtual void computeOffDiagJacobian(unsigned int jvar) = 0;
41 
42 protected:
45  std::vector<MooseVariableFEBase *> _save_in;
46  std::vector<AuxVariableName> _save_in_strings;
47 
50  std::vector<MooseVariableFEBase *> _diag_save_in;
51  std::vector<AuxVariableName> _diag_save_in_strings;
52 };
53 
Interface for objects that need parallel consistent random numbers without patterns over the course o...
bool _has_save_in
The aux variables to save the residual contributions to.
Definition: NodalBCBase.h:44
std::vector< AuxVariableName > _save_in_strings
Definition: NodalBCBase.h:46
virtual void computeResidual()=0
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
std::vector< MooseVariableFEBase * > _save_in
Definition: NodalBCBase.h:45
Base class for deriving any boundary condition that works at nodes.
Definition: NodalBCBase.h:32
NodalBCBase(const InputParameters &parameters)
Definition: NodalBCBase.C:36
Base class for creating new types of boundary conditions.
std::vector< AuxVariableName > _diag_save_in_strings
Definition: NodalBCBase.h:51
bool _has_diag_save_in
The aux variables to save the diagonal Jacobian contributions to.
Definition: NodalBCBase.h:49
virtual void computeJacobian()=0
virtual void computeOffDiagJacobian(unsigned int jvar)=0
Intermediate base class that ties together all the interfaces for getting MooseVariableFEBases with t...
std::vector< MooseVariableFEBase * > _diag_save_in
Definition: NodalBCBase.h:50
InputParameters validParams< NodalBCBase >()
Definition: NodalBCBase.C:14