CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

patchAverage does not work

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 3 Post By piu58
  • 6 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2017, 20:30
Default patchAverage does not work
  #1
New Member
 
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10
HectorLee is on a distinguished road
Hello, everyone~
After running a simulation, I tried to use 'patchAverage' to calculate the average value of scalar T at the outlet (outlet is on the right side of the domain. The type is patch and the value is zeroGradient for T). However, after inputting the command: patchAverage T right, I always got the text:
patchAverage has been superseded by the postProcess utility:
postProcess -func 'patchAverage(name=inlet,p)'

Then nothing happened......Is there anyone knowing why I got this text and how to fix it?

Thanks very much
HectorLee is offline   Reply With Quote

Old   May 24, 2017, 01:14
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
In newer versions of OF some post processing tools are combined in the postProcess utility. The message gives you how to use it in your case.
Tobi, HectorLee and reverseila like this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 24, 2017, 05:05
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
@Pi Lee, please read the message you marked bold. As Uwe already told, the patchAverage was replaced or put into the postProcess utility to make maintenance easier and also extensions. If you would just investigate the time writing that tread in reading the message you would probably found the solution yourself. I have no idea if there is any improvement to the error message. However, you made my day because the solution is already there (which you marked bold):

Code:
postProcess -func 'patchAverage(name=inlet,p)'
in your case it is

Code:
postProcess -func 'patchAverage(name=outlet,T)'
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 24, 2017, 06:49
Default
  #4
New Member
 
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10
HectorLee is on a distinguished road
Thanks very much, Uwe. Although I got errors at the beginning of using 'postProcess -func', now it works. The correct way is "postProcess -func 'patchAverage(name='right', T)' "
HectorLee is offline   Reply With Quote

Old   May 24, 2017, 06:51
Default
  #5
New Member
 
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10
HectorLee is on a distinguished road
Thanks very much for your explanation, Tobi Finally it works. I input the command: postProcess -func 'patchAverage(name='right', T)'.
HectorLee 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
RP_Set_Integer does not work in parallel 86lolo Fluent UDF and Scheme Programming 2 July 3, 2014 11:37
Does CX_Interpret_String work in parallel? 86lolo Fluent UDF and Scheme Programming 2 June 30, 2014 04:36
Companies that lease software & hardware for cloud-based work? Catthan ANSYS 0 June 18, 2014 10:53
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 12:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 21:03


All times are GMT -4. The time now is 17:34.