|
[Sponsors] | |||||
Script to Read and Export all the data in all the trn files |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Dinusha
Join Date: Feb 2020
Posts: 4
Rep Power: 7 ![]() |
Hi,
How can I read all the variables and data in *.trn files (transient simulation) and export to csv/excel file using a script? In addition, I also replicate the mathematical I use for one trn file to all the other trn files using a script (or using a macro) Thanks |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 729
Rep Power: 14 ![]() |
You can create a state or session file in cfd post. To get the correct syntax, record a session where you manually export some values to csv. This will show you the commands you need. Then, I would recommend going to python or whatever language and write a script that recreates the former code but for all the transient files you want. Once you got that, just play the session in post.
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
Dinusha
Join Date: Feb 2020
Posts: 4
Rep Power: 7 ![]() |
Thanks a lot, I will try this
|
|
|
|
|
|
|
|
|
#4 |
|
New Member
Dinusha
Join Date: Feb 2020
Posts: 4
Rep Power: 7 ![]() |
Any idea to make that applicable to different projects other than the one we create/run the session? (like if I want to use the same export script to export the trn files of different file)
Thanks |
|
|
|
|
|
|
|
|
#5 |
|
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,016
Rep Power: 146 ![]() ![]() ![]() ![]() |
Do it using CFX stand-alone (ie not inside workbench). In fact just about all serious users of CFX do it stand alone as CFX runs quicker and with more control that way - your question is one example of why.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 08:30 |
| export data at nodes | Meenu | FLUENT | 1 | December 30, 2011 02:24 |
| Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
| read data files and export to avs file | Santhosh | FLUENT | 0 | June 15, 2006 07:46 |
| [making animations] fclose fails to close files? | Mika | FLUENT | 0 | March 30, 2001 09:19 |