www.mooseframework.org
NSWeakStagnationBaseBC.h
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 
10 #pragma once
11 
12 #include "NSIntegratedBC.h"
13 
14 // Forward Declarations
15 
16 // Specialization required of all user-level Moose objects
17 
25 {
26 public:
27  // Constructor
29 
31 
32  // Destructor, better be virtual
34 
35 protected:
39  // virtual Real computeQpResidual();
40  // virtual Real computeQpJacobian();
41  // virtual Real computeQpOffDiagJacobian(unsigned jvar);
42 
43  // Required parameters
46 
47  // Specified flow direction. Should be the components of
48  // a unit vector. TODO: Test reading RealVectorValue objects
49  // directly?
52  Real _sz; // only required in 3D
53 
54  //
55  // Helper functions...
56  //
57 
58  // Given |u|, p_0, and T_0, compute static quantities. Each
59  // on depends on the previous, so it makes sense to compute them
60  // all even if you don't need them all...
61  void staticValues(Real & T_s, Real & p_s, Real & rho_s);
62 
63  // Nicer interface if you actually only want one of the static values.
64  // Note that they will all still be computed!
65  Real rhoStatic();
66 
67  // The velocity magnitude, squared
68  Real velmag2();
69 
70  // The specified flow direction, s, dotted with the outward unit normal
71  // normal vector
72  Real sdotn();
73 };
Real _stagnation_pressure
Must be implemented in derived classes.
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
static const std::string rho_s
Definition: NS.h:117
static InputParameters validParams()
NSWeakStagnationBaseBC(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
const InputParameters & parameters() const
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...