real u_mean
ntot = nx1*ny1*nz1*nelv
u_mean = glsc2(vx1,bm1,ntot)/volvm1
Hi YuHsiang,Thanks a lot for your swift response. Perhaps a two-part question for clarification on my end, if you don't mind1. I assume that the post-processing mode works identically for serial and parallel Nek5000 runs in the post-processing mode?2. On a similar note, but with a slightly different application. I want to calculate the wall shear stress on a non-flat wall. In the past, I have used the subroutinetorque_calc(scale,x0,ifdout,iftout)
, for a flat-walled channel flow.
But now, I would like to use something similar if that already exists for a non-flat wall. As I understand it, torque_calc takes in x0 as a reference point, but it's unclear to me if this gives the right wall shear for non-flat walls.Thanks again for your help!
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nek5000/933a4909-87a6-4a94-b18b-cb4de7b8aafbn%40googlegroups.com.
--Regards,Akshay Patil
Hi Yu-Hsiang,Thanks a lot for clarifying this. I tried your suggested subroutines and they work beautifully, thanks a lot for the insight. At first adding the required post-processing in the `post_reader_work` file failed to compile, potentially because `vx,vy,vz,pr` are not visible outside the scope (correct me if I am wrong) of the subroutine. Adding the required workflow as below worked as expected.nfiles = 1
call restart(nfiles) ! Note -- time is reset.
! call post_reader_work(ipass)
! Instead of doing this in the post_reader_work, directly work here
!ntot = nx1*ny1*nz1*nelv
!u_mean = glsc2(vx,bm1,ntot)/volvm1
!v_mean = glsc2(vy,bm1,ntot)/volvm1
!w_mean = glsc2(vz,bm1,ntot)/volvm1
!ubulk = (u_mean**2 + v_mean**2 + w_mean**2)**0.5
call vortex_core(t, 'q')
call outpost(vx,vy,vz,pr,t,' ')
!if (nio.eq.0) write(*,*) 'Mean velocity:', ubulk
--Regards,Akshay Patil