21 params.
addRequiredParam<RealVectorValue>(
"gravity",
"Direction of the gravity vector");
27 _gravity_strong_residual(getADMaterialProperty<RealVectorValue>(
"gravity_strong_residual"))
33 for (
const auto block_id :
blockIDs())
35 obj_tracker.
set(
"has_gravity",
true, block_id);
36 obj_tracker.set(
"gravity", getParam<RealVectorValue>(
"gravity"), block_id);
registerMooseObject("NavierStokesApp", INSADGravityForce)
static InputParameters validParams()
virtual const std::set< SubdomainID > & blockIDs() const
T & getUserObject(const std::string &name, unsigned int tid=0) const
Computes a body force due to gravity.
ADRealVectorValue precomputeQpResidual() override
static InputParameters validParams()
const ADMaterialProperty< RealVectorValue > & _gravity_strong_residual
INSADGravityForce(const InputParameters ¶meters)
Object for tracking what kernels have been added to an INSAD simulation.
void set(const std::string &name, const T &value, SubdomainID sub_id)
Set the internal parameter name to value.
FEProblemBase & _fe_problem