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

Plot swirl number along length of a tube

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 24, 2014, 08:57
Default Plot swirl number along length of a tube
  #1
New Member
 
Join Date: Oct 2014
Posts: 4
Rep Power: 4
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: 12,832
Rep Power: 100
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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: 4
Rep Power: 4
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: 12,832
Rep Power: 100
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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: 4
Rep Power: 4
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: 12,832
Rep Power: 100
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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: 4
Rep Power: 4
Pacca is on a distinguished road
Thank you very much! I solved my problems
Pacca 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
Procedure to plot Swirl Number in Fluent abhinav.abhi19 FLUENT 4 July 5, 2016 15:05
timeVaryingMappedFixedValue: large data mapping on complex inlet boundaries vkrastev OpenFOAM Pre-Processing 7 June 2, 2016 15:50
Nusselt number 4.36 validation in a tube in constant heat flux situation QustFelix FLUENT 6 June 18, 2015 22:09
Decomposing meshes Tobi OpenFOAM Pre-Processing 1 September 9, 2014 05:30
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14


All times are GMT -4. The time now is 12:42.