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

Using potentialFoam with simpleBuoyantFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2007, 06:12
Default Hi, I am trying to use the
  #1
Member
 
Lasse Boehling
Join Date: Mar 2009
Posts: 35
Rep Power: 17
lasb is on a distinguished road
Hi,

I am trying to use the simpleBouyantFoam solver with inlets and outlets.

The problem is that it is complaining over a continuity error in the outflow.

--> FOAM FATAL ERROR : Continuity error cannot be removed by adjusting the outflow.

Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.

Total flux : 76.8043
Specified mass inflow : 10.4276
Specified mass outflow : 0
Adjustable mass outflow : 1.17153e-16


From function adjustPhi(surfaceScalarField& phi, const volVectorField& U,const volScalarField& p
in file cfdTools/general/adjustPhi/adjustPhi.C at line 111.

FOAM exiting

So I tried to look at my boundaryconditions. They seem fine. Then I looked at potentialFoam. My problem is that if I want to initialise the outflow. p is calculated as p/rho. That is: the dimensions for p are not the same in potentialFoam as they are in bouyantSimpleFoam.

If someone has any ideas how to solve/omit this problem I would be very happy.

Best Regards,
Lasse
lasb is offline   Reply With Quote

Old   August 10, 2007, 06:22
Default Yes: take the same geometry, s
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Yes: take the same geometry, solve potential flow separately and copy ONLY the velocity field.

Alternatively (I take it you've got zeroGradient on U at outlet), set the initial field to something that is non-zero and try again.

Please let me know what happens, I'm interested if I'm guessing right.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 10, 2007, 08:27
Default Hi, Thanks for replying so
  #3
Member
 
Lasse Boehling
Join Date: Mar 2009
Posts: 35
Rep Power: 17
lasb is on a distinguished road
Hi,

Thanks for replying so fast.

You were right. If I run potentialFoam and then copy the velocity field and run it with buoyantSimpleFoam it works. But it can only run for a limited amount of time, then it says:

--> FOAM FATAL ERROR : Maximum number of iterations exceeded

I can see that it is crashing trying to calculate pd. I'm not sure how to solve this.

Any ideas?

Lasse
lasb is offline   Reply With Quote

Old   August 10, 2007, 08:49
Default The solver itself is not limit
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
The solver itself is not limited in any way: there is no question of the solver running to a limited amount of time or any similar dishonesty.

I bet it is failing when trying to calculate some material properties as a function of temperature and pressure using Janaf. Try using constant material properties - it should run without trouble. Onc eyou get that sorted out, switch back to Janaf and see what happens.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 10, 2007, 09:31
Default Thanks, I bet you're right.
  #5
Member
 
Lasse Boehling
Join Date: Mar 2009
Posts: 35
Rep Power: 17
lasb is on a distinguished road
Thanks, I bet you're right.

I'm still learning OpenFOAM and has no idea where I can find material properties nor how to switch them on and off. Where do I do that?

I don't know what Janaf is, but I guess it's not that important.

Sorry for my stupid questions.

Lasse
lasb is offline   Reply With Quote

Old   August 28, 2015, 13:32
Default How to run potentialFoam Separately
  #6
Member
 
Werner
Join Date: Jul 2015
Location: West Lafayette, USA
Posts: 34
Rep Power: 11
WernerW is on a distinguished road
Hi !!

could you please explain with more details how do you run potentialFoam separately and introduce that to my actual model? I'm trying to do this creating a new folder and trying to make my model as similar as posible to the tutorial potentialFoam/pitzDaily. So far I had some results as you can see in the image.

How do I Insert the results of the simulation in my actual model ? Where are these results ? It seems as if they are are saved in the files of folder 0 because files U, P and Phi are very heavy.

Quote:
Originally Posted by lasb View Post
Hi,

Thanks for replying so fast.

You were right. If I run potentialFoam and then copy the velocity field and run it with buoyantSimpleFoam it works. But it can only run for a limited amount of time, then it says:

--> FOAM FATAL ERROR : Maximum number of iterations exceeded

I can see that it is crashing trying to calculate pd. I'm not sure how to solve this.

Any ideas?

Lasse
Lasse, Do you run the simulation for than one step?a Can you make an unsteady potentialFoam simulation ?

thank you in advance for any help or interest .

regards,
Werner

p.s. If you are curious why I started trying this please check my other reply in "Initializing with PotentialFoam" http://www.cfd-online.com/Forums/ope...tml#post561363.
Attached Images
File Type: jpg 2015.08.28 potentialFlow beta30_U3500.jpg (63.6 KB, 48 views)
WernerW 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
POTENTIALFOAM ERROR for a naca profile dinonettis OpenFOAM Running, Solving & CFD 7 September 9, 2010 11:59
PotentialFOAM for channel flow albcem OpenFOAM Running, Solving & CFD 0 October 16, 2008 13:18
PotentialFoam few problems chris_sev OpenFOAM Running, Solving & CFD 1 July 22, 2008 11:15
POTENTIALFOAM ERROR for a naca profile dinonettis OpenFOAM Running, Solving & CFD 2 April 10, 2008 13:17
A fundamental problem about Pressure equation of the potentialFoam solver dbxmcf OpenFOAM Running, Solving & CFD 0 October 6, 2006 12:32


All times are GMT -4. The time now is 13:50.