CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

extract data along a line or turbo line

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2012, 05:45
Default extract data along a line or turbo line
  #1
New Member
 
Mehdi Bahador
Join Date: Oct 2011
Posts: 10
Rep Power: 14
Mehdi534 is on a distinguished road
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
Mehdi534 is offline   Reply With Quote

Old   September 19, 2012, 06:09
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   September 19, 2012, 06:55
Default
  #3
New Member
 
Mehdi Bahador
Join Date: Oct 2011
Posts: 10
Rep Power: 14
Mehdi534 is on a distinguished road
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.
Mehdi534 is offline   Reply With Quote

Old   September 19, 2012, 18:31
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 31, 2020, 08:58
Default
  #5
New Member
 
Join Date: Feb 2020
Posts: 4
Rep Power: 6
Terbulent is on a distinguished road
Quote:
Originally Posted by Mehdi534 View Post
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.
Hi, I have encountered exactly the same problem, could you share how to do it? Thank you.
Terbulent is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 21:09.