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

How to change density in OpenFoam

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

Like Tree2Likes
  • 2 Post By alberto

Reply
 
LinkBack Thread Tools 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: 7
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,894
Rep Power: 26
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 and czhao86 like this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
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: 7
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: 7
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: 7
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: 168
Rep Power: 4
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: 4
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: 2
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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 9 June 22, 2011 18:59
Comparison of axisymmetric case, Starccm+ and OpenFOAM linnemann OpenFOAM Running, Solving & CFD 12 June 16, 2011 05: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 13:14


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