|
[Sponsors] |
October 24, 2014, 09:57 |
Plot swirl number along length of a tube
|
#1 |
New Member
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
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) 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 |
|
October 26, 2014, 06:58 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
October 26, 2014, 07:24 |
|
#3 |
New Member
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
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? |
|
October 26, 2014, 07:28 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
October 26, 2014, 07:37 |
|
#5 |
New Member
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
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! |
|
October 26, 2014, 17:20 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
October 27, 2014, 15:42 |
|
#7 |
New Member
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
Thank you very much! I solved my problems
|
|
|
|
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 |