How to re-run model automatically with different boundary conditions (time series)?

Tom_abc
Tom_abc Altair Community Member
edited August 2022 in Community Q&A

Hi all,

I want to run the model for many times, and each time a different boudary condition is applied. Here I attached a zip file for an example. In the example, I want to run the model using two differnt time series.

The first column of the "differentTimeSeries.txt" is the time for each value (e.g., Day 0, Day 1, Day 2,...). Then, at the first run, the 2nd column will be used as the boundary condition; at the second run, it will be the 3rd column. Please see the figure below.

image

Is there a way to make Embed read different boundary conditions (time series) automatically at each time?

Thanks!

Answers

  • Tom_abc
    Tom_abc Altair Community Member
    edited August 2022

    Hi everyone, I found one solution for my issue. We can treat the boundary condition txt file the other way: split each run into individual txt files, and then use "path aliases to reference files" and the $runCount variable to make the import file change at each run. The key step of the solution is shown below:

    image

    Please see the attached file for an example.

  • Girish Karamadi_21849
    Girish Karamadi_21849 New Altair Community Member
    edited August 2022

    Nice. That is the good solution. Does it resolve your issue??

     

    Regards,

    Girish

  • Tom_abc
    Tom_abc Altair Community Member
    edited August 2022

    Nice. That is the good solution. Does it resolve your issue??

     

    Regards,

    Girish

    Hi Girish, yes it solved my issue :)