CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Tecplot (https://www.cfd-online.com/Forums/tecplot/)
-   -   How to assign solutiontime to a variable in Tec360 Macro (https://www.cfd-online.com/Forums/tecplot/184332-how-assign-solutiontime-variable-tec360-macro.html)

mg.mithun February 28, 2017 07:52

How to assign solutiontime to a variable in Tec360 Macro
 
Hi,

I am writing a macro to load multiple fluent case and data using a loop function. My intention is to make some contour images and export it as png and later create animation with these images. (I cannot use multiple case and data option because I am dealing with large size files).

My question is, how I can save the images with name followed by the time extracted using "&(solutiontime)"?

eg: Suppose if &(solutiontime) gives 0.01, I need to save my image as Image_0.01.png

Myth

wsfowler March 6, 2017 15:34

I have a few thoughts for you:

1) Try using |SOLUTIONTIME|, which is a macro variable. You should be able to use this when constructing the file name string.

2) Check out our new Python API (http://www.tecplot.com/products/pytecplot/), this will give you a lot more flexibility than the macro language.

3) My team is currently working on performance & RAM improvements to our Fluent reader. These improvements are for a narrow set of use cases, but transient solutions are one that may be helped with these changes. Let me know if you're interested in testing these changes before our next release.

Thanks,
Scott Fowler
Tecplot Product Manager


All times are GMT -4. The time now is 07:19.