# Plot swirl number along length of a tube

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

 October 24, 2014, 08:57 Plot swirl number along length of a tube #1 New Member   Join Date: Oct 2014 Posts: 4 Rep Power: 3 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

 October 26, 2014, 06:58 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 11,295 Rep Power: 88 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: 4 Rep Power: 3 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: 11,295 Rep Power: 88 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: 4 Rep Power: 3 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: 11,295 Rep Power: 88 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: 4 Rep Power: 3 Thank you very much! I solved my problems

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post QustFelix FLUENT 6 June 18, 2015 22:09 vkrastev OpenFOAM Pre-Processing 5 May 29, 2015 11:30 abhinav.abhi19 FLUENT 1 February 23, 2015 05:20 Tobi OpenFOAM Pre-Processing 1 September 9, 2014 05:30 shipman OpenFOAM 3 July 24, 2014 08:14

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