EdgeIndexes

Discussion about coding and new developments

EdgeIndexes

Postby amonnier » 23 Feb 2015, 12:07

Hello,
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.

Thanks,
Antoine
amonnier
 
Posts: 4
Joined: 18 Feb 2015, 17:52

Re: EdgeIndexes

Postby raback » 23 Feb 2015, 18:08

Hi

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

-Peter
raback
Site Admin
 
Posts: 3111
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.
Regards,
amonnier
 
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

cron