|
[Sponsors] |
July 3, 2004, 12:49 |
TECPLOT 10 macro problem
|
#1 |
Guest
Posts: n/a
|
I'm trying to have my Tecplot macro read in a .plt file named file_n.plt, where n is an integer, format it accordingly and then save it as file_n.tif. My macro successfully makes my .tif files how I want them, the only problem is that it takes in the files in the order that you would see them if you did an ls in a terminal window because I have more than 10 files, i.e. it reads them in as 1,10,11,12, etc. How do I get around this? I've been told to number my files with 2 numbers so they're numbered like file_00.plt, file_01.plt, etc. etc which makes sense and I tried that but then I get an error saying "file_1.plt" not found because when you put in |LOOP| it starts at 1 and I had 2 digits instead of 1 in my .plt file names. Are there any kinds of wildcards in the Tecplot macro language, because if there are using 2 digits in my .plt file names for 1 through 9 would solve the problem. I looked in the User and Reference Manuals and wasn't able to find anything with regards to wildcards.
|
|
July 5, 2004, 01:45 |
Re: TECPLOT 10 macro problem
|
#2 |
Guest
Posts: n/a
|
You could try to format the tecplot variable. E.g. |LOOP%.2d|
Hope this helps. Best regards Markus |
|
July 5, 2004, 01:57 |
Re: TECPLOT 10 macro problem
|
#3 |
Guest
Posts: n/a
|
That seems like a good place to start, what does your formatting that you posted do to the LOOP variable?
Thanks, Matt |
|
July 5, 2004, 02:00 |
Re: TECPLOT 10 macro problem
|
#4 |
Guest
Posts: n/a
|
It should print 1 as 01.
|
|
July 5, 2004, 02:11 |
Re: TECPLOT 10 macro problem
|
#5 |
Guest
Posts: n/a
|
Cool, I'll try that. Where did you find this? Am I just not reading the User Manual well enough? Are there any sorts of wildcards in Tecplot macro language?
Thanks. |
|
July 5, 2004, 02:31 |
Re: TECPLOT 10 macro problem
|
#6 |
Guest
Posts: n/a
|
You should find it in the reference manual. I don't know whether the Tecplot macro language supports wildcards.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem manipulating Data in Tecplot after foamToTecplot Conversion | titio | OpenFOAM Post-Processing | 2 | June 10, 2010 05:23 |
Problem with loop in CFX-Post macro | chris_101 | CFX | 3 | March 26, 2009 14:18 |
Tecplot problem | nzy102 | OpenFOAM Post-Processing | 1 | April 16, 2008 06:26 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 13:37 |
Problem with Tecplot 9.2 !!! | Boris | FLUENT | 0 | March 6, 2003 23:08 |