https://mooseframework.inl.gov
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 
26  : NSWeakStagnationBaseBC(parameters)
27 {
28 }
29 
30 Real
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 
50 Real
52 {
53  // TODO
54  return 0.0;
55 }
56 
57 Real
59 {
60  // TODO
61  return 0.0;
62 }
const VariableTestValue & _test
The inviscid energy BC term with specified normal flow.
static const std::string rho_s
Definition: NS.h:118
registerMooseObject("NavierStokesApp", NSEnergyWeakStagnationBC)
unsigned int _i
unsigned int _qp
static InputParameters validParams()
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned jvar)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const IdealGasFluidProperties & _fp
NSEnergyWeakStagnationBC(const InputParameters &parameters)
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
void addClassDescription(const std::string &doc_string)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...