CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to change density in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 3 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2011, 17:34
Default How to change density in OpenFoam
  #1
New Member
 
Wei Zhao
Join Date: Mar 2010
Posts: 28
Rep Power: 16
zhaowei is on a distinguished road
Hi, all


I have done some simulation of aircraft propeller using MRFSimpleFoam, and the result goes well with ANSYS CFX. MRFSimpleFoam is used for incompressible steady state simulation. Now I want to change the flow density to see the performance of the propeller. It is very easy to change it in CFX, but how can I change the density of flow in OpenFoam?

I have read some theads said that OpenFoam use kinematic viscosity which is normalized by the density, and pressure is too. I have changed the reference pressure in fvSolution and mu in transportProperties, but the axial thrust does not change . Could anyone tell me how can I change the density? Thanks in advance.
zhaowei is offline   Reply With Quote

Old   March 14, 2011, 05:00
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
You have to change the viscosity:

nu = mu/rho

being

mu -> dynamic viscosity
nu -> kinematic viscosity
rho -> density

Best,
atg, czhao86 and yassine.bt like this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   March 14, 2011, 05:51
Default
  #3
New Member
 
Wei Zhao
Join Date: Mar 2010
Posts: 28
Rep Power: 16
zhaowei is on a distinguished road
Hi, Alberto

Thanks very much for your reply. I have changed the viscosity, but the axial force still not change. I use k-epsilon model, so should I change k and e?


thanks
zhaowei is offline   Reply With Quote

Old   March 14, 2011, 06:00
Default
  #4
New Member
 
Wei Zhao
Join Date: Mar 2010
Posts: 28
Rep Power: 16
zhaowei is on a distinguished road
Oh, I forgot to post my transportProperties file.

the original one is as follows:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

transportModel Newtonian;

nu nu [0 2 -1 0 0 0 0] 1e-05;

CrossPowerLawCoeffs
{
nu0 nu0 [0 2 -1 0 0 0 0] 1e-06;
nuInf nuInf [0 2 -1 0 0 0 0] 1e-06;
m m [0 0 1 0 0 0 0] 1;
n n [0 0 0 0 0 0 0] 1;
}

BirdCarreauCoeffs
{
nu0 nu0 [0 2 -1 0 0 0 0] 1e-06;
nuInf nuInf [0 2 -1 0 0 0 0] 1e-06;
k k [0 0 1 0 0 0 0] 0;
n n [0 0 0 0 0 0 0] 1;
}
zhaowei is offline   Reply With Quote

Old   March 14, 2011, 06:09
Cool
  #5
New Member
 
Wei Zhao
Join Date: Mar 2010
Posts: 28
Rep Power: 16
zhaowei is on a distinguished road
Oh, sincerely sorry everyone. I use the libturboPerformance.so to calculate the performance of rotor. I forgot to change the density there.
zhaowei is offline   Reply With Quote

Old   November 18, 2012, 18:56
Default
  #6
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 14
hz283 is on a distinguished road
Quote:
Originally Posted by alberto View Post
You have to change the viscosity:

nu = mu/rho

being

mu -> dynamic viscosity
nu -> kinematic viscosity
rho -> density

Best,
>>>>>>>>>----------------------------------------------->>>>>>>
Now in my simulations, there are two streams: one is air and the other is pure methane. So in this case, how to set the nu? Is it still correct to give an approximate uniform value for the whole field? Thank you very much.
hz283 is offline   Reply With Quote

Old   February 25, 2013, 05:48
Default
  #7
New Member
 
harikrishnan
Join Date: Sep 2012
Posts: 7
Rep Power: 14
hayhari is on a distinguished road
Quote:
Originally Posted by hz283 View Post
>>>>>>>>>----------------------------------------------->>>>>>>
Now in my simulations, there are two streams: one is air and the other is pure methane. So in this case, how to set the nu? Is it still correct to give an approximate uniform value for the whole field? Thank you very much.

Hi

I am new to openFoam. Did you get the answer for your question.?? please tell me how can we tackle this issue..
hayhari is offline   Reply With Quote

Old   December 11, 2014, 09:36
Default
  #8
New Member
 
otadol
Join Date: Nov 2014
Posts: 14
Rep Power: 12
cramsdead is on a distinguished road
Hello hayhari,

I have just a simple question :
Is it possible to set a "density" into a block to let more or less the fluid going throught?
I mean, they is only the permeability to set it or there is other Options?

Thanks for your reply
cramsdead is offline   Reply With Quote

Old   November 5, 2018, 11:37
Default
  #9
New Member
 
Xiaolu Wang
Join Date: Apr 2018
Location: Southampton, UK
Posts: 5
Rep Power: 8
EddySouth is on a distinguished road
Quote:
Originally Posted by zhaowei View Post
Hi, all


I have done some simulation of aircraft propeller using MRFSimpleFoam, and the result goes well with ANSYS CFX. MRFSimpleFoam is used for incompressible steady state simulation. Now I want to change the flow density to see the performance of the propeller. It is very easy to change it in CFX, but how can I change the density of flow in OpenFoam?

I have read some theads said that OpenFoam use kinematic viscosity which is normalized by the density, and pressure is too. I have changed the reference pressure in fvSolution and mu in transportProperties, but the axial thrust does not change . Could anyone tell me how can I change the density? Thanks in advance.
For incompressible flow, the density is constant and set as 1 in openfoam. But I don't know how to deal with compressible one.
EddySouth is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 10 May 13, 2018 19:28
Comparison of axisymmetric case, Starccm+ and OpenFOAM linnemann OpenFOAM Running, Solving & CFD 12 June 16, 2011 06:43
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
Old OpenFOAM Users, Read This if you Want to Change Username pete Site Help, Feedback & Discussions 0 March 16, 2009 05:29
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 14:14


All times are GMT -4. The time now is 23:30.