Welcome, Guest
Username: Password: Remember me

TOPIC: link points sources to the mesh

link points sources to the mesh 7 years 9 months ago #25118

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hi Everyone,

Please can you explain me how to associate a source point directly to a mesh node without entering x and y coordinates in the steering file. In my case, I know the location of each source point in the mesh (source point → ID of the closest node in the mesh).
This allow to me to avoide the error message (source point outside of domain)

Many thanks in advance and any suggestion or remark is welcome

Regards
The administrator has disabled public write access.

link points sources to the mesh 7 years 9 months ago #25132

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Hi

Telemac2D reads the .cas file in the subroutine lecdon_telemac2d.f.

The X coordinates are read in the loop: (same for the Y coordinates)
        DO K=1,NREJEX
          XSCE(K) = MOTREA( ADRESS(2,36) + K-1 )
        ENDDO

Maybe you could edit this subroutine to make it take the coordinates from the mesh instead. (X2%R(ipoin) or something like this).

This will probably work. But you have to check if the mesh is already initialized when lecdon_telemac2d.f is called, or this may not work.


Another thing you could do is, in the subroutine telemac2d.f, before it calls proxim.f, re-read the variables XSCE and YSCE from the mesh (X2%R and Y2%R, respectively).

Hope it helps.

Regards
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.