www.mooseframework.org
NSMomentumConvectiveWeakStagnationBC.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("The convective part (sans pressure term) of the momentum equation "
19  "boundary integral evaluated at specified stagnation temperature, "
20  "stagnation pressure, and flow direction values.");
21  params.addRequiredParam<unsigned>(
22  "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to");
23  return params;
24 }
25 
27  const InputParameters & parameters)
28  : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned>("component"))
29 {
30 }
31 
32 Real
34 {
35  // Compute stagnation values
36  Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
37  staticValues(T_s, p_s, rho_s);
38 
39  // The specified flow direction, as a vector
41 
42  // (rho_s * |u|^2 * s_k * (s.n)) * phi_i
43  return (rho_s * this->velmag2() * s(_component) * this->sdotn()) * _test[_i][_qp];
44 }
45 
46 Real
48 {
49  // TODO
50  return 0.0;
51 }
52 
53 Real
55 {
56  // TODO
57  return 0.0;
58 }
const VariableTestValue & _test
The convective part (sans pressure term) of the momentum equation boundary integral evaluated at spec...
static const std::string rho_s
Definition: NS.h:117
unsigned int _i
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NSMomentumConvectiveWeakStagnationBC(const InputParameters &parameters)
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
void addClassDescription(const std::string &doc_string)
registerMooseObject("NavierStokesApp", NSMomentumConvectiveWeakStagnationBC)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...