Hello Edscott,

to restart the simulation at a given time with a different set of parameters, you first need to write restart files with the simulation using the "first parameter set". Then, you should be able to restart the simulation from any of the previously produced restart (Name-"some time".drs) files. To do so, add TimeManager.Restart = "some time" to your parameters, where "some time" can be any of the times a restart files have been written.

To restart the simulation, just start it as a regular simulation, but with the added "TimeManager.Restart = some time" option in the input file or as manual parameter. Of course, you can also change other parameters (not just TimeManager.Restart) and restart with a "second parameter set", either by editing the original input file or by creating a second. However, for some parameters, restarting will not have any effect, e.g. initial values, or might be unnecessary, e.g. for boundary condition values, which can be easily made time dependent without the need for manual restarting.

Best regards,

Johannes

On 11/09/2017 12:00 AM, Ed Scott Wilson Garcia wrote:
Hello all,

    On a problem derived from the 2pnc model, if I set shouldWriteRestartFile() to 
"true",  would it be possible to restart a simulation from a given time step 
and read a different set of parameters from a specified input file? If so, how would we 
go about doing it?

   Any pointers on the subject would be greatly appreciated.

Kind regards,

Edscott
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

--
*******************************************************

Johannes Hommel

Lehrstuhl für Hydromechanik und Hydrosystemmodellierung (LH2)
Institut für Wasser- und Umweltsystemmodellierung (IWS), Universität Stuttgart
www.hydrosys.uni-stuttgart.de
email: [email protected]
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

Department of Hydromechanics and Modelling of Hydrosystems (LH2)
Institute for Modelling Hydraulic and Environmental Systems (IWS), University 
of Stuttgart
www.hydrosys.uni-stuttgart.de
email: [email protected]
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to