25 "Constrains the momentum at the user-specified nodes along the user-specified normals");
31 _normals(getParam<
std::vector<Real>>(
"normals")),
32 _rhouA(coupledValue(
"rhouA")),
33 _rhouA_var_number(coupled(
"rhouA"))
44 std::vector<Number> re(dofs.size());
46 for (
unsigned int i = 0; i < dofs.size(); i++)
67 DenseMatrix<Number> Kee(dofs.size(), dofs_rhouA.size());
70 for (
unsigned int i = 0; i < dofs.size(); i++)
registerMooseObject("ThermalHydraulicsApp", MassFreeConstraint)
Free BC for the mass equation.
virtual void computeResidual() override final
MassFreeConstraint(const InputParameters ¶meters)
unsigned int _rhouA_var_number
virtual Real computeQpResidual(Moose::ConstraintType type) override
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
const VariableValue & _rhouA
virtual void computeJacobian() override final
static InputParameters validParams()
std::vector< Real > _normals
void scalingFactor(const std::vector< Real > &factor)
const std::vector< dof_id_type > & dofIndices() const final
std::vector< dof_id_type > _primary_node_vector
std::vector< dof_id_type > _connected_nodes
static InputParameters validParams()
MooseVariableFE< T > & getFieldVariable(THREAD_ID tid, const std::string &var_name)
void addJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
void addResiduals(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)