Thank you very much Christophe and Jean-Michel.
In fact I'm working on the modelling of viruses in Camargue, and the viruses are injected in water by birds. So we use the numbers of birds observed in defined polygons,and in these polygons we add corresponding viruses with time.
So what I would like to do is :
- I have several polygons in my model, and for each polygone, I have the quantity of tracer (viruses) to add . So my idea was to use at each time step the subroutine SOURCE_TELEMAC2D, in which I "scan" all the nodes, and if they are in the polygone (using inpoly.f) I add the corresponding values DSCE and TSCE.
However, to do this, I have to be able to define :
NREJET=NPOIN
My code in SOURCE_TELEMAC2D.f would be something like :
NREJET=NPOIN
DO L=1,NPOIN
IF(INPOLY(MESH%X%R(L),MESH%Y%R(L),X_POLY,Y_POLY,NLIG_POLY)) THEN
ISCE(L) = L
XSCE(L) = MESH%X%R(L)
YSCE(L) = MESH%Y%R(L)
DSCE(L) = 1.D0
TSCE(L,1) = 1000.D0
USCE(L) = 0.D0
VSCE(L) = 0.D0
ELSE
ISCE(L) = L
XSCE(L) = MESH%X%R(L)
YSCE(L) = MESH%Y%R(L)
DSCE(L) = 0.D0
TSCE(L,1) = 0.D0
USCE(L) = 0.D0
VSCE(L) = 0.D0
ENDIF
ENDDO
I don't know if I have the good approach...
Would you do like this to add at each time step quantity of tracers in areas defined by polygones?
I don't know if I'm clear...
Olivier