CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

interFoam ended prematurely and may have crashed. exit code 3

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

Like Tree1Likes
  • 1 Post By Tobi

LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2024, 14:48
Default interFoam ended prematurely and may have crashed. exit code 3
New Member
Shuvashish Roy
Join Date: Mar 2023
Posts: 6
Rep Power: 3
sroy is on a distinguished road
I am running a test pump station model, which crashes after running for a while. I have used volume flow rate both in the inlets and outlets. I tried using different mesh refinements and smaller time steps but couldn't figure out how to fix the problem. I am also attaching the checkMesh.out along with the model files. I have just found "If you specify velocity/flow rate at the inlet/outlet, you should specify pressure at the outlet/inlet." Is it possible to use pressure in the inlet and flow at the outlet? I highly appreciate your help.

You will find the model files at:

I have ran another model of the same pump intake station where I used pressureInletOutletVelocity for the inlets and flowRateOutletVelocity for the outlets. This model also crashed after running 17s with similar error message. Here is the link of the model files:

I highly appreciate with any insight. Thanks.

Last edited by sroy; March 19, 2024 at 16:16. Reason: updated with anotehr new model file.
sroy is offline   Reply With Quote

Old   March 20, 2024, 23:32
Super Moderator
Tobi's Avatar
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi

Using velocity definitions for both, inlet and outlet, is not a good choice as you don't give any degree of freedom to the system. Consequently, I would expect a crash.

Commonly, we use fixed velo at the inlet and fixed pressure at the outlet (or vice versa) for incompressible solvers. Potentially, I would use the Mass flux or volumetric flux at the outlets (if known) and fixed pressure value at the inlet. Another way, if you know it, would be to set up a pressure driven case. Therefore y fixed pressure outlet and totalPressure inlet conditions while keeping the velocity conditions free. E.g. zeroGradient at the outlet (or inletOutlet to prohibit potential reverse flows) combined with a pressureInletVelocity at the inlet.

However, if your case runs for quite a while, you should analyse the flow date quite close to the crash. E.g. the last few time steps (and maybe some intermediate steps during your run). Use paraview for that to get a feeling where and potentially why your case crash.

Good luck
sroy likes this.
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote


interfoam solver, openfoam, pump boundary condition

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

All times are GMT -4. The time now is 17:16.