Extremely Long CFAST Runs #2118
Replies: 2 comments 9 replies
-
I'm also experiencing the same issue where CFAST runs take extremely long times with very small time steps for under-ventilated cases (example: a simulation that run for a entire month and never end slow.txt) Currently, it seems there is no available solution to speed up the process other than changing some input values to be outside of under-ventilated cases. 🙁 Previously, I was using version 7.1.2 of CFAST and did not encounter this issue. Perhaps running your specific case with this version might help ? However, the problem with that old version is that I encountered another error that caused the CFAST simulation to stop for some random inputs values. This issue has since been resolved as of #669 . I personally tried modifying the source code to manually fix the time step dt, so it does not go below a threshold value. Unfortunately, I encountered the same issue as with CFAST version 7.1.2. From what I understand, the simulation runs through a while loop until the final time you indicate is reached. Line 366 in e50b502 I might be wrong, but inside this while loop, various checks and computation are made. One important check determines which is the value of the next time step to compute inside cfast/Source/CFAST/numerics.f90 Line 44 in e50b502 The error I encountered when putting a treshold to the next time step to compute is this one : cfast/Source/CFAST/numerics.f90 Lines 611 to 613 in e50b502 I don't know if there is a way to bypass this verification while not violating the model output. I aslo use gprof to see which routine takes the most time to runs and I got this for a long run (that I killed before it finished).
|
Beta Was this translation helpful? Give feedback.
-
I would be interested in seeing the gprof analysis for a number of runs. Ones that run fast and ones your are having problems with. There are several issues to be aware or when you do this. One is the amount of time the code spends calculating any particular specific phenomena is directly impacted by the scenario specified. Your analysis suggests that the case you ran has a lot of doors and windows, and possible leaks. Because CFAST is solving an ODE my expectation is that the ratio of different phenomena called will be related to the case. I would be interested to see my hypothesis proved. Our experience is that oxygen limiting of the fire is the biggest culprit of slow runs. Combustion is a very locally specific problem and it is difficult for a model using broad generalizations to solve. We are working on this but I don't want to make any promises or implications. At the moment be aware it is a known limitation and we have not given up on dealing with it. Also, I would suggest that you not try to set the DT. The solver is making the DT that small because it cannot converge to an answer with a larger DT. It increases the DT when it can. There MIGHT be times when the DT can or should be larger than the solver uses but if those situations exist they are going to be for very specific conditions and not a general case. |
Beta Was this translation helpful? Give feedback.
-
I would like to check the opinions on when CFAST runs take extremely long time, i.e., extremely small time steps in the magnitude of 10^(-7) to 10^(-9).
I am encountering such cases in two situations:
Are there any documentations or stated limitations/guidelines that would help understanding this behavior in CFAST in both cases?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions