Ignore:
Timestamp:
Oct 3, 2018 2:39:40 AM (6 years ago)
Author:
raasch
Message:

Craik-Leibovich force and wave breaking effects added to ocean mode, header output for ocean mode

File:
1 edited

Legend:

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

    r3298 r3302  
    2525! -----------------
    2626! $Id$
     27! Stokes drift + wave breaking term added
     28!
     29! 3298 2018-10-02 12:21:11Z kanani
    2730! Code added for decycling chemistry (basit)
    2831!
     
    392395
    393396    USE ocean_mod,                                                             &
    394         ONLY:  eqn_state_seawater, ocean_prognostic_equations
     397        ONLY:  ocean_prognostic_equations, stokes_drift_terms, stokes_force,   &
     398               wave_breaking, wave_breaking_term
    395399
    396400    USE plant_canopy_model_mod,                                                &
     
    595599
    596600!
     601!--          Effect of Stokes drift (in ocean mode only)
     602             IF ( stokes_force )  CALL stokes_drift_terms( i, j, 1 )
     603
     604!
    597605!--          Forces by wind turbines
    598606             IF ( wind_turbine )  CALL wtm_tendencies( i, j, 1 )
     
    612620                                                 )
    613621             ENDDO
     622
     623!
     624!--          Add turbulence generated by wave breaking (in ocean mode only)
     625             IF ( wave_breaking  .AND.                                         &
     626               intermediate_timestep_count == intermediate_timestep_count_max )&
     627             THEN
     628                CALL wave_breaking_term( i, j, 1 )
     629             ENDIF
    614630
    615631!
     
    666682
    667683!
     684!--          Effect of Stokes drift (in ocean mode only)
     685             IF ( stokes_force )  CALL stokes_drift_terms( i, j, 2 )
     686
     687!
    668688!--          Forces by wind turbines
    669689             IF ( wind_turbine )  CALL wtm_tendencies( i, j, 2 )
     
    682702                                                 )
    683703             ENDDO
     704
     705!
     706!--          Add turbulence generated by wave breaking (in ocean mode only)
     707             IF ( wave_breaking  .AND.                                         &
     708               intermediate_timestep_count == intermediate_timestep_count_max )&
     709             THEN
     710                CALL wave_breaking_term( i, j, 2 )
     711             ENDIF
    684712
    685713!
     
    731759!--       Drag by plant canopy
    732760          IF ( plant_canopy )  CALL pcm_tendency( i, j, 3 )
     761
     762!
     763!--       Effect of Stokes drift (in ocean mode only)
     764          IF ( stokes_force )  CALL stokes_drift_terms( i, j, 3 )
    733765
    734766!
     
    13831415
    13841416!
     1417!-- Effect of Stokes drift (in ocean mode only)
     1418    IF ( stokes_force )  CALL stokes_drift_terms( 1 )
     1419
     1420!
    13851421!-- Forces by wind turbines
    13861422    IF ( wind_turbine )  CALL wtm_tendencies( 1 )
     
    14051441
    14061442!
     1443!-- Add turbulence generated by wave breaking (in ocean mode only)
     1444    IF ( wave_breaking  .AND.                                                  &
     1445         intermediate_timestep_count == intermediate_timestep_count_max )      &
     1446    THEN
     1447       CALL wave_breaking_term( 1 )
     1448    ENDIF
     1449
     1450!
    14071451!-- Calculate tendencies for the next Runge-Kutta step
    14081452    IF ( timestep_scheme(1:5) == 'runge' )  THEN
     
    14661510!-- Nudging
    14671511    IF ( nudging )  CALL nudge( simulated_time, 'v' )
     1512
     1513!
     1514!-- Effect of Stokes drift (in ocean mode only)
     1515    IF ( stokes_force )  CALL stokes_drift_terms( 2 )
    14681516
    14691517!
     
    14901538
    14911539!
     1540!-- Add turbulence generated by wave breaking (in ocean mode only)
     1541    IF ( wave_breaking  .AND.                                                  &
     1542         intermediate_timestep_count == intermediate_timestep_count_max )      &
     1543    THEN
     1544       CALL wave_breaking_term( 2 )
     1545    ENDIF
     1546
     1547!
    14921548!-- Calculate tendencies for the next Runge-Kutta step
    14931549    IF ( timestep_scheme(1:5) == 'runge' )  THEN
     
    15471603!-- Drag by plant canopy
    15481604    IF ( plant_canopy )  CALL pcm_tendency( 3 )
     1605
     1606!
     1607!-- Effect of Stokes drift (in ocean mode only)
     1608    IF ( stokes_force )  CALL stokes_drift_terms( 3 )
    15491609
    15501610!
Note: See TracChangeset for help on using the changeset viewer.