Help with solving floating point exception crash. [SOLVED]
2 Attachment(s)
Hi,
Does someone have any idea what is casing the crash I'm experiencing when using chtMultiRegionFoam on a case I have build using OpenFOAM 2.3.0 (using openSuse 13.1). I know the error is a floating point exception (which is caused by dividing by 0 or some other invalid math operation) however I'm unable to find the root cause. It error I have is the following: Code:
Solving for fluid region airEnclosure The idea behind the simulation is to simulate forced air flow and heat conduction inside an enclosure. Below is a more detailed description of the work flow I use to generate the error. Code:
> ./Allrun Code:
--> FOAM Warning : However when I try to run chtMultiRegionFoam I get the floating point exception mentioned above. When I comment out the fan boundary condition from system/airEnclosure/createBafflesDict the simulation runs without a problem (however also without the forced air flow I want to include) so I know there is a problem somewhere there. I have tried moving the simulation domain to just positive axis, changed the shape and location of the fan boundary, increasing the number of cells in the domain and trying to use a staggered grid (actually the staggered grid was the initial case and I was hoping it was the cause of the error, no luck there though) and investigated changing the fan boundary condition. Nothing so far has solved the error. I have added 2 cases for anyone to investigate. failCase --> This fails like described above. fanCase --> Similar setup (no heat source) but runs without a problem. Proving the simulation is possible. The main differences between the two cases above is that the failCase includes a airOutside region around the enclosure. Also the enclosure is created using topoSet instead of it being the entire simulation domain as in the fanCase case. If anyone could spare some time to investigate the error it would be very much appreciated. I've been stuck on this for some time now. Regards, |
Solved yet not understood
I managed to solve the problem. Don't quite understand it yet but perhaps some investigation into the fan boundary condition or the chtMultiregionFoam solver will prove insightful.
The problem is solved by removing the fan type boundary condition on fan_half0 and fan_half1 in 0/airEnclosure/p and replacing it with a cyclic one (or probably anything, they don't seem to affect the simulation). The fan_half* conditions in 0/airEnclosure/p_rgh remain the same i.e. Code:
fan_half0 Now on to refining the boundary conditions and solvers e.t.c. |
All times are GMT -4. The time now is 04:53. |