CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Automate this process (https://www.cfd-online.com/Forums/fluent/32913-automate-process.html)

Jamcam January 28, 2004 05:53

Automate this process
 
Hi all,

I have generated many .dat files with Fluent. I have also created lots of surfaces/lines/rakes across my geometry where I can display various data.

To display these data, I am going in manually, file by file, via the X-Y plot function and writing the desired data to .xy files.

Is there a way I can automate this process while naming each .xy file after the .dat file it was generated from.

Any help on this would be greatly appreciated!

Jamcam

Robert Hart January 29, 2004 09:30

Re: Automate this process
 
hmm. If it were me, I would create a simple journal that loads a .dat, and does the output.

e.g.

/file/read-data "datafile.dat" /plot/plot yes "datafile.xy" yes no no z-vel no yes no line1 ()

Then use your program of choice (e.g. perl, bash, basic, whatever) to create a big journal file that repeats this for every datafile.

There's probably a way to do it directly in scheme/lisp but I don't know how to do that.

Jamcam January 29, 2004 11:09

Re: Automate this process
 
Thanks, Robert.

I managed to get something going by recording a journal of the process once, then doing a major bit of cutting, pasting and changing filenames on the journal file. It takes a wee while, but is much quicker than the manual method!


Robert Hart January 29, 2004 12:42

Re: Automate this process
 
I guess it's all about return on investment.

What I mean is, the amount of effort worth putting into making the task easier depends on how many .dat files you had.

For 2 or 3 files, your probably as well off doing it manually, for a few more you can do it the cut&paste way, any more and you want to automate even the cut&paste.

Rob


All times are GMT -4. The time now is 13:44.