NeoPZ
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TPZAUSMFlux Class Reference

Implements the numerical flux for AUSM problem. (Jorge?) More...

#include <pzausmflux.h>

Public Member Functions

 TPZAUSMFlux (STATE gamma)
 Constructor with Gamma value. More...
 
 TPZAUSMFlux (const TPZAUSMFlux &cp)
 Copy constructor. More...
 
void ComputeFlux (TPZVec< STATE > &solL, TPZVec< STATE > &solR, TPZVec< REAL > &normal, TPZVec< STATE > &F)
 Computes numerical flux. More...
 

Private Member Functions

STATE SoundSpeed (TPZVec< STATE > &sol, STATE press)
 Returns sound speed. More...
 
STATE Pressure (TPZVec< STATE > &sol)
 Returns pressure values. More...
 
STATE Speed (TPZVec< STATE > &sol, TPZVec< REAL > &normal, STATE &NormalSpeed)
 Returns speed. More...
 
STATE Enthalpy (STATE soundSpeed, STATE speed)
 Returns enthalpy. More...
 
void ComputeInitialData (TPZVec< STATE > &sol, TPZVec< REAL > &normal, STATE &soundSpeed, STATE &Speed, STATE &NormalSpeed, STATE &Enthalpy, STATE &press)
 Auxiliar method only. More...
 
STATE FacePressure (STATE pL, STATE pR, STATE Ml, STATE Mr)
 Returns pressure in the face. More...
 
STATE FaceMachNumber (STATE Ml, STATE Mr)
 Returns mach number in the face. More...
 
STATE NumSoundSpeed (STATE LeftSoundSpeed, STATE RightSoundSpeed)
 Computes the numerical sound speed at the face. More...
 
STATE MassFlux (STATE NumericalSoundSpeed, STATE rhoL, STATE rhoR, STATE FaceMach)
 Returns the mass flux. More...
 

Private Attributes

STATE fGamma
 Ratio between specific heat is constant and the specific heat the constant volume of a polytropic gas. More...
 
STATE fAlpha
 Method constants. More...
 
STATE fBeta
 

Detailed Description

Implements the numerical flux for AUSM problem. (Jorge?)

Definition at line 17 of file pzausmflux.h.

Constructor & Destructor Documentation

◆ TPZAUSMFlux() [1/2]

TPZAUSMFlux::TPZAUSMFlux ( STATE  gamma)

Constructor with Gamma value.

Definition at line 8 of file pzausmflux.cpp.

References fAlpha, fBeta, fGamma, and gamma().

◆ TPZAUSMFlux() [2/2]

TPZAUSMFlux::TPZAUSMFlux ( const TPZAUSMFlux cp)

Copy constructor.

Definition at line 14 of file pzausmflux.cpp.

References fAlpha, fBeta, and fGamma.

Member Function Documentation

◆ ComputeFlux()

void TPZAUSMFlux::ComputeFlux ( TPZVec< STATE > &  solL,
TPZVec< STATE > &  solR,
TPZVec< REAL > &  normal,
TPZVec< STATE > &  F 
)

◆ ComputeInitialData()

void TPZAUSMFlux::ComputeInitialData ( TPZVec< STATE > &  sol,
TPZVec< REAL > &  normal,
STATE &  soundSpeed,
STATE &  Speed,
STATE &  NormalSpeed,
STATE &  Enthalpy,
STATE &  press 
)
private

Auxiliar method only.

Definition at line 54 of file pzausmflux.cpp.

References Enthalpy(), Pressure(), SoundSpeed(), and Speed().

Referenced by ComputeFlux().

◆ Enthalpy()

STATE TPZAUSMFlux::Enthalpy ( STATE  soundSpeed,
STATE  speed 
)
private

Returns enthalpy.

Definition at line 106 of file pzausmflux.cpp.

References fGamma.

Referenced by ComputeInitialData().

◆ FaceMachNumber()

STATE TPZAUSMFlux::FaceMachNumber ( STATE  Ml,
STATE  Mr 
)
private

Returns mach number in the face.

Definition at line 131 of file pzausmflux.cpp.

References fBeta.

Referenced by ComputeFlux().

◆ FacePressure()

STATE TPZAUSMFlux::FacePressure ( STATE  pL,
STATE  pR,
STATE  Ml,
STATE  Mr 
)
private

Returns pressure in the face.

Definition at line 111 of file pzausmflux.cpp.

References fAlpha.

Referenced by ComputeFlux().

◆ MassFlux()

STATE TPZAUSMFlux::MassFlux ( STATE  NumericalSoundSpeed,
STATE  rhoL,
STATE  rhoR,
STATE  FaceMach 
)
private

Returns the mass flux.

Definition at line 155 of file pzausmflux.cpp.

References m.

Referenced by ComputeFlux().

◆ NumSoundSpeed()

STATE TPZAUSMFlux::NumSoundSpeed ( STATE  LeftSoundSpeed,
STATE  RightSoundSpeed 
)
private

Computes the numerical sound speed at the face.

Definition at line 151 of file pzausmflux.cpp.

References sqrt.

Referenced by ComputeFlux().

◆ Pressure()

STATE TPZAUSMFlux::Pressure ( TPZVec< STATE > &  sol)
private

Returns pressure values.

Definition at line 73 of file pzausmflux.cpp.

References DebugStop, fabs, fGamma, and PZError.

Referenced by ComputeInitialData().

◆ SoundSpeed()

STATE TPZAUSMFlux::SoundSpeed ( TPZVec< STATE > &  sol,
STATE  press 
)
private

Returns sound speed.

Definition at line 62 of file pzausmflux.cpp.

References DebugStop, fGamma, PZError, and sqrt.

Referenced by ComputeInitialData().

◆ Speed()

STATE TPZAUSMFlux::Speed ( TPZVec< STATE > &  sol,
TPZVec< REAL > &  normal,
STATE &  NormalSpeed 
)
private

Returns speed.

Definition at line 93 of file pzausmflux.cpp.

References sqrt.

Referenced by ComputeInitialData().

Member Data Documentation

◆ fAlpha

STATE TPZAUSMFlux::fAlpha
private

Method constants.

Definition at line 25 of file pzausmflux.h.

Referenced by FacePressure(), and TPZAUSMFlux().

◆ fBeta

STATE TPZAUSMFlux::fBeta
private

Definition at line 25 of file pzausmflux.h.

Referenced by FaceMachNumber(), and TPZAUSMFlux().

◆ fGamma

STATE TPZAUSMFlux::fGamma
private

Ratio between specific heat is constant and the specific heat the constant volume of a polytropic gas.

Definition at line 22 of file pzausmflux.h.

Referenced by Enthalpy(), Pressure(), SoundSpeed(), and TPZAUSMFlux().


The documentation for this class was generated from the following files: