<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi ZJ,
<div class=""><br class="">
</div>
<div class="">A quick search of the archives with keyword “avg_all” will give you answer to related questions:</div>
<div class=""><a href="https://lists.mcs.anl.gov/mailman/mmsearch/nek5000-users?config=nek5000-users.htsearch&restrict=&exclude=&method=and&format=short&sort=score&words=avg_all" class="">https://lists.mcs.anl.gov/mailman/mmsearch/nek5000-users?config=nek5000-users.htsearch&restrict=&exclude=&method=and&format=short&sort=score&words=avg_all</a></div>
<div class=""><br class="">
</div>
<div class="">avg_all is a collection of time-averaged information in the avg, rms and rm2 files. The avg files has time-averaged u,v and w; rms has time-averaged u^2, v^2 and w^2; and rm2 has uv, vw, and uw. The avg_all routines is located in navier5.f in
 case you want to get more information. </div>
<div class=""><br class="">
</div>
<div class="">Typically the first step in post processing is to use the routine “auto_averager” to combine all the files output from avg_all. autoaverager takes as input the name of a file (example: fname1.list) which has a list of all the files that you want
 to combine (example: the contents of fname1.list will be: avgcasename0.f00001 avgcasename0.f00002 … Note- there should be only 1 filename per line in the fname1.list file). You can use the auto_averager routine to combine all your avgcasename0.f00* files and
 output them to a single file or do more post-processing with it. The quantities available in avg, rms and rm2 files are sufficient to get the actual urms, vrms velocities etc… Additionally, once you time-average the data using auto_averager, you can use space
 averaging routines such as z_avg etc… to average quantities in homogeneous direction of your domain.</div>
<div class=""><br class="">
</div>
<div class="">It would also help if you specify what exactly are you trying to get from these avg_all files i.e. are you looking for rms velocities or something else?</div>
<div class=""><br class="">
</div>
<div class="">Here is a snippet of my code that I have used in the past to post-process these files:</div>
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 auto_averager(fname1)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 copy(uk,vx)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 copy(vk,vy)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 copy(wk,vz)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 col2(uk,uk,lt)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 col2(vk,vk,lt)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 col2(wk,wk,lt)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 auto_averager(fname2)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 sub2(vx,uk,lt)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 sub2(vy,vk,lt)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 sub2(vz,wk,lt)</span></div>
</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">      <span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span> z_avg(vxa,vx,gs_avg_hndl,nelxy,ifld)</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">
<div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">
 z_avg(vya,vy,gs_avg_hndl,nelxy,ifld)</span></div>
<div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">     
</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> z_avg(vza,vz,gs_avg_hndl,nelxy,ifld)</span></div>
<div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">      </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(51, 187, 200);" class=""><b class="">call</b></span><span style="font-variant-ligatures: no-common-ligatures;" class="">
 outpost(vxa,vya,vza,vxa,vya,</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(205, 121, 35);" class="">'   '</span><span style="font-variant-ligatures: no-common-ligatures;" class="">)</span></div>
</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">Here fname1 has the list of all avgcasename0.f00* files and fname2 has the list of all the rmscasename0.f00* files.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Ketan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</body>
</html>