Closed ymg2007 closed 4 years ago
Quick answer: The first thing you can look for in the text is "sigFpe", which you can find in "ZN4Foam6sigFpe13sigFpeHandlerEi". This means that the Signal for Floating Point Exception (sigFPE) was triggered, which usually refers to a division by zero or square root of -1.
The reason is found a few lines below:
ZNK4Foam10GAMGSolver5scaleERNS_5FieldIdEES3_RKNS_9lduMatrixERKNS_10FieldFieldIS1_dEERKNS_
it's a bit cryptic, but it mentions GAMGSolver::scale
, namely it occurred while solving a matrix equation with GAMG.ZNK4Foam10GAMGSolver6VcycleERKNS_7PtrListINS_9lduMatrix8smootherEEERNS_5FieldIdEERKS8_S9_
this also points to GAMG, this time on GAMGSolver::Vcycle
.Since the output tells us that it was able to solve the U equation before crashing, and simpleFoam
was used, that means that it crashed the pressure equation could not be solved properly.
Now, the problem is that since this is simpleFoam
, I don't remember of any specific situations that can lead to a division by zero or some other mathematical error. So perhaps the time steps 1 and 2 would give us a bit more insight into the past history of the simulation.
My guess is that something is incorrectly defined in the boundary conditions for the p
(pressure) field, such as specifying 101325 in a boundary condition and 0 on all other boundaries and internal field. That would result in a massive pressure shock-wave that could not be properly solved for, hence the crash.
If you can provide the fields p
and U
, it would make it easier to diagnose the issue.
The other possibility is if the mesh is damaged. Run this command:
checkMesh -allGeometry -allTopology -constant
It will tell you if there are any cell volumes with negative or size 0, which would also justify this situation.
Hi,wyldckat Sorry to reply you late. Here is the p and u file. p+U.zip After run check, there are 39 cells with negative volume.
The negative cells are likely the reason for the crash.
Furthermore, a few lines above, the Max aspect ratio is indicating 2.55e+101, which is a very crazy value and also likely responsible for the crash.
My guess is that there is something wrong with the CAD or the resulting STL file, that is used to mesh with snappyHexMesh
or perhaps cfMesh
. For example, duplicate triangles in the STL file can result in confusion on which side is which.
I'll close this report, since the error is clearly due to the mesh.
Hi guys, I am doing cfd simulation using blueCFD 2017-2. Yesterday simpleFoam ran with error suddenly. I uninstalled and installed blueCFD again. The error still here. Please tell me how to fix it