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 Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Mohamed911

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2020, 07:18
Question How to export data from 3D streamlines (separately ) ?
  #1
Member
 
Join Date: Dec 2019
Posts: 31
Rep Power: 6
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, 07:36
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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, 11:54
Default
  #3
Member
 
Join Date: Dec 2019
Posts: 31
Rep Power: 6
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
MMoataz likes this.
Mohamed911 is offline   Reply With Quote

Old   September 15, 2020, 22:07
Default
  #4
Member
 
Henrique Stel
Join Date: Apr 2009
Location: Curitiba, Brazil
Posts: 93
Rep Power: 17
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, 13:06
Default
  #5
Member
 
Join Date: Dec 2019
Posts: 31
Rep Power: 6
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


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


All times are GMT -4. The time now is 15:16.