https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSMomentumConvectiveWeakStagnationBC.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
32Real
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
40 RealVectorValue s(_sx, _sy, _sz);
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
46Real
52
53Real
55{
56 // TODO
57 return 0.0;
58}
registerMooseObject("NavierStokesApp", NSMomentumConvectiveWeakStagnationBC)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
const VariableTestValue & _test
The convective part (sans pressure term) of the momentum equation boundary integral evaluated at spec...
NSMomentumConvectiveWeakStagnationBC(const InputParameters &parameters)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
static InputParameters validParams()