www.mooseframework.org
NSMomentumPressureWeakStagnationBC.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<NSWeakStagnationBaseBC>();
14  params.addClassDescription("This class implements the pressure term of the momentum equation "
15  "boundary integral for use in weak stagnation boundary conditions.");
16  params.addRequiredParam<unsigned int>(
17  "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to");
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned int>("component"))
24 {
25 }
26 
27 Real
29 {
30  // Compute stagnation values
31  Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
32  staticValues(T_s, p_s, rho_s);
33 
34  // (p_s * n_k) * phi_i
35  return (p_s * _normals[_qp](_component)) * _test[_i][_qp];
36 }
37 
38 Real
40 {
41  // TODO
42  return 0.0;
43 }
44 
45 Real
47 {
48  // TODO
49  return 0.0;
50 }
NSMomentumPressureWeakStagnationBC(const InputParameters &parameters)
InputParameters validParams< NSWeakStagnationBaseBC >()
InputParameters validParams< NSMomentumPressureWeakStagnationBC >()
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...