CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   velocity of sound for rhoReactingFoam solver (

k.kshitij September 9, 2013 03:13

velocity of sound for rhoReactingFoam solver
Hi All,

I wanted to calculate the velocity of sound for the rhoreactingfoam solver. For this I'm using the following formula, .

cSound = sqrt((Cp/(Cp-R))*R*T)

Now for finding R I'm calculating it via psi = 1/(RT) therefore R = (1/psi *T).
So the formulation looks as below.

cSound = sqrt((thermo.Cp()/(thermo.Cp()-(1/(thermo.psi()*thermo.T()))))*(1/(thermo.psi()*thermo.T()))*thermo.T())

Can anyone correct me if I'm doing anything wrong in this.

Thanks in Advance

All times are GMT -4. The time now is 06:47.