CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   small density change for isothermal flows (http://www.cfd-online.com/Forums/openfoam/115772-small-density-change-isothermal-flows.html)

hz283 April 6, 2013 10:02

small density change for isothermal flows
 
Hi All,

When I simulate the isothermal flows, I used the rhoPimeplFoam. I also made some modification on that solver (1) comment the statements for solving the enthalpy equation but retain therm.correct() (2) use Low Ma number assumption, pressure for the EoS is fixed to be 101325 Pa. However, when I use this solver to simulate the isothermal flows, the density shows very small change.

I attached an example: an isothermal air jet, uj=7m/s, temperature is always 294K in the initial field and during the simulation. However, as I said, the density in the domain varies between 1.197 and 1.188. This is the density for air. In Openfoam, the density is updated through rho=p*psi, where psi=1/(R*T). Along this line, it seems that the density change should be from R because in this case p and T are fixed. But I do not know why R is changed since I use pureMixture , which should be also fixed. The complete options for thermalphysical models I used are:
thermoType hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>;

Another possible explanation is that this small variation of density is completely caused by numerical error, which should be tolerable.

I am a little confused about this problem. Thank you in advance if someone can give me comments on this.

Thanks.

hz283 April 6, 2013 10:05

1 Attachment(s)
Attach a contour of density here. Thanks.

Quote:

Originally Posted by hz283 (Post 418759)
Hi All,

When I simulate the isothermal flows, I used the rhoPimeplFoam. I also made some modification on that solver (1) comment the statements for solving the enthalpy equation but retain therm.correct() (2) use Low Ma number assumption, pressure for the EoS is fixed to be 101325 Pa. However, when I use this solver to simulate the isothermal flows, the density shows very small change.

I attached an example: an isothermal air jet, uj=7m/s, temperature is always 294K in the initial field and during the simulation. However, as I said, the density in the domain varies between 1.197 and 1.188. This is the density for air. In Openfoam, the density is updated through rho=p*psi, where psi=1/(R*T). Along this line, it seems that the density change should be from R because in this case p and T are fixed. But I do not know why R is changed since I use pureMixture , which should be also fixed. The complete options for thermalphysical models I used are:
thermoType hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>;

Another possible explanation is that this small variation of density is completely caused by numerical error, which should be tolerable.

I am a little confused about this problem. Thank you in advance if someone can give me comments on this.

Thanks.



All times are GMT -4. The time now is 05:27.