[Nek5000-users] Spatial average of velocity and pressure
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Mon Feb 16 11:44:59 CST 2015
Dear Neks,
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.
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??
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.
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?
Hope anyone can help me on this. Thank you very much in advance.
Best regards,
Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20150216/1723676a/attachment.html>
More information about the Nek5000-users
mailing list