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

PISO nCorrectors and fatal error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2006, 13:20
Default I am currently running a simul
  #1
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
I am currently running a simulation with a rotating mesh, very similar to the mixer2D tutorial in order to test remaking the mesh.

I successfully ran the mixer2D case; however, with my new case, I get the following error very soon after starting the simulation:

--> 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.

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

FOAM exiting

If I go into the controlDict file and change the PISO nCorrectors to zero, then the simulation runs fine, so I do not believe it is a problem with the sliding interface.

I admit I am very new to Openfoam, so if anyone knows what this error is and how to fix the problem it would be greatly appreciated. Thanks

Joe Kummer
jdkummer is offline   Reply With Quote

Old   September 18, 2006, 14:10
Default This is an issed with the glob
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
This is an issed with the global mas tolerance and I've been fiddling with it for a while. The issue is that you can accumulate up to machine tolerance of error for each face in motion and the checking is very sensitive to total volume in the domain when the interface slides. Have a look at:

finiteVolume/cfdTools/general/adjustPhi/adjustPhi.C, around line 96. Currently, I am using:

scalar massCorr = 1.0;

if (mag(adjustableMassOut) > SMALL)
{
massCorr = (massIn - fixedMassOut)/adjustableMassOut;

else if (mag(fixedMassOut - massIn) > 1e-12*Foam::max(1.0, mag(massIn)))
{
FatalErrorIn
...}

and it's sort of fine (no problems thus far).

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

Old   September 18, 2006, 14:26
Default This may seem like a silly que
  #3
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
This may seem like a silly questions, but I am not able to find the directory finiteVolume anywhere. I have to admit I am also new to Linux.

Also, once I make the changes, will I need to recompile anything? Thanks
jdkummer is offline   Reply With Quote

Old   September 18, 2006, 14:30
Default Excuse that...I found the dire
  #4
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
Excuse that...I found the directory and file. But the second question still remains. After making changes to this file, do I need to recompile it?
jdkummer is offline   Reply With Quote

Old   September 18, 2006, 14:30
Default cd ~/OpenFOAM/OpeFOAM-1.3/src/
  #5
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
cd ~/OpenFOAM/OpeFOAM-1.3/src/finiteVolume/cfdTools/general/adjustPhi/adjustPhi.C

You will need to rebuild only the main library and it should recompile only this one file.

Read up the manual pages on "find" and "grep", e.g.

man find

or try:

foam
find . -type f -name adjustPhi.C -print

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

Old   September 18, 2006, 14:32
Default Thank you, I will give it a tr
  #6
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
Thank you, I will give it a try.
jdkummer is offline   Reply With Quote

Old   September 18, 2006, 15:02
Default Once again they may seem silly
  #7
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
Once again they may seem silly, but how should I recompile the file?

I read the documentation on writing new applications, and it talks about using wmake. I found a script called Allwmake under the Openfoam-1.3/src directory, so I tried this. I think it is working, but I believe it is recompiling everything. You mentioned that I should only recompile the one file. How does one do this? Thanks.

Joe
jdkummer is offline   Reply With Quote

Old   September 18, 2006, 15:04
Default You need to read the documenta
  #8
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
You need to read the documentation:

src
cd finiteVolume
wmake libso

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

Old   September 18, 2006, 15:10
Default Thanks
  #9
New Member
 
Joseph Kummer
Join Date: Mar 2009
Location: Fayetteville, NY, USA
Posts: 17
Rep Power: 17
jdkummer is on a distinguished road
Thanks
jdkummer is offline   Reply With Quote

Old   May 17, 2011, 10:48
Default Continuity error cannot be removed by adjusting the outflow. in pimpleDyMFoam.
  #10
New Member
 
Andreas Ho
Join Date: Jan 2010
Posts: 4
Rep Power: 16
andreho is on a distinguished road
Hello,

I have a similar problem. I have a model with a moving mesh (pimpleDyMFoam), where a rigid body oscillates (a rotating oscillation) in a computational domain. All outer boundaries are fixed value (0,0,0) for the velocity and zero gradient for the pressure. The moving wall boundary is fixed value (rotation) and zero gradient as well.

I receive the following 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 : 0.0419322
Specified mass inflow : 8.7002e-11
Specified mass outflow : 4.94772e-10
Adjustable mass outflow : 0

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


How can this be? Inflow and outflow is the same since the oscillating body is completely surrounded by fluid and the outer boundaries have no flow at all.

More interesting, translation works fine. I also calculated the solution with non-moving mesh and used the solution as initial values for the simulation with moving mesh, but I received the exactly same error message with exactly the same values.


Does anybody has an idea how to solve this issue?

Many thanks in advance,

andreas
andreho is offline   Reply With Quote

Old   May 30, 2011, 16:55
Default Same error message with interFoam
  #11
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
Hello All,

I get the same error message with interFoam where I am trying to fill a vessel, so I know that at the start there is a difference between mass inflow and mass outflow. (liquid in, gas out). How can I solve this?
I am using 1.6-ext with ubuntu 10.04

Thanks,
Wouter
wouter 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
fatal error :(( ozgur CFX 0 August 30, 2008 20:09
Fatal Error -- Help! Steve Roberts CFX 1 May 7, 2006 13:36
Fatal error error writing to tmp No space left on device maka OpenFOAM Installation 2 April 3, 2006 08:48
UDF fatal error Srivatsan V. Rajagopalan FLUENT 6 October 3, 2005 12:43
fatal error helen CFX 3 February 20, 2004 10:26


All times are GMT -4. The time now is 01:23.