CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Scheme programming-read multiple data files from transient computations

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By anuarun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2018, 13:45
Default 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
anuarun is on a distinguished road
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.
renhaitao likes this.
anuarun is offline   Reply With Quote

Old   April 8, 2018, 22:47
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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)); 
)
you already have all you need in this code

Code:
ti-menu-load-string
is a scheme command, which can run ANY TUI command, so you may run fluent manually, try to load data file through tui, create monitors through tui
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))
DO NOT USE ;

best regards
AlexanderZ is offline   Reply With Quote

Old   April 10, 2018, 12:43
Default
  #3
New Member
 
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9
anuarun is on a distinguished road
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
anuarun is offline   Reply With Quote

Old   March 5, 2021, 21:27
Default
  #4
New Member
 
renhaitao
Join Date: Mar 2021
Posts: 2
Rep Power: 0
renhaitao is on a distinguished road
Excuse me, can you tell me how you operate data files through journal or scheme ?Thank you so much!
renhaitao is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:48.