CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] using cfMesh with interFoam ends in a Floating point exception

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 15, 2016, 04:51
Default using cfMesh with interFoam ends in a Floating point exception
  #1
New Member
 
htwsaar
Join Date: Mar 2015
Posts: 3
Rep Power: 11
STEFGER is on a distinguished road
Hello,

I have a problem which seems to be caused by the combination of cfMesh and interFoam. I used cfMesh several times with simpleFoam and got very good (and easy to achieve) results without any problems; but when using with multiphase solver interFoam, I sometimes run into a numerical problem (at least it looks to me like a numerical problem): At a certain time in simulation, the timesteps (deltaT) are getting smaller and smaller (down to 10E-90 or similar), until finally a Floating point exception happens. I have no idea how to look further in these cases, therefore I started from an existing (and running) tutorial and change it step by step to see when the problem arises.

Since I want to use the boubdary condition "variableHeightFlowRateInletVelocity", I started with the tutorial "weirOverflow" (located in multiphase/interFoam/ras/weirOverflow/), which has a blockMesh-generated 2D-geometry. I stretched the z-axis by factor 10, and still everything runs fine.

Then I rebuild the same geometry with salome and created a new mesh with cfMesh, and then I run into the well-known trouble: When the water reaches the end of the weir and start to flow down, the time steps decrease down to 4.37805e-86 and causes then a Floating point exception. To be near to the tutorial, I didn't use boundary layers; in fact, I only defined a maxCellSize (later I also tried with boundary layers but run into similar problems). The resulting mesh looks good to me (at least good enough for such a simple geometry). I'm pretty sure that the problem is caused by the mesh since everything runs fine if I exchange the constant/polyMesh - directory with the blockMesh-case.


I have no idea where to search for the reason, since the mesh looks good to me. Are there any special mesh requirements for multiphase simulation with interFoam?

EDIT: I've added clip images of the blockMesh / cfMesh
Attached Images
File Type: jpg weir_blockMesh.jpg (181.6 KB, 41 views)
File Type: jpg weir_cfMesh.jpg (179.5 KB, 36 views)

Last edited by STEFGER; September 15, 2016 at 07:17.
STEFGER is offline   Reply With Quote

 

Tags
cfmesh, floating point exception, interfoam


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
icoFoam floating point exception (8) leizhao512 OpenFOAM Running, Solving & CFD 7 November 1, 2018 11:43
A floating point exception - SEM Model yansheng STAR-CCM+ 1 April 4, 2016 04:57
Floating point exception from twoPhaseEulerFoam openfoammaofnepo OpenFOAM Running, Solving & CFD 1 March 19, 2016 13:56
k-e & GAMG interFoam Schemitisation Stability Issue JFM OpenFOAM Running, Solving & CFD 3 December 1, 2015 05:58
Finished simulation doesn't start: floating point exception [Divide by zero] MaxCFD STAR-CCM+ 3 June 26, 2011 10:31


All times are GMT -4. The time now is 03:18.