Posted Fri, 19 Oct 2007 02:05:05 GMT by Mothei Lenkopane
Hello everyone,

I have interrupted a model run to look closely at the results in a dac file.  continuing the simulation i would like to append the results to the existing dac file, i want to continue the simulation running it as a batch file.  If i cant append it directly from the batch run is there any way i can merge two dac files?

Any help appreciated


Posted Fri, 19 Oct 2007 13:34:02 GMT by Denim Umeshkumar Anajwala
Interesting question! I'm not aware of such an option. Why would you need to merge them though?

Posted Fri, 19 Oct 2007 18:52:13 GMT by Denim Umeshkumar Anajwala
If I understand the question, you have a model initially set up to simulate from time = 0 to time = 10 (for example). However, you stop it at time = 6 to take a look at results. Now, you wish to restart it so that the simulation may continue to time = 10.

Situation 1. You have only "paused" the simulation. Analysis can proceed for the current time step only. Click on "(Re-) run simulator " to restart the simulation from where you left off. The dac file will be appended.

Situation 2. You have stopped the simulation and either (A) selected Exit to Master Menu ... Postprocessor ... and opened the dac file, or (B) closed FEFLOW ... restarted FEFLOW ... Postprocessor ... and opend the dac file. Opening the dac file in the postprocessor allows you to analyze any time step completed by the model. In this case, if you wish to continue the simulation, click on "Continue Simulation". The program opens a new menu from which you can change output options, solver options, and start the simulation. The new simulation results will be appended onto the existing dac file (indeed, it appears that this cannot be changed, if the initial simulation wrote to a particular dac file, so must the continuation).

I have run into situation 2 frequently. For example, if the power goes off during a simulation. To recover, I just open the dac file, and click on "continue simulation". A very nice feature not found in the MODFLOW GUIs! Be carefull however. Stopping and restarting in this way actually writes model results for the last time step completed. This time step will probably not be a time step for which you have specified to save model results (if desired under "Saving time levels at fixed stages as edited").

Situation 3. Your model has finished to t = 10. Upon opening the dac file, you still have the option of continuing the simulation only you must specify a new final time (default appears to by a final time equal to the original file time plus the original model duration, i.e. t = 20 in my example). The results will be appended to the existing dac file (again, it cannot be changed).

I am not clear on what you mean "running it as a batch file" and this may have some bearing on my answers. However, I agree with Chris--Why would you need to merge them (outside of the FEFLOW environment). Strictly speaking, the dac file can be saved as a text-file, and through some careful editing, one could merge two dac files together, but it seems to me that there is an element of fraud involved. The merged dac file may not truely represent a valid simulation.
Posted Sun, 21 Oct 2007 06:50:12 GMT by Mothei Lenkopane
Dwaine and Chris,

stopping and starting from FEFLOW is fine i can do that.  I run the simulation in batch mode and suppress any visual output, which shorten my run times.  With the FEFLOW explorer i can view the results while the simulation is progressing.  I have had times where i felt i needed to look at the results more closely so i stop the simulation and inspect in FEFLOW main window.  I then rehash an fem file to continue from where the simulation stopped and run that file in batch mode.  So to follow your example at the end i have one dac file up to time 5 and the other from 5 to 10.  but say i want to look at my budget from 2 to 7, i then need the two files merged.  I have looked at the possibility of editing the dac files as text but i thought there might be another way.


Posted Tue, 30 Oct 2007 03:13:02 GMT by Boris Lyssenko
Hi Mothei,
unfortunately there's no other way than editing the text files - or running with the user interface.
Greetings from Hunter Valley

You must be signed in to post in this forum.