www.mooseframework.org
NSPenalizedNormalFlowBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<NSIntegratedBC>();
14  params.addClassDescription("This class penalizes the the value of u.n on the boundary so that it "
15  "matches some desired value.");
16  params.addRequiredParam<Real>("penalty", "The penalty parameter, some (large) value.");
17  params.addParam<Real>("specified_udotn", 0., "The desired value of u.n.");
18  return params;
19 }
20 
21 NSPenalizedNormalFlowBC::NSPenalizedNormalFlowBC(const InputParameters & parameters)
22  : NSIntegratedBC(parameters),
23  _penalty(getParam<Real>("penalty")),
24  _specified_udotn(getParam<Real>("specified_udotn"))
25 {
26 }
27 
28 Real
30 {
31  const RealVectorValue vel(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
32  return _penalty * ((vel * _normals[_qp]) - _specified_udotn) * _test[_i][_qp];
33 }
34 
35 Real
37 {
38  // TODO
39  return 0.0;
40 }
41 
42 Real
44 {
45  // TODO
46  return 0.0;
47 }
NSPenalizedNormalFlowBC(const InputParameters &parameters)
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
InputParameters validParams< NSPenalizedNormalFlowBC >()
const VariableValue & _w_vel
virtual Real computeQpOffDiagJacobian(unsigned jvar)
virtual Real computeQpResidual()
The standard interface functions.
InputParameters validParams< NSIntegratedBC >()
const VariableValue & _v_vel
const VariableValue & _u_vel