CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Tecplot

TECPLOT 10 macro problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2004, 11:49
Default TECPLOT 10 macro problem
  #1
Matthew Morse
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.
  Reply With Quote

Old   July 5, 2004, 00:45
Default Re: TECPLOT 10 macro problem
  #2
Markus Lummer
Guest
 
Posts: n/a
You could try to format the tecplot variable. E.g. |LOOP%.2d|

Hope this helps.

Best regards

Markus
  Reply With Quote

Old   July 5, 2004, 00:57
Default Re: TECPLOT 10 macro problem
  #3
Matthew Morse
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
  Reply With Quote

Old   July 5, 2004, 01:00
Default Re: TECPLOT 10 macro problem
  #4
Markus Lummer
Guest
 
Posts: n/a
It should print 1 as 01.
  Reply With Quote

Old   July 5, 2004, 01:11
Default Re: TECPLOT 10 macro problem
  #5
Matthew Morse
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.
  Reply With Quote

Old   July 5, 2004, 01:31
Default Re: TECPLOT 10 macro problem
  #6
Markus Lummer
Guest
 
Posts: n/a
You should find it in the reference manual. I don't know whether the Tecplot macro language supports wildcards.
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 04: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 05:26
Macro problem cfddummy CD-adapco 1 April 9, 2007 12:37
Problem with Tecplot 9.2 !!! Boris FLUENT 0 March 6, 2003 23:08


All times are GMT -4. The time now is 16:15.