Ignore:
Timestamp:
Dec 16, 2019 8:17:03 AM (4 years ago)
Author:
Giersch
Message:

Topography closed channel flow with symmetric boundaries implemented, ID tag in radiation module corrected

File:
1 edited

Legend:

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

    r4331 r4340  
    2525! -----------------
    2626! 4172 2019-08-20 11:55:33Z oliver.maas
     27! Checks for closed channel flow implemented
     28!
     29! 11:55:33Z oliver.maas
    2730! Move 2-m potential temperature output to diagnostic_output_quantities
    2831!
     
    498501          WRITE( action, '(A)' )  'cloud_droplets = .TRUE.'
    499502       ENDIF
    500        IF ( .NOT. constant_flux_layer )  THEN
     503       IF ( .NOT. constant_flux_layer .AND. topography /= 'closed_channel' )   &
     504       THEN
    501505          WRITE( action, '(A)' )  'constant_flux_layer = .FALSE.'
    502506       ENDIF
    503507       IF ( action /= ' ' )  THEN
    504           message_string = 'a non-flat topography does not allow ' //          &
     508          message_string = 'The specified topography does not allow ' //       &
    505509                           TRIM( action )
    506510          CALL message( 'check_parameters', 'PA0014', 1, 2, 0, 6, 0 )
    507511       ENDIF
    508 
     512!
     513!--    Check illegal/untested parameter combinations for closed channel
     514       If ( topography == 'closed_channel' ) THEN
     515          symmetry_flag = 1
     516          message_string = 'Bottom and top boundary are treated equal'
     517          CALL message( 'check_parameters', 'PA0676', 0, 0, 0, 6, 0 )
     518       
     519          IF ( dz(1) /= dz(COUNT( dz /= -1.0_wp )) .OR.                        &
     520               dz_stretch_level /= -9999999.9_wp) THEN
     521             WRITE( message_string, * )  'dz should be equal close to the ' // &
     522                                         'boundaries due to symmetrical problem'
     523             CALL message( 'check_parameters', 'PA0313', 1, 2, 0, 6, 0 )
     524          ENDIF
     525       
     526          IF ( constant_flux_layer ) THEN
     527             WRITE( message_string, * )  'A constant flux layer is not '//     &
     528                                         'allowed if a closed channel '//      &
     529                                         'shall be used'
     530             CALL message( 'check_parameters', 'PA0688', 1, 2, 0, 6, 0 )
     531          ENDIF
     532       
     533          IF ( ocean_mode ) THEN
     534             WRITE( message_string, * )  'The ocean mode is not allowed if '// &
     535                                         'a closed channel shall be used'
     536             CALL message( 'check_parameters', 'PA0689', 1, 2, 0, 6, 0 )
     537          ENDIF
     538       
     539          IF ( momentum_advec /= 'ws-scheme' .OR.                              &
     540               scalar_advec /= 'ws-scheme' ) THEN
     541             WRITE( message_string, * )  'A closed channel require the '//     &
     542                                         'upwind scheme of Wicker and ' //     &
     543                                         'Skamarock as the advection scheme'
     544             CALL message( 'check_parameters', 'PA0690', 1, 2, 0, 6, 0 )
     545          ENDIF
     546       ENDIF
    509547    ENDIF
    510548
Note: See TracChangeset for help on using the changeset viewer.