|
[Sponsors] |
Scheme programming-read multiple data files from transient computations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2018, 13:45 |
Scheme programming-read multiple data files from transient computations
|
#1 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
Hello Friends,
I have some 1000+ data files and a few case files generated after a transient calculation. I saved the case files only when it got modified. Therefore, the normal scheme command (Do ((x 1 (+ x 1))) ((> x 1000)) (ti-menu-load-string (format #f "file read-case-data C:\Users\Anuarun\File\Case17_Trial2-1-0000~a.cas.gz o" x)); ) is not working in my case. I want to read each data file, create an iso surface of vapour volume fraction and then plot/write the value of pressure on the iso surface on to a .txt file for all cases. Is there a way to do this? I am quite familiar with journal files, but have never worked with scheme programming. Any help is greatly appreciated. |
|
April 8, 2018, 22:47 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
(Do ((x 1 (+ x 1))) ((> x 1000)) (ti-menu-load-string (format #f "file read-case-data C:\Users\Anuarun\File\Case17_Trial2-1-0000~a.cas.gz o" x)); ) Code:
ti-menu-load-string Than put all of than into scheme for instance, to read data, noct case you need to run read-data tui command in scheme it will be Code:
(ti-menu-load-string (format #f "file read-data C:\Users\Anuarun\File\Case17_Trial2-1-0000~a.dat o" x)) best regards |
|
April 10, 2018, 12:43 |
|
#3 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
Thank you AlexanderZ.
Since it was very urgent, I wrote a python pgm to call a .jou repeatedly to get the work done. Anyway, I will try this way and get back to you. Thank you so much! Regards, Anu |
|
March 5, 2021, 21:27 |
|
#4 |
New Member
renhaitao
Join Date: Mar 2021
Posts: 2
Rep Power: 0 |
Excuse me, can you tell me how you operate data files through journal or scheme ?Thank you so much!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to read transient velocity profile data as inlet condition at each time step | hemmt | FLUENT | 12 | July 9, 2018 03:26 |
Exporting data of transient simulation DURING a simulation, at user locations ? | Milan2013 | CFX | 0 | April 18, 2014 04:47 |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 14:39 |
Transient solution multiple CGNS files in Tecplot | Ramses Galaz | Tecplot | 3 | October 17, 2006 11:43 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |