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

Plot swirl number along length of a tube

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2014, 09:57
Default Plot swirl number along length of a tube
  #1
New Member
 
Join Date: Oct 2014
Posts: 12
Rep Power: 12
Pacca is on a distinguished road
Hello everybody,

I'm doing some simulations with CFX of a swirling flow in a tube. After obtaining a solution, i defined in CFD-Post the swirl number as:
Code:
areaInt(Density*(X^2+Y^2)*sqrt(Velocity w^2)*sqrt((Velocity u^2)+(Velocity v^2)))@Plane 2/(maxVal(sqrt(X^2+Y^2))@Plane 2*areaInt(Density*(sqrt(X^2+Y^2))*Velocity w^2)@Plane 2)
where Plane 2 is a plane perpendicular to the axis direction Z
Now I'm trying to plot the variation of this variable along the length of the tube, creating a user defined variable SN. But I don't know how to plot it using different planes from Plane 2, because now if i plot SN I have only the same value along the length.
I searched some tutorial or doc but I can't understand how to do this...
I hope that someone can help me
Pacca is offline   Reply With Quote

Old   October 26, 2014, 06:58
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
You will probably have to export this from CFX (using file/export and specifying your line as the object and your variable as the output variable) and plot it in something else like excel, matlab, python or whatever you flavour of graphing software is.
ghorrocks is offline   Reply With Quote

Old   October 26, 2014, 07:24
Default
  #3
New Member
 
Join Date: Oct 2014
Posts: 12
Rep Power: 12
Pacca is on a distinguished road
Thank you for your answer!
The problem is that the variable SN is defined with the expression i wrote in the first post. In this expression there is the geometrical place @Plane 2, and so also exporting the data gives me only the value at that plane. Instead I want the plane to move along the Z axis to calculate the different values of SN...
I have to create one plane where evaluate the SN for every point of my plot or there is a way to do this automatically?
Pacca is offline   Reply With Quote

Old   October 26, 2014, 07:28
Default
  #4
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
I fear you will have to create a plane at each location. Use a session file to make this easier. You get bonus points if you use a perl script looping structure. I only have a small brain which avoids perl whenever possible so I would just generate a text file which contains the full session file.
ghorrocks is offline   Reply With Quote

Old   October 26, 2014, 07:37
Default
  #5
New Member
 
Join Date: Oct 2014
Posts: 12
Rep Power: 12
Pacca is on a distinguished road
I have to admit that I'm new with this kind of stuff, I don't know how to make session files...do you now where I can find some help documents on this topic? Or do you know how to make this tipe of sesion file?
Again, thank you very much!
Pacca is offline   Reply With Quote

Old   October 26, 2014, 17:20
Default
  #6
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
The best way to learn is to open up CFD-Post, and start recording a session file from the top menu. Do the operations you want to repeat and have a look at the text file it generates. Then edit the text file to do what you want and replay it the generate your data.
ghorrocks is offline   Reply With Quote

Old   October 27, 2014, 15:42
Default
  #7
New Member
 
Join Date: Oct 2014
Posts: 12
Rep Power: 12
Pacca is on a distinguished road
Thank you very much! I solved my problems
Pacca is offline   Reply With Quote

Reply


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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
Procedure to plot Swirl Number in Fluent abhinav.abhi19 FLUENT 4 July 5, 2016 16:05
timeVaryingMappedFixedValue: large data mapping on complex inlet boundaries vkrastev OpenFOAM Pre-Processing 7 June 2, 2016 16:50
Nusselt number 4.36 validation in a tube in constant heat flux situation QustFelix FLUENT 6 June 18, 2015 23:09
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14


All times are GMT -4. The time now is 14:51.