Changeset 1914 for palm/trunk/SOURCE


Ignore:
Timestamp:
May 26, 2016 2:44:07 PM (9 years ago)
Author:
witha
Message:

Merged branch/forwind into trunk

Location:
palm/trunk
Files:
9 edited
1 copied

Legend:

Unmodified
Added
Removed
  • palm/trunk

  • palm/trunk/SOURCE

  • palm/trunk/SOURCE/Makefile

    r1901 r1914  
    5656# Tails removed. lpm_release_set removed. calc_precipitation, impact_of_latent_heat
    5757# removed.
     58#
     59# 1819 2016-04-06 21:05:15Z witha
     60# Added wind turbine model and renamed it from wind_turbine_model to
     61# wind_turbine_model_mod
    5862#
    5963# 1817 2016-04-06 15:44:20Z maronga
     
    330334        user_parin.f90 user_read_restart_data.f90 \
    331335        user_spectra.f90 user_statistics.f90 wall_fluxes.f90 \
    332         write_3d_binary.f90 write_var_list.f90
     336        wind_turbine_model_mod.f90 write_3d_binary.f90 write_var_list.f90
    333337
    334338
     
    383387check_parameters.o: modules.o mod_kinds.o land_surface_model_mod.o \
    384388        netcdf_interface_mod.o plant_canopy_model_mod.o pmc_interface_mod.o radiation_model_mod.o \
    385         spectra_mod.o subsidence_mod.o microphysics_mod.o
     389        spectra_mod.o subsidence_mod.o microphysics_mod.o wind_turbine_model_mod.o
    386390close_file.o: modules.o mod_kinds.o netcdf_interface_mod.o
    387391compute_vpt.o: modules.o mod_kinds.o
     
    429433   lpm_init.o ls_forcing_mod.o netcdf_interface_mod.o plant_canopy_model_mod.o \
    430434   radiation_model_mod.o random_function_mod.o random_generator_parallel_mod.o \
    431    surface_layer_fluxes_mod.o microphysics_mod.o mod_particle_attributes.o
     435   surface_layer_fluxes_mod.o microphysics_mod.o mod_particle_attributes.o \
     436   wind_turbine_model_mod.o
    432437init_advec.o: modules.o mod_kinds.o
    433438init_cloud_physics.o: modules.o mod_kinds.o
     
    486491parin.o: modules.o cpulog_mod.o land_surface_model_mod.o mod_kinds.o netcdf_interface_mod.o \
    487492   plant_canopy_model_mod.o pmc_interface_mod.o progress_bar_mod.o spectra_mod.o \
    488    radiation_model_mod.o microphysics_mod.o
     493   radiation_model_mod.o microphysics_mod.o wind_turbine_model_mod.o
    489494plant_canopy_model_mod.o: modules.o mod_kinds.o
    490495pmc_interface_mod.o: modules.o mod_kinds.o pmc_client_mod.o pmc_general_mod.o\
     
    508513        eqn_state_seawater.o mod_kinds.o microphysics_mod.o \
    509514        nudging_mod.o plant_canopy_model_mod.o production_e.o radiation_model_mod.o \
    510         subsidence_mod.o user_actions.o
     515        subsidence_mod.o user_actions.o wind_turbine_model_mod.o
    511516progress_bar_mod.o: modules.o mod_kinds.o
    512517radiation_model_mod.o : modules.o mod_particle_attributes.o microphysics_mod.o
     
    536541        ls_forcing_mod.o mod_kinds.o nudging_mod.o pmc_interface_mod.o production_e.o \
    537542        prognostic_equations.o progress_bar_mod.o radiation_model_mod.o \
    538         spectra_mod.o user_actions.o surface_layer_fluxes_mod.o microphysics_mod.o
     543        spectra_mod.o user_actions.o surface_layer_fluxes_mod.o microphysics_mod.o \
     544        wind_turbine_model_mod.o
    539545time_to_string.o: mod_kinds.o
    540546timestep.o: modules.o cpulog_mod.o mod_kinds.o microphysics_mod.o
     
    572578user_statistics.o: modules.o mod_kinds.o netcdf_interface_mod.o user_module.o
    573579wall_fluxes.o: modules.o mod_kinds.o
     580wind_turbine_model_mod.o: modules.o cpulog_mod.o mod_kinds.o
    574581write_3d_binary.o: modules.o cpulog_mod.o mod_kinds.o land_surface_model_mod.o \
    575582        radiation_model_mod.o random_function_mod.o random_generator_parallel_mod.o \
  • palm/trunk/SOURCE/check_parameters.f90

    r1842 r1914  
    389389    USE statistics
    390390    USE transpose_indices
     391    USE wind_turbine_model_mod,                                                &
     392        ONLY: wtm_check_parameters, wind_turbine
    391393
    392394
     
    10571059
    10581060!
     1061!-- If wind turbine model is used, perform additional checks
     1062    IF ( wind_turbine )  CALL wtm_check_parameters
     1063!
    10591064!-- When radiation model is used, peform addtional checks
    10601065    IF ( radiation )  CALL radiation_check_parameters
     1066
    10611067
    10621068    IF ( .NOT. ( loop_optimization == 'cache'  .OR.                            &
  • palm/trunk/SOURCE/init_3d_model.f90

    r1879 r1914  
    3737! nzb_2d replaced by nzb_u|v_inner
    3838!
     39! 1839 2016-04-07 18:48:14Z witha
     40! Renamed calls for wind turbine model
     41!
    3942! 1833 2016-04-07 14:23:03Z raasch
    4043! initialization of spectra quantities moved to spectra_mod
     
    5053! icloud_scheme replaced by microphysics_*
    5154!
     55! 1819 2016-04-06 21:05:15Z witha
     56! Added initialization of the wind turbine model
     57!
    5258! 1817 2016-04-06 15:44:20Z maronga
    5359! Renamed lsm calls.
     
    331337   
    332338    USE transpose_indices
     339
     340    USE wind_turbine_model_mod,                                                &
     341        ONLY:  wtm_init, wtm_init_arrays, wind_turbine
    333342
    334343    IMPLICIT NONE
     
    688697
    689698!
     699!-- Allocate wind turbine model arrays
     700    IF ( wind_turbine )  THEN
     701       CALL wtm_init_arrays
     702    ENDIF
     703
     704!
    690705!-- Allocate arrays containing the RK coefficient for calculation of
    691706!-- perturbation pressure and turbulent fluxes. At this point values are
     
    16751690       CALL location_message( 'finished', .TRUE. )
    16761691    ENDIF
     1692   
     1693!
     1694!-- If required, initialize quantities needed for the wind turbine model
     1695    IF ( wind_turbine )  THEN
     1696       CALL location_message( 'initializing wind turbine model', .FALSE. )
     1697       CALL wtm_init
     1698       CALL location_message( 'finished', .TRUE. )
     1699    ENDIF
     1700
    16771701
    16781702!
  • palm/trunk/SOURCE/package_parin.f90

    r1872 r1914  
    2828! Initialization of aerosols added.
    2929!
     30! 1839 2016-04-07 18:48:14Z witha
     31! Reading of &wind_turbine_par moved to wind_turbine_model_mod
     32!
    3033! 1833 2016-04-07 14:23:03Z raasch
    3134! reading of spectra_par moved to spectra_mod
     
    4144! +collision_algorithm
    4245! Tails removed.
     46
     47! 1819 2016-04-06 21:05:15Z witha
     48! Added namelist for wind turbine model
    4349!
    4450! 1817 2016-04-06 15:44:20Z maronga
  • palm/trunk/SOURCE/parin.f90

    r1879 r1914  
    2727! 1849 2016-04-08 11:33:18Z hoffmann
    2828! Adapted for modularization of microphysics
     29!
     30! 1839 2016-04-07 18:48:14Z witha
     31! Added call to wind turbine model for reading of &wind_turbine_par
    2932!
    3033! 1833 2016-04-07 14:23:03Z raasch
     
    259262    USE statistics,                                                            &
    260263        ONLY:  hom, hom_sum, pr_palm, region, statistic_regions
     264
     265    USE wind_turbine_model_mod,                                                &
     266        ONLY:  wtm_parin
    261267
    262268
     
    504510
    505511!
     512!--       Check if wind turbine model is used and read &wind_turbine_par if
     513!--       required
     514          CALL wtm_parin
     515
     516!
    506517!--       Read user-defined variables
    507518          CALL user_parin
  • palm/trunk/SOURCE/prognostic_equations.f90

    r1875 r1914  
    2828! Module renamed (removed _mod)
    2929!
    30 !
    3130! 1850 2016-04-08 13:29:27Z maronga
    3231! Module renamed
    33 !
    3432!
    3533! 1826 2016-04-07 12:01:39Z maronga
     
    3836! 1822 2016-04-07 07:49:42Z hoffmann
    3937! Kessler microphysics scheme moved to microphysics.
     38
     39! 1819 2016-04-06 21:05:15Z witha
     40! Added calls for wind turbine model
    4041!
    4142! 1757 2016-02-22 15:49:32Z maronga
     
    313314        ONLY:  user_actions
    314315
     316    USE wind_turbine_model_mod,                                                &
     317        ONLY:  wind_turbine, wtm_tendencies
     318
    315319
    316320    PRIVATE
     
    428432             IF ( nudging )  CALL nudge( i, j, simulated_time, 'u' )
    429433
     434!
     435!--          Forces by wind turbines
     436             IF ( wind_turbine )  CALL wtm_tendencies( i, j, 1 )
     437
    430438             CALL user_actions( i, j, 'u-tendency' )
    431439!
     
    487495             IF ( nudging )  CALL nudge( i, j, simulated_time, 'v' )
    488496
     497!
     498!--          Forces by wind turbines
     499             IF ( wind_turbine )  CALL wtm_tendencies( i, j, 2 )
     500
    489501             CALL user_actions( i, j, 'v-tendency' )
    490502!
     
    543555!--       Drag by plant canopy
    544556          IF ( plant_canopy )  CALL pcm_tendency( i, j, 3 )
     557
     558!
     559!--       Forces by wind turbines
     560          IF ( wind_turbine )  CALL wtm_tendencies( i, j, 3 )
    545561
    546562          CALL user_actions( i, j, 'w-tendency' )
     
    10111027    IF ( nudging )  CALL nudge( simulated_time, 'u' )
    10121028
     1029!
     1030!-- Forces by wind turbines
     1031    IF ( wind_turbine )  CALL wtm_tendencies( 1 )
     1032
    10131033    CALL user_actions( 'u-tendency' )
    10141034
     
    10871107    IF ( nudging )  CALL nudge( simulated_time, 'v' )
    10881108
     1109!
     1110!-- Forces by wind turbines
     1111    IF ( wind_turbine )  CALL wtm_tendencies( 2 )
     1112
    10891113    CALL user_actions( 'v-tendency' )
    10901114
     
    11581182!-- Drag by plant canopy
    11591183    IF ( plant_canopy )  CALL pcm_tendency( 3 )
     1184
     1185!
     1186!-- Forces by wind turbines
     1187    IF ( wind_turbine )  CALL wtm_tendencies( 3 )
    11601188
    11611189    CALL user_actions( 'w-tendency' )
     
    18471875    IF ( nudging )  CALL nudge( simulated_time, 'u' )
    18481876
     1877!
     1878!-- Forces by wind turbines
     1879    IF ( wind_turbine )  CALL wtm_tendencies( 1 )
     1880
    18491881    CALL user_actions( 'u-tendency' )
    18501882
     
    19141946    IF ( nudging )  CALL nudge( simulated_time, 'v' )
    19151947
     1948!
     1949!-- Forces by wind turbines
     1950    IF ( wind_turbine )  CALL wtm_tendencies( 2 )
     1951
    19161952    CALL user_actions( 'v-tendency' )
    19171953
     
    19762012!-- Drag by plant canopy
    19772013    IF ( plant_canopy )  CALL pcm_tendency( 3 )
     2014
     2015!
     2016!-- Forces by wind turbines
     2017    IF ( wind_turbine )  CALL wtm_tendencies( 3 )
    19782018
    19792019    CALL user_actions( 'w-tendency' )
  • palm/trunk/SOURCE/time_integration.f90

    r1879 r1914  
    4242! 1822 2016-04-07 07:49:42Z hoffmann
    4343! icloud_scheme replaced by microphysics_*
     44!
     45! 1819 2016-04-06 21:05:15Z witha
     46! Added call for wind turbine model and moved it
    4447!
    4548! 1808 2016-04-05 19:44:00Z raasch
     
    316319        ONLY:  user_actions
    317320
     321    USE wind_turbine_model_mod,                                                &
     322        ONLY:  wind_turbine, wtm_forces
     323
    318324    IMPLICIT NONE
    319325
     
    405411       CALL user_actions( 'before_timestep' )
    406412
     413!
     414!--    Calculate forces by wind turbines
     415       IF ( wind_turbine )  THEN
     416
     417          CALL cpu_log( log_point(55), 'wind_turbine', 'start' )
     418
     419          CALL wtm_forces
     420
     421          CALL cpu_log( log_point(55), 'wind_turbine', 'stop' )
     422
     423       ENDIF       
     424       
    407425!
    408426!--    Start of intermediate step loop
Note: See TracChangeset for help on using the changeset viewer.