NeoPZ
pzausmflux.h
Go to the documentation of this file.
1 
6 #ifndef TPZAUSMFLUX_H
7 #define TPZAUSMFLUX_H
8 
9 #include "pzvec.h"
10 #include "pzfmatrix.h"
11 #include "pzreal.h"
12 
18 
19 private:
20 
22  STATE fGamma;
23 
25  STATE fAlpha, fBeta;
26 
27 public:
29  TPZAUSMFlux(STATE gamma);
31  TPZAUSMFlux(const TPZAUSMFlux &cp);
32 
34  void ComputeFlux(TPZVec<STATE> &solL, TPZVec<STATE> &solR, TPZVec<REAL> &normal, TPZVec<STATE> & F);
35 
36 private:
37 
39  STATE SoundSpeed(TPZVec<STATE> &sol, STATE press);
40 
42  STATE Pressure(TPZVec<STATE> &sol);
43 
45  STATE Speed(TPZVec<STATE> &sol, TPZVec<REAL> &normal, STATE &NormalSpeed);
46 
48  STATE Enthalpy(STATE soundSpeed, STATE speed);
49 
51  void ComputeInitialData(TPZVec<STATE>&sol,TPZVec<REAL> &normal, STATE&soundSpeed,
52  STATE &Speed, STATE &NormalSpeed, STATE &Enthalpy, STATE &press);
53 
55  STATE FacePressure(STATE pL, STATE pR, STATE Ml, STATE Mr);
56 
58  STATE FaceMachNumber(STATE Ml, STATE Mr);
59 
61  STATE NumSoundSpeed(STATE LeftSoundSpeed,STATE RightSoundSpeed);
62 
64  STATE MassFlux(STATE NumericalSoundSpeed, STATE rhoL, STATE rhoR, STATE FaceMach);
65 
66 };
67 
68 #endif
STATE fAlpha
Method constants.
Definition: pzausmflux.h:25
TPZAUSMFlux(STATE gamma)
Constructor with Gamma value.
Definition: pzausmflux.cpp:8
STATE Speed(TPZVec< STATE > &sol, TPZVec< REAL > &normal, STATE &NormalSpeed)
Returns speed.
Definition: pzausmflux.cpp:93
Templated vector implementation.
void ComputeInitialData(TPZVec< STATE > &sol, TPZVec< REAL > &normal, STATE &soundSpeed, STATE &Speed, STATE &NormalSpeed, STATE &Enthalpy, STATE &press)
Auxiliar method only.
Definition: pzausmflux.cpp:54
STATE Enthalpy(STATE soundSpeed, STATE speed)
Returns enthalpy.
Definition: pzausmflux.cpp:106
STATE FacePressure(STATE pL, STATE pR, STATE Ml, STATE Mr)
Returns pressure in the face.
Definition: pzausmflux.cpp:111
Contains TPZMatrixclass which implements full matrix (using column major representation).
STATE MassFlux(STATE NumericalSoundSpeed, STATE rhoL, STATE rhoR, STATE FaceMach)
Returns the mass flux.
Definition: pzausmflux.cpp:155
long double gamma(unsigned int n)
Evaluate the factorial of a integer.
STATE fBeta
Definition: pzausmflux.h:25
void ComputeFlux(TPZVec< STATE > &solL, TPZVec< STATE > &solR, TPZVec< REAL > &normal, TPZVec< STATE > &F)
Computes numerical flux.
Definition: pzausmflux.cpp:20
STATE SoundSpeed(TPZVec< STATE > &sol, STATE press)
Returns sound speed.
Definition: pzausmflux.cpp:62
STATE NumSoundSpeed(STATE LeftSoundSpeed, STATE RightSoundSpeed)
Computes the numerical sound speed at the face.
Definition: pzausmflux.cpp:151
STATE FaceMachNumber(STATE Ml, STATE Mr)
Returns mach number in the face.
Definition: pzausmflux.cpp:131
STATE fGamma
Ratio between specific heat is constant and the specific heat the constant volume of a polytropic gas...
Definition: pzausmflux.h:22
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
STATE Pressure(TPZVec< STATE > &sol)
Returns pressure values.
Definition: pzausmflux.cpp:73
Implements the numerical flux for AUSM problem. (Jorge?)
Definition: pzausmflux.h:17