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

a question about icoFoam equations

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

Like Tree3Likes
  • 2 Post By cfdonline2mohsen
  • 1 Post By cctv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2013, 07:15
Default a question about icoFoam equations
  #1
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 12
cctv is on a distinguished road
Hi
I found that the pressure term in the momentum equation in icoFoam does not divided by the denssity rho. Isn't it magnified the speed U by rho times in this way? Any one who could tell the reason? Thanks.
cctv is offline   Reply With Quote

Old   July 2, 2013, 15:16
Default
  #2
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Yu
If you open the p in icoFoam/cavity/0/p you can see that:
Code:
dimensions      [0 2 -2 0 0 0 0];
which is the dimension for p/rho. it means that for incompressible solvers the p equals to kinematic pressure p/rho.
but it differs for compressible solvers for example if you see the tutorials/compressible/rhoPimpleFoam/ras/cavity/0/p
you can see that:
Code:
dimensions      [1 -1 -2 0 0 0 0];
which is the correct dimension that you want!
So in conclusion,p differs in compressible & incompressible solvers.
Good Luck
sharonyue and ScarFace like this.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   July 2, 2013, 15:47
Default
  #3
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 12
cctv is on a distinguished road
Quote:
Originally Posted by cfdonline2mohsen View Post
Dear Yu
If you open the p in icoFoam/cavity/0/p you can see that:
Code:
dimensions      [0 2 -2 0 0 0 0];
which is the dimension for p/rho. it means that for incompressible solvers the p equals to kinematic pressure p/rho.
but it differs for compressible solvers for example if you see the tutorials/compressible/rhoPimpleFoam/ras/cavity/0/p
you can see that:
Code:
dimensions      [1 -1 -2 0 0 0 0];
which is the correct dimension that you want!
So in conclusion,p differs in compressible & incompressible solvers.
Good Luck
Thank you. I have noticed this. However, I am wondering if the result would be the same when I use these two ways. I mean, if in the p file, there are only two boundary conditions, fixedvalue zero and zerogradience. and the result of solving equation with rho and without the rho would be the same. In other words, would boundary conditions fixedvalue zero and zerogradience would stay unchanged in both p and p/rho files. the only change would only be the dimension in this way. Thank you.
ScarFace likes this.
cctv 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
Guide: Writing Equations in LaTeX on the CFD Online Forums pete Site Help, Feedback & Discussions 27 May 19, 2022 04:19
coupled source term in 3 transport equations mhassani OpenFOAM Running, Solving & CFD 1 September 10, 2018 10:35
one question about representation of equations? lfgmarc OpenFOAM Programming & Development 6 August 18, 2011 08:21
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 05:10
Pressureless Euler-Poisson Equations Mikael Tushensson Main CFD Forum 0 April 12, 2001 21:18


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