CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Density as function of pressure (https://www.cfd-online.com/Forums/cfx/64708-density-function-pressure.html)

sorrego May 20, 2009 15:08

Density as function of pressure
 
Hello Guys.
Im making a steady simulation of a oil film. I need to establish the Density as function of pressure.

rho=rho_initial*( (c1 + c2 * Pressure ) / ( c1 + Pressure ) )

Can anybody can please help me to establish that to the solver?


Thanks a lot.
Santiago.

Rui May 20, 2009 15:42

So far, what have you tried to set the density as that function of the pressure? :confused:

sorrego May 20, 2009 18:04

Hello. Thanks for reading.

I try to create an expression called rho (and specify that expression in the Material propieties)

rho= ((3e9+1.34*p)/(3e9+p)) * 860 [kg m^-3]

But the solver said that the dimension are wrong. I tried several combinations of the dimensions and not succeded.

Any ideas?? :confused:

Thanks.
Santiago

Jules May 20, 2009 18:35

3e9 has no dimension, but 1.34*p has [Pa], that's why it doesn't work.
-> try: ((3e9 [Pa] + 1.34*p)/3e9 [Pa] + p)) * 860 [kg m^-3]

Regards,
Jules

sorrego May 21, 2009 10:34

Thanks Jules.

It worked. I tryied that once, but the my mistake was that I was putting [pa] and not [Pa].

So. it finally worked using:

((5.9e8 [Pa] + 1.34*p) / (5.9e8 [Pa] + p) ) * 860 [kg m^-3]

Bye! and thanks.

Santiago:cool:


All times are GMT -4. The time now is 08:18.