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

How to Plot Average Temperature or Other Variables of a Domain Versus Pipe n CFD-Post

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

Like Tree2Likes
  • 1 Post By Shomaz ul Haq
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2016, 03:56
Default How to Plot Avg Temperature (Other Variables) of Domain Vs Axis Length In CFD-Post
  #1
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 11
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Dear all,

Hi. Hope are well. I wanted to ask how can I make variable of temperature that gives me an average of temperature in all cross sections of a domain so that I can plot that temperature versus the axis of a pipe? I know that an expression can be used in making a scalar varaiable. I made an expression "areaAve(Temperature)@Plane X" but that only gave me average temperature at one plane. I want to know how can I plot for example inner pipe and outer pipe/annnulus average cross sectional temperatures versus axis of pipe. Basically I have found out temperature along a line versus axis of pipe. I did that by making a line but I want to know how can I extend that concept to all cross sections in a domain? Would be extremely grateful. Thanks.
ordinary likes this.

Last edited by Shomaz ul Haq; March 15, 2016 at 05:30.
Shomaz ul Haq is offline   Reply With Quote

Old   March 15, 2016, 07:21
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,771
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The only way I can think of to do this is to generate lots of cross sections. You can make this easier by scripting it using a session file in CFD-Post.
sandeep02061990 likes this.
ghorrocks is offline   Reply With Quote

Old   March 15, 2016, 07:42
Default
  #3
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 11
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Thanks a lot Glenn. What is a "session file" and "script"? and how can I script using a session file in CFD Post? Would be grateful. Thank you.
Shomaz ul Haq is offline   Reply With Quote

Old   March 16, 2016, 01:52
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,771
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have a look at the documentation for CFD-Post. It describes session files.
ghorrocks is offline   Reply With Quote

Old   March 20, 2016, 05:38
Default
  #5
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 11
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Hi. Hope all are well. Thanks a lot Glenn. I looked at the CFD-Post Session Menu in ANSYS Help. It tells how to create a new session command, start recording and stop recording, and play session command. I am confused how to generate graphs of average values of variables in a domain at different cross sections as I want to plot average variables values along the length of pipe. I don't know anything about scripting. Can somebody help? I need it urgently. Is there a tutorial online where I can learn this? Would be extremely grateful if you could help me out. Thank you.
Shomaz ul Haq is offline   Reply With Quote

Old   March 20, 2016, 07:30
Default
  #6
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 11
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Hi all. I have understood what is a script file, process of scripting, saving and recording it. Now I want to ask what is meant by "scripting a session file" as by definition scripting is the editing and running of "journal files" and how can I do that to create average values of variables in a domain at different cross sections along the length of a pipe? Would be extremely grateful if someone could help. Thank you.
Shomaz ul Haq is offline   Reply With Quote

Old   March 20, 2016, 18:55
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,771
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have a look at the power syntax (using perl). Then you can put loops, conditional statements, maths and other features in your session files.

In your case you could create a loop which generates lots of cross sections, then gets the averaged condition at each cross section and outputs it to a file.
ghorrocks is offline   Reply With Quote

Old   June 6, 2018, 12:22
Default
  #8
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 10
ordinary is on a distinguished road
Hello there,
Is there any alternative solution methods for this kind of problems?
ordinary is offline   Reply With Quote

Old   June 6, 2018, 18:43
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,771
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, you can define the sections in the mesh and do it in the solver and output the results to monitor points.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD Salary CFD Main CFD Forum 17 January 3, 2017 17:09
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
CFD post vector plot problem bharath CFX 3 February 8, 2011 17:16
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 21:10


All times are GMT -4. The time now is 19:30.