Hi Christophe,
I've got a question regarding the borh.f (niamh.f) file you attached for the download. I actually got the same problem as Niamh in terms of wave direction and was wondering if you have any particular advice or information regarding the phase and especially the wavenumber calculation-loop. This loop:
C --- WAVE LENGTH FROM INFINITY
C COMPUTE KINF FROM OMEGA AND DINF (explicit method)
DINF =5.2D0
X0 =0.
Y0 =0.
AUX1 =DINF*OMEGA**2/GRAV
AUX2 = 1.D0 + AUX1 *( 0.6522D0 +
& AUX1 *( 0.4622D0 +
& AUX1 *
& AUX1 *( 0.0864D0 +
& AUX1 *( 0.0675D0 ) )))
KINF = SQRT( AUX1*(AUX1 + 1.D0/AUX2) )
KINF = KINF/DINF
was just copy and pasted in niamh's file from the btwi example, as far I could see.
I tried to find any further explanation or documentation to understand what's behind this and how the wavenumber is calculated but I even didn't find a proper documentation about the variables. For instance, can you explain what is AUX1 and AUX2? Is this always the same loop no matter what the conditions (direction and HB) change? (except the predefined depth in DINF)? As far I can see it uses the given values in the both.f file, can you confirm this?
Any explanation would be appreciated, I'm trying to get a touch of Artemis and it feels a bit confusing at the moment.
Cheers, Tim