https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MassFreeConstraint.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 "NodalConstraint.h"
13
18{
19public:
21
22 virtual void computeResidual(const NumericVector<Number> & residual) override;
24 virtual void computeJacobian(const SparseMatrix<Number> & jacobian) override;
26
27protected:
28 virtual Real computeQpResidual(Moose::ConstraintType type) override;
30
31 std::vector<Real> _normals;
33
34 unsigned int _rhouA_var_number;
35
36public:
38};
Free BC for the mass equation.
virtual void computeResidual() override final
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
const InputParameters & parameters() const
const std::string & type() const
virtual void computeResidual() override final
virtual void computeJacobian() override final
VariableValueTempl< false > VariableValue
ConstraintType
ConstraintJacobianType