www.mooseframework.org
NSWeakStagnationBaseBC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef NSWEAKSTAGNATIONBASEBC_H
8 #define NSWEAKSTAGNATIONBASEBC_H
9 
10 #include "NSIntegratedBC.h"
11 
12 // Forward Declarations
14 
15 // Specialization required of all user-level Moose objects
16 template <>
17 InputParameters validParams<NSWeakStagnationBaseBC>();
18 
26 {
27 public:
28  // Constructor
29  NSWeakStagnationBaseBC(const InputParameters & parameters);
30 
31  // Destructor, better be virtual
33 
34 protected:
38  // virtual Real computeQpResidual();
39  // virtual Real computeQpJacobian();
40  // virtual Real computeQpOffDiagJacobian(unsigned jvar);
41 
42  // Required parameters
45 
46  // Specified flow direction. Should be the components of
47  // a unit vector. TODO: Test reading RealVectorValue objects
48  // directly?
49  Real _sx;
50  Real _sy;
51  Real _sz; // only required in 3D
52 
53  //
54  // Helper functions...
55  //
56 
57  // Given |u|, p_0, and T_0, compute static quantities. Each
58  // on depends on the previous, so it makes sense to compute them
59  // all even if you don't need them all...
60  void staticValues(Real & T_s, Real & p_s, Real & rho_s);
61 
62  // Nicer interface if you actually only want one of the static values.
63  // Note that they will all still be computed!
64  Real rhoStatic();
65 
66  // The velocity magnitude, squared
67  Real velmag2();
68 
69  // The specified flow direction, s, dotted with the outward unit normal
70  // normal vector
71  Real sdotn();
72 };
73 
74 #endif
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...
InputParameters validParams< NSWeakStagnationBaseBC >()
NSWeakStagnationBaseBC(const InputParameters &parameters)
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...