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

calcMassFlow problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2010, 05:09
Default calcMassFlow problems
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Hello,

I'm trying to use the "calcMassFlow" utility but I have some questions :

- Currently, he calculates the massflow every 50 timestep but my case only writes data every 500 timestep. How to change this for calcMassFlow so that it calculates the massflow every 500 timestep instead of 50?

- The massflow is exactly 2 times the massflow fluent calculates for the same case (1.34 wheras it should be 0.67). I've made a third dimension of 1 meter because fluents uses a 3rd dimension of 1 meter to calculate its massflow. Where is my problem?

Thanks a lot for the help
Gearb0x is offline   Reply With Quote

Old   March 1, 2010, 10:20
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gearb0x View Post
Hello,

I'm trying to use the "calcMassFlow" utility but I have some questions :

- Currently, he calculates the massflow every 50 timestep but my case only writes data every 500 timestep. How to change this for calcMassFlow so that it calculates the massflow every 500 timestep instead of 50?

- The massflow is exactly 2 times the massflow fluent calculates for the same case (1.34 wheras it should be 0.67). I've made a third dimension of 1 meter because fluents uses a 3rd dimension of 1 meter to calculate its massflow. Where is my problem?

Thanks a lot for the help
You're referring to this utility http://openfoamwiki.net/index.php/Contrib_calcMassFlow, right?
That utility can only work with written timesteps, so I'm a bit amazed that you get output more often
About the factor 2: you're not by any chance using an incompressible solver and the density of your fluid is 0.5? The other suspect is that in the dictionary you've got a scaleFactor 2 (because of reusing that from a symmetric case for instance).
Bernhard
gschaider is offline   Reply With Quote

Old   March 1, 2010, 13:37
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Yep that's this utility

About the rho, I set it to 1.2 for air
About the scale it's commented

So I don't understand why I get such results ...
Gearb0x is offline   Reply With Quote

Old   March 2, 2010, 13:59
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gearb0x View Post
Yep that's this utility

About the rho, I set it to 1.2 for air
About the scale it's commented

So I don't understand why I get such results ...
You're 100% sure that the factor 2 is not a problem with the case setup?
Bernhard
gschaider is offline   Reply With Quote

Old   March 2, 2010, 14:11
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Well I don't see where I could have go wrong ...
Gearb0x is offline   Reply With Quote

Old   March 2, 2010, 15:47
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gearb0x View Post
Well I don't see where I could have go wrong ...
Me neither (because I don't know the case). One thing you try is to use foamDataToFluent (see UserGuide) to get data into Fluent and check whether the you get the expected value or the calcMassFlow-value there Bernhard
gschaider is offline   Reply With Quote

Old   March 2, 2010, 16:41
Default
  #7
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Oh I'll try this!

Thank you!
Gearb0x is offline   Reply With Quote

Old   March 2, 2010, 17:00
Default
  #8
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
I tried this and I get 0 in fluent so this must be a problem in the conversion.

I made "foamDataToFluent" and "foamMeshTofluent"

then I select fluent3ddp

and tried to do report-> fluxes -> massflow

but that doesn't work ...
Normaly it's a 2D case but apparently when I select 2ddp this doesn't work since openfoam works with 3D meshes and specific boundary conditions. Maybe it's because of that ... ?
Gearb0x is offline   Reply With Quote

Old   March 3, 2010, 10:45
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gearb0x View Post
I tried this and I get 0 in fluent so this must be a problem in the conversion.

I made "foamDataToFluent" and "foamMeshTofluent"

then I select fluent3ddp

and tried to do report-> fluxes -> massflow

but that doesn't work ...
Normaly it's a 2D case but apparently when I select 2ddp this doesn't work since openfoam works with 3D meshes and specific boundary conditions. Maybe it's because of that ... ?
It is a 2D-geometry? You should have said that in the first place. Is it possible that the cells in OF are 2m "thick"? In that case you must modify the scale-factor accordingly (2D-massflows will only be comparable to Fluent if the mesh is 1m "thick")
Bernhard
gschaider is offline   Reply With Quote

Old   March 23, 2010, 05:21
Default
  #10
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Now that I've made my case 3D, I no more have any problem ... Something had to be wrong with the 2D case, yet I paid attention to the third dimension ...
Gearb0x is offline   Reply With Quote

Reply


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
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 13:13
Some problems with Star CD Micha Siemens 0 August 6, 2003 14:55
unstructured grid sreekanth Main CFD Forum 1 August 6, 2001 16:09
Using Fluent for Geophysical Problems Hassid Samuel FLUENT 0 February 23, 2001 07:04
Inverse problems Aleksey Alekseev Main CFD Forum 0 May 12, 1999 16:38


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