Rereading a Data File

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

 

Submitted by Joe on Wed, 10/27/2010 - 22:35 

 

I have a compound block that reads a data file for 1440 seconds (the current length of the simulation). I now want to make the simulation 2880 seconds. This means reading the same data file twice over the course of the simulation. I would like to do something like 'auto restart' for the compound block but I didn't see that option in 'compound properties'. What is the best way to have the compound block reread the data for the second half of the simulation?

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by Anders89 on Wed, 10/27/2010 - 22:43.

    The easiest way to do this is to use a map block instead of an import block with your data file and feed the map block with a sawtooth block (period=1440 and amplitude=1440) as input. This will cause your data to be rescanned every 1440 seconds.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by pcavanagh on Fri, 10/29/2010 - 00:57.

    I recently did this by simply copying and pasting a second set of data to the end of the file.