https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSEnergyWeakStagnationBC.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
12// FluidProperties includes
14
16
19{
21 params.addClassDescription("The inviscid energy BC term with specified normal flow.");
22 return params;
23}
24
29
30Real
32{
33 // Compute stagnation values
34 Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
35 staticValues(T_s, p_s, rho_s);
36
37 // And get velocity magnitude, squared
38 Real velmag2 = this->velmag2();
39
40 // Compute static total energy, E_s
41 Real E_s = _fp.cv() * T_s + 0.5 * velmag2;
42
43 // Compute the product rho_s * H_s (H_s = static enthalpy)
44 Real rhoH_s = rho_s * E_s + p_s;
45
46 // rho_s * H_s * |u| * (s.n) * phi_i
47 return rhoH_s * std::sqrt(velmag2) * this->sdotn() * _test[_i][_qp];
48}
49
50Real
52{
53 // TODO
54 return 0.0;
55}
56
57Real
59{
60 // TODO
61 return 0.0;
62}
registerMooseObject("NavierStokesApp", NSEnergyWeakStagnationBC)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
const VariableTestValue & _test
The inviscid energy BC term with specified normal flow.
virtual Real computeQpOffDiagJacobian(unsigned jvar)
static InputParameters validParams()
NSEnergyWeakStagnationBC(const InputParameters &parameters)
const IdealGasFluidProperties & _fp
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()