www.mooseframework.org
NSMomentumConvectiveWeakStagnationBC.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("The convective part (sans pressure term) of the momentum equation "
15  "boundary integral evaluated at specified stagnation temperature, "
16  "stagnation pressure, and flow direction values.");
17  params.addRequiredParam<unsigned>(
18  "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to");
19  return params;
20 }
21 
23  const InputParameters & parameters)
24  : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned>("component"))
25 {
26 }
27 
28 Real
30 {
31  // Compute stagnation values
32  Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
33  staticValues(T_s, p_s, rho_s);
34 
35  // The specified flow direction, as a vector
36  RealVectorValue s(_sx, _sy, _sz);
37 
38  // (rho_s * |u|^2 * s_k * (s.n)) * phi_i
39  return (rho_s * this->velmag2() * s(_component) * this->sdotn()) * _test[_i][_qp];
40 }
41 
42 Real
44 {
45  // TODO
46  return 0.0;
47 }
48 
49 Real
51 {
52  // TODO
53  return 0.0;
54 }
InputParameters validParams< NSWeakStagnationBaseBC >()
InputParameters validParams< NSMomentumConvectiveWeakStagnationBC >()
NSMomentumConvectiveWeakStagnationBC(const InputParameters &parameters)
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...