[Nek5000-users] Nodal points using face and element number

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Mar 14 10:42:22 CDT 2018


Hi Sijo,

Given element iel and face iface, the corresponding nodal points can be
accessed as follows:

c Identify the start and end indices of the face
call facind(kx1,kx2,ky1,ky2,kz1,kz2,nx1,ny1,nz1,iface)

c Loop through the nodes of the face
do iz = kz1,kz2
do iy = ky1,ky2
do ix = kx1,kx2
   myarray(ix,iy,iz,iel) = ... ! accessing the points on face iface
enddo
enddo
enddo


Best,
Nicolas

On Wed, Mar 14, 2018 at 4:24 PM, <nek5000-users at lists.mcs.anl.gov> wrote:

> Hi Neks,
>
> Could you please tell me, if i give the face number and element number,
> can i get the nodal co ordinates? My problem is I have a body in fluid
> domain and I have the element number and face number of elements which is
> in contact with the surface of the body. I need to get the x cordinates of
> the Nodes which are on the body.
>
>
> Regards
>
> Sijo
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20180314/7e9cdf17/attachment.html>


More information about the Nek5000-users mailing list