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 |
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. |
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! |
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. |