I'm currently facing a scenario. I have already created a .bat file for coupling EDEM with other multibody dynamics software, successfully registered it with HyperStudy, passed the model test, and completed a full DOE analysis. Now I would like to upgrade my batch processing script, but I'm not sure if this can be achieved within HyperStudy. I have no clue where to start, so I'd like to hear some advice from experts.
My current idea is to add parallel computing. I'm encountering two issues at the moment. The first issue is shown in Figure 1: for example, I want to run four coupled simulations simultaneously, with each case using a different GPU. After these four computations are completed, the subsequent tasks should continue to use the same four GPUs that were just used. I have asked the EDEM and HyperStudy connector team about this before, and it seems that this cannot be implemented either – this is a rather tricky problem.
The second issue is shown in Figure 2. Suppose I am running two coupled cases simultaneously. Normally, the EDEM instance in the M1 folder should couple with the corresponding software in the M1 folder. However, during multiple concurrent runs, it feels like the EDEM in the RUN001 folder ends up coupling with the other software in the RUN002 folder instead. I can manually resolve this by starting only one computation at a time and waiting until they are coupled before starting the next one. However, I'm concerned that sometimes they may finish at the same time, causing the subsequent cases to start simultaneously again, which could lead to coupling errors.
Here is the EDEM code from my batch script. I'm completely stuck and have no idea where to go from here.Here, %1 denotes the .DEM file, while %2 denotes the .dfg file.