Ignore:
Timestamp:
Feb 15, 2019 6:38:58 PM (5 years ago)
Author:
suehring
Message:

Coupling of indoor model to atmosphere; output of indoor temperatures and waste heat; enable restarts with indoor model; bugfix plant transpiration; bugfix - missing calculation of 10cm temperature

File:
1 edited

Legend:

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

    r3685 r3744  
    2222! Current revisions:
    2323! ------------------
    24 !
     24! Bugfix in transpiration, floating invalid when temperature
     25! becomes > 40 degrees
    2526!
    2627! Former revisions:
     
    236237!> 2) Calculation of sinks and sources of momentum, heat and scalar concentration
    237238!> due to canopy elements (subroutine pcm_tendency).
     239!
     240! @todo - precalculate constant terms in pcm_calc_transpiration_rate
    238241!------------------------------------------------------------------------------!
    239242 MODULE plant_canopy_model_mod
     
    422425     sat_press_d = sat_press * 17.27_wp * 237.3_wp / (temp + 237.3_wp)**2
    423426!--  Wind speed
    424      wind_speed = SQRT( ((u(k,j,i) + u(k,j,i+1))/2.0_wp )**2 +           &
    425                         ((v(k,j,i) + v(k,j,i+1))/2.0_wp )**2 +           &
    426                         ((w(k,j,i) + w(k,j,i+1))/2.0_wp )**2 )
     427     wind_speed = SQRT( ( 0.5_wp * ( u(k,j,i) + u(k,j,i+1) ) )**2 +            &
     428                        ( 0.5_wp * ( v(k,j,i) + v(k,j,i+1) ) )**2 +            &
     429                        ( 0.5_wp * ( w(k,j,i) + w(k,j,i+1) ) )**2 )
    427430!--  Aerodynamic conductivity (Daudet et al. (1999) eq. 14
    428431     g_b = 0.01_wp * wind_speed + 0.0071_wp
     
    434437!--  Second function for calculation of stomatal conductivity (temperature dependency)
    435438!--  Stewart (1988; Agric. and Forest. Meteorol. 43) eq. 21
    436      f2 = MAX(t2_min, (temp-t2_min) * (t2_max-temp)**((t2_max-16.9_wp)/(16.9_wp-t2_min)) / &
     439     f2 = MAX(t2_min, (temp-t2_min) * MAX(0.0_wp,t2_max-temp)**((t2_max-16.9_wp)/(16.9_wp-t2_min)) / &
    437440              ((16.9_wp-t2_min) * (t2_max-16.9_wp)**((t2_max-16.9_wp)/(16.9_wp-t2_min))) )
    438441!--  Water pressure deficit
Note: See TracChangeset for help on using the changeset viewer.