|
[Sponsors] |
January 29, 2010, 18:51 |
Error in solver? (buoyantPisoFoam)
|
#1 |
Member
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 17 |
This is for you smart ones out there (or at least smarter than me)! I have a simplified problem where I have a 1 meter cubed box with an inflow of 1kg/sec (trying to model filling a tank with gas). after 15 seconds I check the values, and the pressure is very much off (factor of 12ish). I have check, re-checked, and re-re-checked my values in all the files, but they all look accurate to me. Based off hand calcs, I'm expecting a pressure of around 1.724 MPa after 15 seconds, but it only gets to 135 kPa. Anyone out there that can crack this? I am using buoyantPisoFoam to solve the problem.
http://rapidshare.com/files/343125087/meterBox.zip.html |
|
January 29, 2010, 18:56 |
|
#2 |
Member
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 17 |
The link above is the full case file.
|
|
February 1, 2010, 14:27 |
|
#3 |
Member
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 17 |
Anyone have a chance to look at this yet? I'm still pulling my hair out.
|
|
February 2, 2010, 03:43 |
|
#4 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
To save some of your boldness for other cases, just without much compressible experience and source checking, I would say, that this buoyant solver, although compressible, is only weakly compressible. It means it does compute the buoyancy force from density difference and not the Boussinesq approximation, but is not suited for real compressible case like yours.
I would suggest to try rhoPisoFoam or some other real compressible solver. I hope someone will correct me if I'm wrong. Good luck matej |
|
February 2, 2010, 07:00 |
|
#5 |
Member
Join Date: Dec 2009
Posts: 57
Rep Power: 17 |
Hey James,
Since Im waiting on a simulation, Im trying to think with you....though Im rather newbish to openFOAM. I downloaded your case, but was wondering where you prescribed the inflow of gass. Pieter |
|
February 2, 2010, 07:05 |
|
#6 |
Member
Join Date: Dec 2009
Posts: 57
Rep Power: 17 |
My bad, I see it now in the BC for U.
|
|
February 2, 2010, 15:19 |
|
#7 |
Member
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 17 |
Thank you matejfor! You were correct, using rhoPisoFoam gave me almost exact results to my hand calculations. I do however have one delima now.
Does rhoPisoFoam support gravity, and how would it be implimented? --James |
|
February 2, 2010, 15:58 |
|
#8 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Good to hear!
now the gravitation. Before turning most of my brain on, do you really need it? You are filling a volume quite fast and compress it a lot. Does the gravity really plays important role in your analysis. Is yes, then let's have a look how the gravity is implemented. Let's have a look into: $FOAM/applications/solvers/heatTransfer/buoyantPisoFoam/buoyantPisoFoam.C line 49 is important ( in my 1.6.x installation) with #include "readGravitationalAcceleration.H" then the gravitational force is taken into account as a source of momentum in UEqn.H and pEqn.H especially with a pressure equation it is not going to be copy&paste as I bet the pressure equation looks different in the fully compressible case. But with a pen and pencil, DoNotDisturb sign and mug of tea, you should found out how to do it. hope this helps matej |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Getting too many iterations by velocity solving (aborting). Changing U - Solver? | suitup | OpenFOAM Running, Solving & CFD | 0 | January 20, 2010 08:45 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 17:25 |