Search the Community
Showing results for tags 'data file'.
Found 3 results
Hello, first of all im new to Hypermesh and all the scripting. I made a tcl script, which reads a file (like .txt .UFF) and creates nodes from coordinates mentioned in the file. Everything works perfect in the tclsh-environment, it looks like this: % set fp [open "test.UFF" r] file5e9730 % set file_data [read $fp] 1 1 1 1 10 0 0 1 1 1 1 0 10 0 1 1 1 1 0 0 10 I skipped the rest of the code because I think its not necessary. If I execute the script in Hypermesh I get the following error: couldn't open "test.UFF": no such file or directory If I dont read the data file and define the matrix shown above manually, everything is good. So why doesnt Hypermesh find my file? Its definitely in the folder where I start the session from. I hope my problem is clear and someone can help me.
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?