21 params.addClassDescription(
22 "This is the base class for 'weakly-imposed' stagnation boundary conditions.");
23 params.addRequiredParam<Real>(
"stagnation_pressure",
"The specifed stagnation pressure");
24 params.addRequiredParam<Real>(
"stagnation_temperature",
"The specifed stagnation temperature");
25 params.addRequiredParam<Real>(
"sx",
"x-component of specifed flow direction");
26 params.addRequiredParam<Real>(
"sy",
"y-component of specifed flow direction");
27 params.addParam<Real>(
"sz", 0.0,
"z-component of specifed flow direction");
33 _stagnation_pressure(getParam<Real>(
"stagnation_pressure")),
34 _stagnation_temperature(getParam<Real>(
"stagnation_temperature")),
35 _sx(getParam<Real>(
"sx")),
36 _sy(getParam<Real>(
"sy")),
37 _sz(getParam<Real>(
"sz"))
48 mooseError(
"Negative temperature detected in NSWeakStagnationBaseBC!");
61 Real T_s = 0., p_s = 0., rho_s = 0.;
75 return _sx * _normals[_qp](0) +
_sy * _normals[_qp](1) +
_sz * _normals[_qp](2);