Hi,
I have a related question to pilou1253 for when applying multiple drag zones in DRAGFO.
First I considered a single drag zone. The drag is defined as a bed drag parameterisation of the form:
F= rho * CD * U**2 * A (Eq 1)
Where CD is the drag coefficient, rho is water density and A is the drag zone area (=AIRE). In DRAGFO I express FUDRAG and FVDRAG as shears by dividing Eq 1 through by A (and rho & depth as standard), as shown below:
DO I=1,BIEF_NBPTS(11,MESH)
IF(INPOLY(X(I),Y(I),XSOM,YSOM,NSOM)) THEN
depth=max(H%R((I)), 0.01)
UNORM = MAX((SQRT(UN%R(I)**2+VN%R(I)**2)),1.D-4)
FUDRAG%R(I) = -(CD*UNORM)/depth
FVDRAG%R(I) = FUDRAG%R(I)
ENDIF
ENDDO
In doing this I remove the need to calculate AIRE and SOM at all in DRAGFO. I ran this code and typical velocities within the drag zone reduced to 1.9 m/s. However, if I leave the code that calculates AIRE and SOM in my DRAGFO, the values of velocity inside the drag zone reduce to around 1.5 m/s. I do not understand why this is given that FUDRAG and FVDRAG do not rely on AIRE or SOM?
On inspection it appears that the code that calculates AIRE for Quasi Bubble discretization (shown below) is what is affecting this (I use quasi bubble discretization), but I don't understand why. So my second question is, what does the quasi bubble code do to FUDRAG and FVDRAG so that velocities within the drag zone reduce more compared to results where calculations for AIRE and SOM are removed completely?
IF(FU%ELM.EQ.12) THEN
!
DISCLIN=11
CALL CHGDIS(FUDRAG,DISCLIN,12,MESH)
CALL CHGDIS(FVDRAG,DISCLIN,12,MESH)
!
DO IELEM = 1 , NELEM
I4=IKLE%I(IELEM+3*NELMAX)
X4=(X(IKLE%I(IELEM ))+ &
X(IKLE%I(IELEM+ NELMAX))+ &
X(IKLE%I(IELEM+2*NELMAX)))/3.D0
Y4=(Y(IKLE%I(IELEM ))+ &
Y(IKLE%I(IELEM+ NELMAX))+ &
Y(IKLE%I(IELEM+2*NELMAX)))/3.D0
IF(INPOLY(X4,Y4,XSOM,YSOM,NSOM)) AIRE = AIRE + T1%R(I4)
ENDDO
!
ENDIF
Another observation is that if FUDRAG and FVDRAG are calculated after the Quasi Bubble calculation, the velocities remain higher at 1.9m/s. However in the validation dragforce case the quasi bubble code comes after the FUDRAG calculation, so which one is correct, given that in JMH’s earlier reply he suggests calculating AIRE before FUDRAG?
I have attached the 2 DRAGO files, the first does not include calculation for AIRE and gives typical velocities within the drag zone of 1.9 m/s. The second includes calculation for AIRE and gives typical velocities of 1.5 m/s. I am not running in parallel.
Any help would be greatly appreciated.
Cheers
Danny