|
[Sponsors] |
September 19, 2012, 05:45 |
extract data along a line or turbo line
|
#1 |
New Member
Mehdi Bahador
Join Date: Oct 2011
Posts: 10
Rep Power: 14 |
Hello,
I need to write a script to extract data anlong a defined line in CFX post progrom, but don't know the command or specific expression for data extract in sampled points, anybody know about that? Regards, Mehdi |
|
September 19, 2012, 06:09 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143 |
No need for a script. Make a line object with the sampling points you want. Then export the line object. And if you are looking for the session file command for an action the easiest way is to record a session file where you do the action in the GUI, then look at the session file.
|
|
September 19, 2012, 06:55 |
|
#3 |
New Member
Mehdi Bahador
Join Date: Oct 2011
Posts: 10
Rep Power: 14 |
Thanks. Yes it works but when we export the data by this way it is saved in a file, I need to to generate several turbo lines and then extract the pressure data along each line and put them in a vetor for later calculations, I need a command in my script to obtain pressure data in each sample point (on the turbo line) and then put it in a vector.
|
|
September 19, 2012, 18:31 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143 |
My previous post explained how to generate session files to get the commands.
You could also do a python (or perl or any language you like) script which reads the export file and reassembles the data any way you wish. |
|
May 31, 2020, 08:58 |
|
#5 | |
New Member
Join Date: Feb 2020
Posts: 4
Rep Power: 6 |
Quote:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 04:43 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 04:41 |
errors | Fahad | Main CFD Forum | 0 | March 23, 2004 13:20 |
automatic extract data in post | colins | CFX | 0 | January 14, 2004 09:47 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 14, 2003 23:19 |