https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KernelBase.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 "ResidualObject.h"
13#include "BlockRestrictable.h"
16#include "ElementIDInterface.h"
18
24 public BlockRestrictable,
29{
30public:
32
34
35protected:
37 const Elem * const & _current_elem;
38
41
43 unsigned int _qp;
44
47
49 const QBase * const & _qrule;
50
53
56
58 unsigned int _i;
59
61 unsigned int _j;
62
65 std::vector<MooseVariableFEBase *> _save_in;
66 std::vector<AuxVariableName> _save_in_strings;
67
70 std::vector<MooseVariableFEBase *> _diag_save_in;
71 std::vector<AuxVariableName> _diag_save_in_strings;
72
73 std::vector<unsigned int> _displacements;
74
77};
An interface that restricts an object to subdomains via the 'blocks' input parameter.
Intermediate base class that ties together all the interfaces for getting MooseVariableFEBases with t...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
This is the common base class for the three main kernel types implemented in MOOSE,...
Definition KernelBase.h:29
const Real & _current_elem_volume
Volume of the current element.
Definition KernelBase.h:40
std::vector< MooseVariableFEBase * > _save_in
Definition KernelBase.h:65
std::vector< unsigned int > _displacements
Definition KernelBase.h:73
bool _has_diag_save_in
The aux variables to save the diagonal Jacobian contributions to.
Definition KernelBase.h:69
const bool _use_displaced_mesh
Whether this object is acting on the displaced mesh.
Definition KernelBase.h:76
std::vector< AuxVariableName > _save_in_strings
Definition KernelBase.h:66
static InputParameters validParams()
Definition KernelBase.C:21
const MooseArray< Real > & _coord
The scaling factor to convert from cartesian to another coordinate system (e.g rz,...
Definition KernelBase.h:55
unsigned int _qp
The current quadrature point index.
Definition KernelBase.h:43
bool _has_save_in
The aux variables to save the residual contributions to.
Definition KernelBase.h:64
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
Definition KernelBase.h:46
const MooseArray< Real > & _JxW
The current quadrature point weight value.
Definition KernelBase.h:52
const Elem *const & _current_elem
Current element.
Definition KernelBase.h:37
unsigned int _j
current index for the shape function
Definition KernelBase.h:61
std::vector< MooseVariableFEBase * > _diag_save_in
Definition KernelBase.h:70
std::vector< AuxVariableName > _diag_save_in_strings
Definition KernelBase.h:71
unsigned int _i
current index for the test function
Definition KernelBase.h:58
const QBase *const & _qrule
active quadrature rule
Definition KernelBase.h:49
An interface for accessing Materials.
forward declarations
Definition MooseArray.h:18
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is the common base class for objects that give residual contributions.