Contents - Index


SOUNDSPEED

 

The SoundSpeed function returns the speed of sound c with units [m/s, ft/s] through the fluid.  The speed of sound is defined as:

 

 

For an ideal gas, the sound speed simplifies to:

 

This function is intended to return sound speed for a single-phase.  If the state is two-phase, the function will return the volume fraction weighted average of the liquid and vapor sound speeds and issue a warning.

 

Examples:

 

$UnitSystem SI K kPa

$VarInfo SS1,SS2 units=m/s

SS1 = SoundSpeed(Air, T=300 [K])

SS2 = SoundSpeed(R134a,T=300 [K],P=100 [kPa])

 

{Solution:

SS1=347.2 [m/s]

SS2=162.1 [m/s]

}

 

 

Thermophysical Functions