#include <PressureBase.h>
template<bool is_ad>
class PressureBaseTempl< is_ad >
Definition at line 29 of file PressureBase.h.
◆ PressureBaseTempl()
Definition at line 39 of file PressureBase.C.
41 _ndisp(this->coupledComponents(
"displacements")),
45 for (
unsigned int i = 0; i <
_ndisp; ++i)
46 _disp_var.push_back(this->coupled(
"displacements", i));
48 for (
unsigned int i = 0; i <
_ndisp; ++i)
53 i != this->
template getParam<unsigned int>(
"component"))
56 "The component this BC is acting on is now inferred from the position " 57 "of the `variable` in the `displacements` variable list. The explicitly " 58 "specified component value is at odds with teh automatically inferred " 59 "value. The `component` parameter has been deprecated. Please double " 60 "check your input for potential mestakes.");
65 this->paramError(
"variable",
"The BC variable should be a displacement variable.");
typename std::conditional< is_ad, ADIntegratedBC, IntegratedBC >::type PressureBaseParent
Pressure applies a pressure on a given boundary in the direction defined by component.
std::vector< unsigned int > _disp_var
Variable numbers of coupled displacement variables.
const unsigned int _component
displacement component to apply the bc to
const unsigned int _ndisp
Number of displacement variables.
◆ actionParams()
Definition at line 30 of file PressureBase.C.
33 params.addRequiredCoupledVar(
"displacements",
34 "The string of displacements suitable for the problem statement");
◆ computePressure()
◆ computeQpResidual()
template<bool is_ad>
|
finaloverrideprotectedvirtual |
Definition at line 92 of file PressureBase.C.
virtual GenericReal< is_ad > computePressure() const =0
const unsigned int _component
displacement component to apply the bc to
◆ initialSetup()
Definition at line 72 of file PressureBase.C.
74 auto boundary_ids = this->boundaryIDs();
75 std::set<SubdomainID> block_ids;
76 for (
auto bndry_id : boundary_ids)
78 auto bids = _mesh.getBoundaryConnectedBlocks(bndry_id);
79 block_ids.insert(bids.begin(), bids.end());
82 _coord_type = _fe_problem.getCoordSystem(*block_ids.begin());
83 for (
auto blk_id : block_ids)
85 if (
_coord_type != _fe_problem.getCoordSystem(blk_id))
86 mooseError(
"The Pressure BC requires subdomains to have the same coordinate system.");
void mooseError(Args &&... args)
Moose::CoordinateSystemType _coord_type
Coordinate system type.
◆ validParams()
Definition at line 19 of file PressureBase.C.
23 "component",
"The component for the pressure",
"This parameter is no longer necessary");
24 params.
addParam<
bool>(
"use_displaced_mesh",
true,
"Whether to use the displaced mesh.");
InputParameters validParams()
◆ _component
displacement component to apply the bc to
Definition at line 51 of file PressureBase.h.
◆ _coord_type
◆ _disp_var
◆ _ndisp
◆ usingTransientInterfaceMembers
The documentation for this class was generated from the following files: