Ignore:
Timestamp:
Apr 7, 2016 7:49:42 AM (8 years ago)
Author:
hoffmann
Message:

changes in LPM and bulk cloud microphysics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/prognostic_equations.f90

    r1818 r1822  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Kessler microphysics scheme moved to microphysics. 
    2222!
    2323! Former revisions:
     
    190190    USE control_parameters,                                                    &
    191191        ONLY:  call_microphysics_at_all_substeps, cloud_physics,               &
    192                cloud_top_radiation, constant_diffusion, dp_external,       &
     192               cloud_top_radiation, constant_diffusion, dp_external,           &
    193193               dp_level_ind_b, dp_smooth_factor, dpdxy, dt_3d, humidity,       &
    194                icloud_scheme, inflow_l, intermediate_timestep_count,           &
     194               inflow_l, intermediate_timestep_count,                          &
    195195               intermediate_timestep_count_max, large_scale_forcing,           &
    196                large_scale_subsidence, neutral, nudging, ocean, outflow_l,     &
    197                outflow_s, passive_scalar, precipitation,                       &
    198                prho_reference, prho_reference, prho_reference, pt_reference,   &
    199                pt_reference, pt_reference, scalar_advec, scalar_advec,         &
    200                simulated_time, sloping_surface,                                &
     196               large_scale_subsidence, microphysics_seifert,                   &
     197               microphysics_sat_adjust, neutral, nudging, ocean, outflow_l,    &
     198               outflow_s, passive_scalar, prho_reference, prho_reference,      &
     199               prho_reference, pt_reference, pt_reference, pt_reference,       &
     200               scalar_advec, scalar_advec, simulated_time, sloping_surface,    &
    201201               timestep_scheme, tsc, use_subsidence_tendencies,                &
    202202               use_upstream_for_tke, wall_heatflux,                            &
     
    247247    USE buoyancy_mod,                                                          &
    248248        ONLY:  buoyancy, buoyancy_acc
    249 
    250     USE calc_precipitation_mod,                                                &
    251         ONLY:  calc_precipitation
    252249
    253250    USE calc_radiation_mod,                                                    &
     
    271268    USE diffusion_w_mod,                                                       &
    272269        ONLY:  diffusion_w, diffusion_w_acc
    273 
    274     USE impact_of_latent_heat_mod,                                             &
    275         ONLY:  impact_of_latent_heat
    276270
    277271    USE kinds
     
    377371       DO  j = nys, nyn
    378372!
    379 !--       If required, calculate cloud microphysical impacts (two-moment scheme)
    380           IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.                 &
     373!--       If required, calculate cloud microphysics
     374          IF ( cloud_physics  .AND.  .NOT. microphysics_sat_adjust  .AND.      &
    381375               ( intermediate_timestep_count == 1  .OR.                        &
    382376                 call_microphysics_at_all_substeps )                           &
     
    584578             IF ( cloud_top_radiation )  THEN
    585579                CALL calc_radiation( i, j )
    586              ENDIF
    587 
    588 !
    589 !--          If required compute impact of latent heat due to precipitation
    590              IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.              &
    591                   precipitation )  THEN
    592                 CALL impact_of_latent_heat( i, j )
    593580             ENDIF
    594581
     
    729716
    730717!
    731 !--          If required compute decrease of total water content due to
    732 !--          precipitation
    733              IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.              &
    734                   precipitation )  THEN
    735                 CALL calc_precipitation( i, j )
    736              ENDIF
    737 
    738 !
    739718!--          Sink or source of scalar concentration due to canopy elements
    740719             IF ( plant_canopy )  CALL plant_canopy_model( i, j, 5 )
     
    788767!--          If required, calculate prognostic equations for rain water content
    789768!--          and rain drop concentration
    790              IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.              &
    791                   precipitation )  THEN
     769             IF ( cloud_physics  .AND.  microphysics_seifert )  THEN
    792770!
    793771!--             Calculate prognostic equation for rain water content
     
    807785                CALL diffusion_s( i, j, qr, qrsws, qrswst, wall_qrflux )
    808786
    809                 CALL user_actions( i, j, 'qr-tendency' )
    810787!
    811788!--             Prognostic equation for rain water content
     
    848825                CALL diffusion_s( i, j, nr, nrsws, nrswst, wall_nrflux )
    849826
    850                 CALL user_actions( i, j, 'nr-tendency' )
    851827!
    852828!--             Prognostic equation for rain drop concentration
     
    971947
    972948!
    973 !-- If required, calculate cloud microphysical impacts (two-moment scheme)
    974     IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.                       &
     949!-- If required, calculate cloud microphysical impacts
     950    IF ( cloud_physics  .AND.  .NOT. microphysics_sat_adjust  .AND.            &
    975951         ( intermediate_timestep_count == 1  .OR.                              &
    976952           call_microphysics_at_all_substeps )                                 &
     
    12541230
    12551231!
    1256 !--    If required compute impact of latent heat due to precipitation
    1257        IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.  precipitation )  THEN
    1258           CALL impact_of_latent_heat
    1259        ENDIF
    1260 
    1261 !
    12621232!--    Consideration of heat sources within the plant canopy
    12631233       IF ( plant_canopy .AND. ( cthf /= 0.0_wp ) ) THEN
     
    14591429       
    14601430!
    1461 !--    If required compute decrease of total water content due to
    1462 !--    precipitation
    1463        IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.  precipitation )  THEN
    1464           CALL calc_precipitation
    1465        ENDIF
    1466 
    1467 !
    14681431!--    Sink or source of scalar concentration due to canopy elements
    14691432       IF ( plant_canopy ) CALL plant_canopy_model( 5 )
     
    15301493!--    If required, calculate prognostic equations for rain water content
    15311494!--    and rain drop concentration
    1532        IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.  precipitation )  THEN
     1495       IF ( cloud_physics  .AND.  microphysics_seifert )  THEN
    15331496
    15341497          CALL cpu_log( log_point(52), 'qr-equation', 'start' )
     
    15651528
    15661529          CALL diffusion_s( qr, qrsws, qrswst, wall_qrflux )
    1567 
    1568           CALL user_actions( 'qr-tendency' )
    15691530
    15701531!
     
    16391600
    16401601          CALL diffusion_s( nr, nrsws, nrswst, wall_nrflux )
    1641 
    1642           CALL user_actions( 'nr-tendency' )
    16431602
    16441603!
     
    18211780!
    18221781!-- If required, calculate cloud microphysical impacts (two-moment scheme)
    1823     IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.                       &
     1782    IF ( cloud_physics  .AND.  .NOT. microphysics_sat_adjust  .AND.            &
    18241783         ( intermediate_timestep_count == 1  .OR.                              &
    18251784           call_microphysics_at_all_substeps )                                 &
     
    20792038
    20802039!
    2081 !--    If required compute impact of latent heat due to precipitation
    2082        IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.  precipitation )  THEN
    2083           CALL impact_of_latent_heat
    2084        ENDIF
    2085 
    2086 !
    20872040!--    Consideration of heat sources within the plant canopy
    20882041       IF ( plant_canopy .AND. ( cthf /= 0.0_wp ) ) THEN
     
    22562209
    22572210!
    2258 !--    If required compute decrease of total water content due to
    2259 !--    precipitation
    2260        IF ( cloud_physics  .AND.  icloud_scheme == 1  .AND.  precipitation )  THEN
    2261           CALL calc_precipitation
    2262        ENDIF
    2263 
    2264 !
    22652211!--    Sink or source of scalar concentration due to canopy elements
    22662212       IF ( plant_canopy ) CALL plant_canopy_model( 5 )
     
    23112257!--    If required, calculate prognostic equations for rain water content
    23122258!--    and rain drop concentration
    2313        IF ( cloud_physics  .AND.  icloud_scheme == 0  .AND.  precipitation )  THEN
     2259       IF ( cloud_physics  .AND.  microphysics_seifert )  THEN
    23142260
    23152261          CALL cpu_log( log_point(52), 'qr-equation', 'start' )
     
    23462292          CALL diffusion_s( qr, qrsws, qrswst, wall_qrflux )
    23472293
    2348           CALL user_actions( 'qr-tendency' )
    2349 
    23502294!
    23512295!--       Prognostic equation for rain water content
     
    24032347
    24042348          CALL diffusion_s( nr, nrsws, nrswst, wall_nrflux )
    2405 
    2406           CALL user_actions( 'nr-tendency' )
    24072349
    24082350!
Note: See TracChangeset for help on using the changeset viewer.