Error message decoding
Hi all,
I often come accross those nice error message (like below) our dear OpenFoam send me when solver crashes, but I'm never able to "decode" them. Can someone help me to understand what OF is trying to tell me? Code:
Phase-1 volume fraction = 0.923319 Min(alpha.water) = -5.8983e-07 Max(alpha.water) = 1.05862 Thank you for your help Regards |
Hi there;
I guess there is something going on wrong within your code. Basically if ur dividing by 0 anywhere or so. the best way is to go step by step in such a case. Change small portions of code from the original code and re run at every step. So you can know where the error is. But I think it would be nice if you could also mention the solver you are using and case for others to understand. I am not familiar with other debuggers but I guess they can also help you out such as GCC etc. |
Hi!
Thank you for your help. My case study is flow around a ship hull. The solver I'm using is home-made. I've actually mixed together interDyMFoam and LTSInterFoam in order to find the dynamic equilibrium of a ship at a certain speed. I just started form interDyMFoam and copy-paste part of the code of LTSInterFOAM. This seems to work pretty well, motion looks nice and smooth and forces on hull doesn't look crazy. However initial residual of pressure are always 1 (I think it's because the mesh is changinging at every iteration). I can send you the code if interested. |
Hi jojosaxo,
I do not know if it will be of any help but I am doing a simulation with a dynamic mesh (my mesh also changes at each iterations) and my initial residual of pressure is not always 1 ! I am not a professional of OpenFoam by any mean, I am just stating what I see from my simulations. On the other hand, the kind of messages you are stating in your initial post did happen to me all the time since I began to use OpenFoam. What I have learned is that usually I do not need to decode those crash messages because they are not the reason the crash happen. I usually look at the few iterations BEFORE the crash, and really often I can see that something went wrong before the actual crash. Of course, the behaviour propagates through some iterations until the solver actually crashes. Can you print the messages from the iterations before the crash one ? |
Hi jojosaxo,
what is about your alpha.water? Could your problem be a mathematical error in cause of a strange alpha.water? Quote:
I think OF just wanted to say that. regards Alex |
Quote:
can you send me the code. very interesting |
All times are GMT -4. The time now is 00:23. |