Ignore:
Timestamp:
Apr 26, 2019, 11:18:52 AM (6 years ago)
Author:
emillour
Message:

Common dynamics:
Some work to enforce total tracer mass conservation in the dynamics.
Still to be further studied and validated.
For now these changes are triggered by setting a "force_conserv_tracer"
flag to ".true." in run.def (default is ".false." to not change anything
with respect to previous versions).
When force_conserv_tracer=.true. then:

  1. Rescale tracer mass in caladvtrac after tracer advection computations
  2. Recompute q ratios once atmospheric mass has been updated in integrd

These steps technically ensure total tracer mass conservation but it
might be the tracer advection scheme and/or time-stepping updating
sequence of fields that should be rethought or fixed.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/integrd.F

    r1422 r2126  
    77     &  )
    88
    9       use control_mod, only : planet_type
     9      use control_mod, only : planet_type,force_conserv_tracer
    1010      USE comvert_mod, ONLY: ap,bp
    1111      USE comconst_mod, ONLY: pi
     
    6666      REAL vscr( ip1jm ),uscr( ip1jmp1 ),hscr( ip1jmp1 ),pscr(ip1jmp1)
    6767      REAL massescr( ip1jmp1,llm )
     68      REAL :: massratio(ip1jmp1,llm)
    6869!      REAL finvmasse(ip1jmp1,llm)
    6970      REAL p(ip1jmp1,llmp1)
     
    242243
    243244      endif ! of if (planet_type.eq."earth")
     245
     246      if (force_conserv_tracer) then
     247        ! Ehouarn: try to keep total amont of tracers fixed
     248        ! by acounting for mass change in each cell
     249        massratio(1:ip1jmp1,1:llm)=massescr(1:ip1jmp1,1:llm)
     250     &                             /masse(1:ip1jmp1,1:llm)
     251        do iq=1,nq
     252        q(1:ip1jmp1,1:llm,iq)=q(1:ip1jmp1,1:llm,iq)
     253     &                        *massratio(1:ip1jmp1,1:llm)
     254        enddo
     255      endif ! of if (force_conserv_tracer)
    244256c
    245257c
Note: See TracChangeset for help on using the changeset viewer.