Community header

Forum

Partitioning restart file for parallel run.

Niraj Bal Tamang, modified 3 Years ago.

Partitioning restart file for parallel run.

Advanced Augur Posts: 34 Join Date: 4/26/21 Recent Posts
Hi. I ran a hydrodynamic model in Delft3DFM by partitioning the model using the Partition exporter (automatic with default settings) in the GUI. Then I ran the model and got some restart files. I tried using one of the restart files in the morphodynamic model of the same river reach but realized that i could add only one partitioned restart file at a time. Then, I ran the hydrodynamic model again without partitioning and got unpartitioned restart file. When i use it in the morphodynamic model and later partitioned it for parallel run using the GUI partition exporter, I realized that the restart file wasn't partitioned, so my model wasn't initiating. Can anyone please help me on how to work with the restart file so that i can use it for the partitioned morphodynamic model? 
Victor Chavarrias, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Famous Fortune teller Posts: 97 Join Date: 4/24/20 Recent Posts
The essence of restarting is that the same model used in create the restart files is the one to be restarted. By "the same" I mean that, for instance, the same partitioning, grid, and location of fixed weirs needs to be used. A common mistake is to repartition a model when restarting. That may cause a mismatch between grid in the partitions and data for the grid in the restart file. It is always interesting to export the partition polygon no only for visualization purposes but especially for being able to rerun the same exact simulation in a different machine. 
Niraj Bal Tamang, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Advanced Augur Posts: 34 Join Date: 4/26/21 Recent Posts
Thank you. Can you please tell me how can i generate the partition polygon? The GUI automatically did the partition when I exported the model for parallel run. I haven't used a partitioning polygon before so I am confused about using it.
Victor Chavarrias, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Famous Fortune teller Posts: 97 Join Date: 4/24/20 Recent Posts
I am not sure this option is in the GUI. See how to do it using CLI here. The flag is 
1
:genpolygon=1
Niraj Bal Tamang, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Advanced Augur Posts: 34 Join Date: 4/26/21 Recent Posts
I generated the polygon file using the above command. I have the partitioned restart files along with the partition polygon file after hydrodynamic run. But I am confused in using them in the morphodynamic model because I couldn't add all of the partitioned restart file in GUI. Do i need to add them manually in each of the partitioned file for morphodynamic model? Can you please help me how can i add those partitioned restart files and the partition polygonto the morphodynamic model? 
Victor Chavarrias, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Famous Fortune teller Posts: 97 Join Date: 4/24/20 Recent Posts
Hi, 

Once you have run a hydrodynamic simulation in parallel and you have the partition polygon and restart files, use the polygon to partition a morphodynamic simulation that calls the restart files. 

The steps are:
  1. Create a new folder for the morphodynamic simulation.
  2. Create one mdu-file.
In the mdu-file:
  1. Calls the morphodynamic component. E.g.:
1
[sediment]                                       
2
MorFile           = mor.mor                      
3
SedFile           = sed.sed                      
4
Sedimentmodelnr   = 4                            
  1. Call the partition polygon generated by the hydrodynamic simulation. E.g. 
1
[geometry]
2
PartitionFile     = partition.pol

  1. Call the restart file. E.g. 
1
[restart]  
2
RestartFile       = your_simulation_20140110_070000_rst.nc            
     
Niraj Bal Tamang, modified 3 Years ago.

RE: Partitioning restart file for parallel run.

Advanced Augur Posts: 34 Join Date: 4/26/21 Recent Posts
Thanks a lot. It's working now.