[petsc-users] Plex mesh reference element

Dharmendar Reddy dharmareddy84 at gmail.com
Tue Feb 11 07:50:11 CST 2014


Hello,
       Where do i find the information on reference elements used by
plex for local numbering.

I currently use the following for the tetrahedron. Is this correct ?
what is the corresponding information for a  triangle ?

        ! Vertex coordiantes
       vert(1:3,1)=[0.0, 0.0, 0.0]
        vert(1:3,2)=[1.0, 0.0, 0.0]
        vert(1:3,3)=[0.0, 1.0, 0.0]
        vert(1:3,4)=[0.0, 0.0, 1.0]

        ! vertex intdices
        vs(1:4)= [1, 2, 3, 4]

        ! Edges id to node Id
        edge(:,1) = [3, 4]
        edge(:,2) = [2, 4]
        edge(:,3) = [2, 3]
        edge(:,4) = [1, 4]
        edge(:,5) = [1, 3]
        edge(:,6) = [1, 2]

        ! Faces id to node id
        face(1:3,1)=[2,3,4]
        face(1:3,2)=[1,3,4]
        face(1:3,3)=[1,2,4]
        face(1:3,4)=[1,2,3]
        numFacet = 4

        ! Tets
        tet(1:4,1) = [1,2,3,4]
thanks
Reddy


More information about the petsc-users mailing list