CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   extract data along a line or turbo line (

Mehdi534 September 19, 2012 05:45

extract data along a line or turbo line
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

ghorrocks September 19, 2012 06:09

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.

Mehdi534 September 19, 2012 06:55

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.

ghorrocks September 19, 2012 18:31

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.

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