https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSMassUnspecifiedNormalFlowBC.C
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
11
13
16{
18 params.addClassDescription("This class implements the mass equation boundary term with the "
19 "rho*(u.n) boundary integral computed implicitly.");
20 return params;
21}
22
27
28Real
30{
31 const RealVectorValue mom(_rho_u[_qp], _rho_v[_qp], _rho_w[_qp]);
32 return qpResidualHelper(mom * _normals[_qp]);
33}
34
35Real
40
41Real
43{
44 if (isNSVariable(jvar))
45 return qpJacobianHelper(mapVarNumber(jvar));
46 else
47 return 0.0;
48}
registerMooseObject("NavierStokesApp", NSMassUnspecifiedNormalFlowBC)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _normals
bool isNSVariable(unsigned var)
const VariableValue & _rho_u
unsigned mapVarNumber(unsigned var)
const VariableValue & _rho_w
const VariableValue & _rho_v
This class corresponds to the "natural" boundary condition for the mass equation, i....
Definition NSMassBC.h:30
Real qpJacobianHelper(unsigned var_number)
Compute the Jacobian contribution due to variable number 'var_number'.
Definition NSMassBC.C:30
Real qpResidualHelper(Real rhoun)
Compute the residual contribution for a given value of rho*(u.n).
Definition NSMassBC.C:24
static InputParameters validParams()
Definition NSMassBC.C:13
This class implements the mass equation boundary term with the rho*(u.n) boundary integral computed i...
NSMassUnspecifiedNormalFlowBC(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned jvar)