Hello~everyone
I am studying the degradation of E.coli with the help of TELEMAC.
I have simulated the flow of the E.coli in the canal without the decay rate and now I wanna use the fortran files:source_trac.f to add a decay rate,but i have already used t3d_heat_exchange.f. So i don't know how to add two fortran files.
In my case, the tracer 2 is the E.coli, so i edit the codes below in the source_trac.f.
INTEGER IPOIN3, IPOIN2, IPLAN
DOUBLE PRECISION DECAYDAY,DECAYRATE
DO ITRAC=1,NTRAC
S0TA%ADR(ITRAC)%P%TYPR='0'
S1TA%ADR(ITRAC)%P%TYPR='0'
ENDDO
DECAYDAY = D0
DECAYRATE = 0.9D0
UNIFORM DECAY RATE FOR TRACER NUMBER 2 (%ADR(2)) -
IF(NTRAC.GE.2) THEN
S0TA%ADR(2)%P%TYPR='Q'
S1TA%ADR(2)%P%TYPR='Q'
DO IPOIN3 = 1,NPOIN3
S0TA%ADR(2)%P%R(IPOIN3) = TA%ADR(2)%P%R(IPOIN3) *
& DLOG( 1.D0-DECAYRATE ) / ( DECAYDAY*24*3600.D0 ) / 2.D0
S1TA%ADR(2)%P%R(IPOIN3) =
& - DLOG( 1.D0-DECAYRATE ) / ( DECAYDAY*24*3600.D0 ) / 2.D0
ENDDO
!
ENDIF
Is that all right? And how can I use it in the t3d_heat_exchange.cas.
Thank you very much for your help. I have tried lots of times, but it didn't work.
I add all the files in the model.rar.
Regards.
Shuo