OpenWAM
Public Member Functions | List of all members
TAcousticCompressor Class Reference

Public Member Functions

 TAcousticCompressor ()
 
 ~TAcousticCompressor ()
 
 TAcousticCompressor (int InletPipeID, int VoluteID, int OutletPipeID, int RotorVolumeID, int StatorVolumeID)
 
double P10 ()
 Compute the total pressure at compressor inlet. More...
 
double P1 ()
 
double P20 ()
 Compute the total pressure at compressor outlet. More...
 
double P2 ()
 Compute the pressure at compressor outlet. More...
 
double T10 ()
 Compute the total temperature at compressor inlet. More...
 
double T2 ()
 Compute the temperature at compressor outlet. More...
 
double T20 ()
 
double T1 ()
 
double Din ()
 
double CompRatio ()
 
void PutHeatPower (double Power)
 
void PutHeatPowerIn (double Power)
 
void AsignInPipe (TTubo **Pipe)
 
void AsignOutPipe (TTubo **Pipe)
 
void AsignVolute (TTubo **Pipe)
 
void AsignRotorVol (TDeposito **Volume)
 
void AsignStatorVol (TDeposito **Volume)
 
void AsignElementsID (int InletPipeID, int VoluteID, int OutletPipeID, int RotorVolumeID, int StatorVolumeID)
 
double CRCorrector ()
 
double EFCorrector (double rnew, double rorig)
 
double MassFlow ()
 
double Efficiency ()
 

Detailed Description

Definition at line 66 of file TAcousticCompressor.h.

Constructor & Destructor Documentation

◆ TAcousticCompressor()

TAcousticCompressor::TAcousticCompressor ( )

Default constructor.

Definition at line 36 of file TAcousticCompressor.cpp.

36  {
37 }

◆ ~TAcousticCompressor()

TAcousticCompressor::~TAcousticCompressor ( )

Default destructor.

Definition at line 49 of file TAcousticCompressor.cpp.

49  {
50 }

Member Function Documentation

◆ P10()

double TAcousticCompressor::P10 ( )

Compute the total pressure at compressor inlet.

Compute the total pressure at compressor inlet.

Returns
Total pressure at compressor inlet, in bar.

Definition at line 52 of file TAcousticCompressor.cpp.

52  {
53 
54  double p = FInletPipe->GetPresion(0);
55  double a = FInletPipe->GetAsonido(0) * __cons::ARef;
56  double v = FInletPipe->GetVelocidad(0) * __cons::ARef;
57  double g = FInletPipe->GetGamma(0);
58 
59  double p0 = p * pow(1 + (g - 1) / 2 * pow2(v / a), g / (g - 1));
60 
61  return p0;
62 }

References TTubo::GetAsonido(), and TTubo::GetPresion().

Here is the call graph for this function:

◆ P2()

double TAcousticCompressor::P2 ( )

Compute the pressure at compressor outlet.

Compute the pressure at compressor outlet.

Returns
Pressure at compressor outlet, in bar.

Definition at line 84 of file TAcousticCompressor.cpp.

84  {
85 
86  int n = FOutletPipe->getNin() - 1;
87 
88  return FOutletPipe->GetPresion(n);
89 
90 }

References TTubo::GetPresion().

Here is the call graph for this function:

◆ P20()

double TAcousticCompressor::P20 ( )

Compute the total pressure at compressor outlet.

Compute the total pressure at compressor outlet.

Returns
Total pressure at compressor outlet, in bar.

Definition at line 70 of file TAcousticCompressor.cpp.

70  {
71 
72  int n = FOutletPipe->getNin() - 1;
73 
74  double p = FOutletPipe->GetPresion(n);
75  double a = FOutletPipe->GetAsonido(n) * __cons::ARef;
76  double v = FOutletPipe->GetVelocidad(n) * __cons::ARef;
77  double g = FOutletPipe->GetGamma(n);
78 
79  double p0 = p * pow(1 + (g - 1) / 2 * pow2(v / a), g / (g - 1));
80 
81  return p0;
82 }

References TTubo::GetAsonido(), and TTubo::GetPresion().

Here is the call graph for this function:

◆ T10()

double TAcousticCompressor::T10 ( )

Compute the total temperature at compressor inlet.

Compute the total pressure at compressor outlet.

Returns
Total temperature at compressor outlet, in K.

Definition at line 92 of file TAcousticCompressor.cpp.

92  {
93 
94  double p = FInletPipe->GetPresion(0);
95  double a = FInletPipe->GetAsonido(0) * __cons::ARef;
96  double v = FInletPipe->GetVelocidad(0) * __cons::ARef;
97  double g = FInletPipe->GetGamma(0);
98  double R = FInletPipe->GetRMezcla(0);
99 
100  double T0 = (pow2(a) + (g - 1) / 2 * pow2(v)) / g / R;
101 
102  return T0;
103 
104 }

References TTubo::GetAsonido(), and TTubo::GetPresion().

Here is the call graph for this function:

◆ T2()

double TAcousticCompressor::T2 ( )

Compute the temperature at compressor outlet.

Compute the pressure at compressor outlet.

Returns
Temperature at compressor outlet, in K.

Definition at line 106 of file TAcousticCompressor.cpp.

106  {
107 
108  int n = FOutletPipe->getNin() - 1;
109 
110  double a = FOutletPipe->GetAsonido(n) * __cons::ARef;
111  double g = FOutletPipe->GetGamma(n);
112  double R = FOutletPipe->GetRMezcla(n);
113 
114  return a * a / g / R;
115 
116 }

References TTubo::GetAsonido().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
TTubo::GetGamma
double GetGamma(int i) const
Gets the specific heat capacities ratio at a given cell.
Definition: TTubo.cpp:5444
TTubo::GetVelocidad
double GetVelocidad(int i) const
Gets the fluid speed.
Definition: TTubo.cpp:5505
TTubo::GetPresion
double GetPresion(int i) const
Gets the fluid pressure.
Definition: TTubo.cpp:5468
pow2
T pow2(T x)
Returns x to the power of 2.
Definition: Math_wam.h:88
TTubo::GetRMezcla
double GetRMezcla(int i) const
Gets the gas constant of the mixture at a given cell.
Definition: TTubo.cpp:5476
TTubo::GetAsonido
double GetAsonido(int i) const
Gets the speed of sound.
Definition: TTubo.cpp:5412