Changeset 3984 for trunk


Ignore:
Timestamp:
Dec 8, 2025, 11:36:38 AM (6 days ago)
Author:
jbclement
Message:

PEM:
Addition of a module "tracers" to retain properties of atmospheric tracers.
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3983 r3984  
    817817- Addition of a module "metamorphism" to compute the PCM frost at the PEM beginning and give it back to the PCM at the PEM end. The frost is considered as the ice given by the PCM "startfi.nc" which is above the yearly minimum. Thereby, metamorphism is performed through this operation.
    818818- Ice reservoirs representation in the PEM is modernized.
     819
     820== 08/12/2025 == JBC
     821Addition of a module "tracers" to retain properties of atmospheric tracers.
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3983 r3984  
    8282use dimradmars_mod,             only: totcloudfrac, albedo
    8383use dust_param_mod,             only: tauscaling
    84 use tracer_mod,                 only: noms, mmol, igcm_h2o_vap ! Tracer names and molar masses
     84use tracer_mod,                 only: noms ! Tracer names
    8585use mod_phys_lmdz_para,         only: is_parallel, is_sequential, is_mpi_root, is_omp_root, is_master
    8686use planete_h,                  only: year_day
     
    8888use comcstfi_h,                 only: mugaz
    8989use metamorphism,               only: ini_frost_id, set_frost4PCM, iPCM_h2ofrost, iPCM_co2frost
     90use tracers,                    only: mmol
    9091
    9192#ifndef CPP_1D
     
    416417call surfini(ngrid,nslope,qsurf)
    417418call ini_frost_id(nqtot,noms)
    418 do nnq = 1,nqtot
    419     if (noms(nnq) == "h2o_vap") then
    420         igcm_h2o_vap = nnq
    421         mmol(igcm_h2o_vap) = 18.
    422     endif
    423 enddo
     419call ini_tracers_id(nqtot,noms)
    424420
    425421!------------------------
     
    767763                        tsoil_PEM_timeseries(ig,isoil,islope,t) = tsoil_PEM_timeseries(ig,isoil,islope,t)*tsoil_PEM(ig,isoil,islope)/tsoil_avg_old(ig,isoil)
    768764                        ! Update of watersoil density
    769                         watersoil_density_PEM_timeseries(ig,isoil,islope,t) = exp(beta_clap_h2o/tsoil_PEM_timeseries(ig,isoil,islope,t) + alpha_clap_h2o)/tsoil_PEM_timeseries(ig,isoil,islope,t)*mmol(igcm_h2o_vap)/(mugaz*r)
     765                        watersoil_density_PEM_timeseries(ig,isoil,islope,t) = exp(beta_clap_h2o/tsoil_PEM_timeseries(ig,isoil,islope,t) + alpha_clap_h2o)/tsoil_PEM_timeseries(ig,isoil,islope,t)*mmol%h2o/(mugaz*r)
    770766                        if (isnan(tsoil_PEM(ig,isoil,islope))) call abort_pem("PEM - Update Tsoil","NaN detected in tsoil_PEM",1)
    771767                    enddo
  • trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90

    r3983 r3984  
    1818use constants_marspem_mod,      only: alpha_clap_h2o, beta_clap_h2o, TI_breccia, TI_bedrock
    1919use soil_thermalproperties_mod, only: update_soil_thermalproperties
    20 use tracer_mod,                 only: mmol, igcm_h2o_vap ! tracer names and molar masses
    2120use abort_pem_mod,              only: abort_pem
    2221use compute_soiltemp_mod,       only: ini_tsoil_pem, compute_tsoil_pem
     
    2726use surfdat_h,                  only: watercaptag, perennial_co2ice, qsurf
    2827use metamorphism,               only: frost4PCM, iPCM_h2ofrost, iPCM_co2frost
     28use tracers,                    only: mmol
    2929
    3030implicit none
     
    469469
    470470! First raw initialization
    471             watersoil_avg(:,nsoil_PCM + 1:nsoil_PEM,islope) = exp(beta_clap_h2o/tsoil_PEM(:,nsoil_PCM + 1:nsoil_PEM,islope) + alpha_clap_h2o)/tsoil_PEM(:,nsoil_PCM + 1:nsoil_PEM,islope)*mmol(igcm_h2o_vap)/(mugaz*r)
     471            watersoil_avg(:,nsoil_PCM + 1:nsoil_PEM,islope) = exp(beta_clap_h2o/tsoil_PEM(:,nsoil_PCM + 1:nsoil_PEM,islope) + alpha_clap_h2o)/tsoil_PEM(:,nsoil_PCM + 1:nsoil_PEM,islope)*mmol%h2o/(mugaz*r)
    472472        enddo !islope
    473473        write(*,*) 'PEMETAT0: TSOIL done'
Note: See TracChangeset for help on using the changeset viewer.