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

extract data along a line or turbo line

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

Reply
 
LinkBack Thread Tools 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: 9
Rep Power: 5
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: 10,477
Rep Power: 83
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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: 9
Rep Power: 5
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: 10,477
Rep Power: 83
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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

Reply

Thread Tools
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 On
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 05:41
errors Fahad Main CFD Forum 0 March 23, 2004 14:20
automatic extract data in post colins CFX 0 January 14, 2004 10: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 16:20.