Welcome, Guest
Username: Password: Remember me

TOPIC: Variable for tracer degradation coefficient

Variable for tracer degradation coefficient 9 years 5 months ago #17288

  • amyrhulbakar
  • amyrhulbakar's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hello everybody,

I am trying to include a new variable as a coefficient for tracer degradation, K=2.303/T90*24 by using the private array that varies with concentrations of salinity and temperature in preres_telemac2d.f:

        IF((LEO.AND.SORLEO(23)).OR.(IMP.AND.SORIMP(23))) THEN
          DO N=1,NPOIN
            PRIVE%ADR(1)%P%R(N) = (0.8+0.02*TN%ADR(1)%P%R(N))*1.07**
     &                            (TN%ADR(2)%P%R(N)-20)
          ENDDO
        ENDIF

With K = PRIVE%ADR(1)%P%R(N), salinity = TN%ADR(1)%P%R(N), and temperature = TN%ADR(2)%P%R(N), non-conservative tracer = TN%ADR(3)%P%R(N).

In difsou.f, looks like to multiply directly the calculated decay rate, K with the non-conservative tracer = TN%ADR(3)%P%R(N) as follow, is not producing the decay result.

        ELSEIF(LOITRAC(ITRAC).EQ.2) THEN
          YASMI(ITRAC)=.TRUE.
          CALL OS('X=CY    ',X=TIMP%ADR(3)%P,
     &                       Y=TN%ADR(3)%P,
     &                       C=-PRIVE%ADR(1)%P/24.D0/3600.D0)

Can anybody do suggestions on this matter, either to replace the private array PRIVE%ADR(1)%P%R(N) with a new declared variable?

Thank you, Amyrhul
The administrator has disabled public write access.

Variable for tracer degradation coefficient 9 years 5 months ago #17295

  • jmhervouet
  • jmhervouet's Avatar
Hello,

The test:

IF((LEO.AND.SORLEO(23)).OR.(IMP.AND.SORIMP(23))) THEN

depends on the PERIOD FOR GRAPHIC PRINTOUTS

so you may have to remove it so that your variable is built at every time-step.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: pham

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