<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;">Dear Neks,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I've been looking at the subroutines for spatial average of variables in nek5000. I'm using PnPn-2 method and my domain is periodic in both X and Z directions.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I noticed that the weights for Gauss-Lobatto Legendre points are WXM1, WYM1, WZM1 and the weights for Gauss Legendre points are WXM2, WYM2, WZM2. I'm using the first set of weights for spatial average of my velocity
 field and the second set of weights for my pressure field, but I'm not sure if that's the correct way to take the spatial average of variables in certain directions??</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">When I looked at the subroutine planar_average_s in turbChannel example, aa = zz*area(i,k,1,e) + (1-zz)*area(i,k,3,e) (where zz = (1.-zgm1(j,2))/2.) is used for spatial average on r-t plane.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I'm wondering which type of weights I should use for spatial average of velocity and pressure in my case. Can I use WXM1 (or WXM2) to average the variables in X direction first and then use WZM1 (or WZM2) to average
 the variables in Z direction?</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Hope anyone can help me on this. Thank you very much in advance.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Best regards,<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
Tony</div>
</div>
</div>
</body>
</html>