www.mooseframework.org
NSMassSpecifiedNormalFlowBC.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 a "
19  "specified value of rho*(u.n) imposed weakly.");
20  params.addRequiredParam<Real>("rhoun", "The specified value of rho*(u.n) for this boundary");
21  return params;
22 }
23 
25  : NSMassBC(parameters), _rhoun(getParam<Real>("rhoun"))
26 {
27 }
28 
29 Real
31 {
32  return qpResidualHelper(_rhoun);
33 }
34 
35 Real
37 {
38  return 0.0;
39 }
40 
41 Real
43 {
44  return 0.0;
45 }
Real qpResidualHelper(Real rhoun)
Compute the residual contribution for a given value of rho*(u.n).
Definition: NSMassBC.C:24
registerMooseObject("NavierStokesApp", NSMassSpecifiedNormalFlowBC)
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpOffDiagJacobian(unsigned jvar)
This class corresponds to the "natural" boundary condition for the mass equation, i...
Definition: NSMassBC.h:29
void addClassDescription(const std::string &doc_string)
This class implements the mass equation boundary term with a specified value of rho*(u.n) imposed weakly.
NSMassSpecifiedNormalFlowBC(const InputParameters &parameters)
static InputParameters validParams()
Definition: NSMassBC.C:13