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

How to export data from 3D streamlines (separately ) ?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2020, 06:18
Question How to export data from 3D streamlines (separately ) ?
  #1
New Member
 
Join Date: Dec 2019
Posts: 7
Rep Power: 3
Mohamed911 is on a distinguished road
we are simulating a pump using ANSYS CFX ...
We need to generate streamlines, starting at center of each element on the inlet and export the data out. Therefore, if we have n elements on the inlet, n number of streamlines need to be generated. Then, we need to trace each streamline separately and export the relevant information (i.e, pressure, velocity, or any other user defined variable) out for further analysis.
We already created the streamlines at the center of each cell on the inlet in CFD-Post. Then, we exported the streamlines information out as .csv file. However, when we open the file in excel, it is impossible to see which points (nodes) are related to which streamline. We need to be able to distinguish the streamlines from each other.
In another word, we need an excel file, which has a format similar to the following:
Streamline 1
x y z variable1 variable 2 ...... variable m
(number of rows here depends on the number of nodes forming this particular streamline)
Streamline 2
x y z variable1 variable 2 ...... variable m
(number of rows here depends on the number of nodes forming this particular streamline)
.
.
.
.
up to the n-th streamline.
Mohamed911 is offline   Reply With Quote

Old   September 15, 2020, 06:36
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,643
Rep Power: 130
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
On the streamline object, under the object tab there is an option "unique". Hopefully you can include this variable in the csv file you export because then it will be the streamline id number.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 15, 2020, 10:54
Default
  #3
New Member
 
Join Date: Dec 2019
Posts: 7
Rep Power: 3
Mohamed911 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
On the streamline object, under the object tab there is an option "unique". Hopefully you can include this variable in the csv file you export because then it will be the streamline id number.
thank you for your suggestion ..
it's not possible to include the option unique when exporting streamlines data but I found that it's possible to include the streamline's number .. that exported data might be messy but it's not a problem to sort them based on the streamline's number
Mohamed911 is offline   Reply With Quote

Old   September 15, 2020, 21:07
Default
  #4
Member
 
Henrique Stel
Join Date: Apr 2009
Location: Curitiba, Brazil
Posts: 79
Rep Power: 13
Stel is on a distinguished road
Quote:
Originally Posted by Mohamed911 View Post
thank you for your suggestion ..
it's not possible to include the option unique when exporting streamlines data but I found that it's possible to include the streamline's number .. that exported data might be messy but it's not a problem to sort them based on the streamline's number
This is the easiest workaround I'm aware of. But certainly you can go fancier using CCL programming (Macros) with perl language. You can find some examples on the internet.
Stel is offline   Reply With Quote

Old   September 16, 2020, 12:06
Default
  #5
New Member
 
Join Date: Dec 2019
Posts: 7
Rep Power: 3
Mohamed911 is on a distinguished road
Quote:
Originally Posted by Stel View Post
This is the easiest workaround I'm aware of. But certainly you can go fancier using CCL programming (Macros) with perl language. You can find some examples on the internet.
I never worked with that ... I guess I'll try try it

Thank you
Mohamed911 is offline   Reply With Quote

Reply

Tags
cfx, data export, streamlines

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
Data Export in Fluent during calculation Abbasi_Maaz FLUENT 2 March 5, 2021 09:55
[General] How to export space coordinates and scalar data on a slice? milan.senar ParaView 0 February 26, 2019 18:05
Export data in text file Eferal FLUENT 5 April 13, 2018 10:33
CFD Post Data Export Automation hcisby CFX 1 December 23, 2017 17:41
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 04:44.