Skip to content

Commit

Permalink
Calculate probability of breaking for Filipot as in Ardhuin (for SDSB…
Browse files Browse the repository at this point in the history
…CHOICE 2 as in 1)
  • Loading branch information
benoitp-cmc committed Sep 18, 2023
1 parent a476ee8 commit d73e295
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions model/src/w3src4md.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2410,6 +2410,33 @@ SUBROUTINE W3SDS4 (A, K, CG, USTAR, USDIR, DEPTH, DAIR, SRHS, &
END IF
END DO
!
! 2.a.1 Computes saturation
!
EPSR = SQRT(SSDSBR)
BTH(:) = 0.

DO IK=IK1, NK
FACSAT=SIG(IK)*K(IK)**3*DTH
IS0=(IK-1)*NTH
BTH(IS0+1)=0.

IF (SSDSDTH.GE.180) THEN ! integrates around full circle
ASUM = SUM(A(IS0+1:IS0+NTH))
BTH(IS0+1:IS0+NTH)=ASUM*FACSAT
ELSE
DO ITH=1,NTH ! partial integration
IS=ITH+(IK-1)*NTH
BTH(IS)=DOT_PRODUCT(SATWEIGHTS(:,ITH), A(IS0+SATINDICES(:,ITH)) ) &
*FACSAT
END DO
END IF
END DO !NK END
!
! Computes Breaking probability
!
PB = (MAX(SQRT(BTH)-EPSR,0.))**2
PB = PB * 28.16
!
PB = (1-SSDSC1)*PB2*A + SSDSC1*PB
! Compute Lambda = PB* l(k,th)
! with l(k,th)=1/(2*pi²)= the breaking crest density
Expand Down

0 comments on commit d73e295

Please sign in to comment.