I am trying to store the surface normal vector components in arrays (nx, ny, nz) and the norm (nn). Through the following code inside the cs_user_extra_operations.f90 I managed to do it, for a serial (1 processor) simulation:
Code: Select all
call getfbr('WALL1', nlelt1, lstelt)
do ilelt = 1, nlelt1
ifac = lstelt(ilelt)
nx(ilelt)=surfbo(1,ifac)
ny(ilelt)=surfbo(2,ifac)
nz(ilelt)=surfbo(3,ifac)
nn(ilelt)=surfbn(ifac)
enddo
Thank you very much for your help.
Best regards,
Daniele