Access to isosurf mesh coordinates

Discussion about coding and new developments
Post Reply
tetraeder
Posts: 44
Joined: 27 Sep 2012, 13:09
Antispam: Yes

Access to isosurf mesh coordinates

Post by tetraeder »

Hello Elmer Community,

i was wondering if theres a way to use the mesh coordinates of an isosurface or isoline, which has been calculated by IsosurfaceSolver, in a user defined solver. I tried to copy some code from the saveline subroutine, but it didn't work... What i basically need is just an array with the coordinates of the isoline or isosurface.
tetraeder
Posts: 44
Joined: 27 Sep 2012, 13:09
Antispam: Yes

Re: Access to isosurf mesh coordinates

Post by tetraeder »

I think i figured it out by myself.

In IsosurfaceSolver you can define the name of the mesh with the keyword "Mesh Name". Then you can get the mesh nodes by:

Code: Select all

    Pmesh => Model % Meshes
    DO WHILE(ASSOCIATED(Pmesh))
      IF ( Pmesh % Name == "the name of the mesh") THEN
        Isosurf=>Pmesh
        EXIT
      END IF
      Pmesh => Pmesh % next
    END DO
Post Reply