Hello,
I’ve encountered an interesting problem relating to prescribing open boundary elevations using subroutine BORD in Telemac2D (v6.1).
Positive, temporally varying values of HBOR are fed back into the simulation from the BORD subroutine with no problem. The problem is that negative values of HBOR prescribed at the open boundary are replaced by a value of 0.
I’ve included a HBOR write-command into the end of the ‘loop on all boundary points’ section of BORD and this shows that the negative values of HBOR are definitely being passed back to Telemac2d so I presume my problem is located in the main program, not the Fortran file.
Exclusion of the PRESCRIBED ELEVATION keyword in the steering file results in a permanent open boundary elevation of 0 (I understand that a PRESCRIBED ELEVATION value is required, even when boundary elevations are being prescribed dynamically by BORD, to provide an elevation value for the first time-step?).
Negative boundary elevations are prescribed in the M2-wave case tutorial so I’m sure that it’s possible to prescribe negative values. I’ve compared the fortran files and cas files between the M2Wave case and my model and there appears to be no significant differences.
Here’s a list of the possible causes I’ve ruled out:
HBOR(K) = MAX( 0.D0 , Z-ZF(NBOR(K)) ) function I removed this max function whilst modifying BORD (replacing it with HBOR(K) = Z-ZF(NBOR(K)))
PRESCRIBED ELEVATION keyword The apparent minimum boundary elevation (i.e. 0) is not related to the keyword value.
PRESCRIBED ELEVATION given at four levels: Boundary Conditions file, Steering file, Open Boundaries file, Fortran file The HBOR values output from BORD should be the last level at which elevations can be prescribed so I don’t understand why negative values are being made equal to 0. Even so, I checked whether this apparent limit is related to the HBOR values listed in the Boundary conditions file (=0 by default) and it’s definitely not.
Problems relating to bathymetry prescription at the boundary I’ve double checked and all of my open boundary nodes have bathy values well below 0. I thought it might be a problem relating to the ‘ipobo’ component of the mesh (as defined in Blue Kenue) but Martin Serrer has stated that ipobo is automatically generated (post #2971) and Jean-Michel suggests that the IPOBO NPOIN array is never used (post #2849). Even so, it seems to me like this problem must be related to some sort of apparent depth limit on the open boundary nodes, possibly defined by the way in which free surface elevation and bathymetric depth are defined?!
Any help with this would be much appreciated, sorry for the long post, I thought it best to include all the available information. I’ve attached my Fortran file.
Thanks in advance,
Steve