Rereading a Data File

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

 

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?

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.