https://mooseframework.inl.gov
Loading...
Searching...
No Matches
IntegratedBCBase.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 "BoundaryCondition.h"
15
22{
23public:
25
27
28 void prepareShapes(unsigned int var_num) override final;
29
30 virtual bool shouldApply() const override;
31
32protected:
34 const Elem * const & _current_elem;
38 const unsigned int & _current_side;
40 const Elem * const & _current_side_elem;
45
47 unsigned int _qp;
49 const QBase * const & _qrule;
57 unsigned int _i, _j;
58
61 std::vector<MooseVariableFEBase *> _save_in;
62 std::vector<AuxVariableName> _save_in_strings;
63
66 std::vector<MooseVariableFEBase *> _diag_save_in;
67 std::vector<AuxVariableName> _diag_save_in_strings;
68
71};
boundary_id_type BoundaryID
Base class for creating new types of boundary conditions.
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.
Base class for deriving any boundary condition of a integrated type.
static InputParameters validParams()
const unsigned int & _current_side
current side of the current element
bool _has_diag_save_in
The aux variables to save the diagonal Jacobian contributions to.
std::vector< AuxVariableName > _diag_save_in_strings
const QBase *const & _qrule
active quadrature rule
bool _has_save_in
The aux variables to save the residual contributions to.
unsigned int _qp
quadrature point index
const MooseArray< Real > & _JxW
transformed Jacobian weights
void prepareShapes(unsigned int var_num) override final
Prepare shape functions.
unsigned int _i
i-th, j-th index for enumerating test and shape functions
const Elem *const & _current_elem
current element
const Elem *const & _current_side_elem
current side element
virtual bool shouldApply() const override
Hook for turning the boundary condition on and off.
const BoundaryID & _current_boundary_id
The currenty boundary id.
const bool _skip_execution_outside_variable_domain
Whether to allow skipping the execution of the boundary condition outside of its domain of definition...
std::vector< AuxVariableName > _save_in_strings
std::vector< MooseVariableFEBase * > _diag_save_in
const Real & _current_side_volume
Volume of the current side.
std::vector< MooseVariableFEBase * > _save_in
const Real & _current_elem_volume
Volume of the current element.
const MooseArray< Real > & _coord
coordinate transformation
const MooseArray< Point > & _q_point
active quadrature points
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