Discussion about coding and new developments


Postby amonnier » 23 Feb 2015, 12:07

For my project, I need to identify the element which are in a level set fonction and recreate the boundary with the exterior element edge.
I didn't fine such subroutine an LevelSet module.
So I make my own subroutine, but I have some difficulties this the EdgeIndexes.

Code: Select all
   DO i=1,nbrEltSolid
        EltSolidB = ElementSolid(i)
        Element =>Solver % Mesh % Elements(EltSolidB)
        EdgeIndexes => Element % EdgeIndexes
        DO j=1,Element %  Type % NumberOfEdges   ! boule sur j, sur le nombre d'edge
              write(*,*) "element n°", EltSolidB, "edge n°", j
              k = Element % EdgeIndexes(j)
        END DO   ! fin boule sur j, sur le nombre d'edge
     END DO   ! fin boule sur i, sur les élements solides

The problem is at the line "k = Element %EgdeIndexes (j)", with k define as a integer.

Posts: 4
Joined: 18 Feb 2015, 17:52

Re: EdgeIndexes

Postby raback » 23 Feb 2015, 18:08


You should probably call "FindMeshEdges" prior to trying to print these out.

Site Admin
Posts: 3174
Joined: 22 Aug 2009, 11:57
Location: Espoo, Finland

Re: EdgeIndexes

Postby amonnier » 24 Feb 2015, 12:38

Hello Peter,

Thanks for your help, I will test that.
Posts: 4
Joined: 18 Feb 2015, 17:52

Return to Software development

Who is online

Users browsing this forum: No registered users and 1 guest