22 params.
addClassDescription(
"This class implements the 'No BC' boundary condition based on the " 23 "'Laplace' form of the viscous stress tensor.");
25 params.
addParam<
bool>(
"integrate_p_by_parts",
27 "Allows simulations to be run with pressure BC if set to false");
28 MooseEnum viscous_form(
"traction laplace",
"laplace");
31 "The form of the viscous term. Options are 'traction' or 'laplace'");
34 params.
addParam<MaterialPropertyName>(
"mu_name",
"mu",
"The name of the dynamic viscosity");
41 _integrate_p_by_parts(getParam<bool>(
"integrate_p_by_parts")),
42 _mu(getADMaterialProperty<
Real>(
"mu_name")),
43 _form(getParam<
MooseEnum>(
"viscous_form"))
45 std::set<SubdomainID> connected_blocks;
49 connected_blocks.insert(these_blocks.begin(), these_blocks.end());
53 for (
const auto block_id : connected_blocks)
55 obj_tracker.
set(
"viscous_form",
_form, block_id);
65 if (
_form ==
"laplace")
MooseEnum _form
The form of the viscous term. Either laplace or traction.
const ADMaterialProperty< Real > & _mu
T & getUserObject(const std::string &name, unsigned int tid=0) const
void set(const std::string &name, const T &value, SubdomainID sub_id)
Set the internal parameter name to value.
INSADMomentumNoBCBC(const InputParameters ¶meters)
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
const ADTemplateVariableGradient< T > & _grad_u
static InputParameters validParams()
FEProblemBase & _fe_problem
std::set< SubdomainID > getBoundaryConnectedBlocks(const BoundaryID bid) const
registerMooseObject("NavierStokesApp", INSADMomentumNoBCBC)
ADReal computeQpResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This class implements the "No BC" boundary condition based on the "Laplace" form of the viscous stres...
const ADTemplateVariableTestValue< T > & _test
static const std::string pressure
const bool _integrate_p_by_parts
const ADVariableValue & _p
virtual const std::set< BoundaryID > & boundaryIDs() const
Object for tracking what kernels have been added to an INSAD simulation.
const MooseArray< ADPoint > & _normals