Hi all,
Mid-way in my simulation I'm receiving the error for inter-crossing planes below, where the differences between the meshes are very small and occur at the boundary:
FLUX BOUNDARY 2: 0.7750000 M3/S ( >0 : ENTERING <0 : EXITING )
CALCOT: PLANES 4 AND 5
INTERCROSS AT POINT 5
LOWER POINT : 0.63383130114213038
HIGHER POINT: 0.63379595547197976
DIFFERENCE : -3.53456701506216220E-005
DEPTH : 2.92930866075214701E-002
PLANTE: PROGRAM STOPPED AFTER AN ERROR
RETURNING EXIT CODE: 2
The guilty point changes with each simulation. I'm using the tidal flats options below:
TREATMENT OF NEGATIVE DEPTHS : 2
TIDAL FLATS = YES
OPTION FOR THE TREATMENT OF TIDAL FLATS : 1
as recommended elsewhere on the forum to avoid problems with the mesh.
I've tried increasing the initial depths and the time-step but it doesn't change anything.
My MESH TRANSFORMATION = 0, as I prescribed a few of fixed layers at the bottom in CALCOT. I then changed the references to the bottom in CALCOT to the top-most layer of my prescribed layers, creating an artificial bottom. I did this in all sections, so that sigma transformation occurs between the new bottom and NPLAN, and the code assigning DISMIN also treats it as the bottom i.e.
!SECTION 02 - PLANE DISTANCE REGULATION
! the layer above the bottom (1) is changed to 5, as layer 4 = new bottom so:
DO IPLAN=5,NPLAN-1
IF(TRANSF_PLANE%I(IPLAN).EQ.3) THEN
! IF NOT POSSIBLE BECAUSE OF FREE SURFACE OR BOTTOM, A SECURITY
! DISTANCE, DISMIN, IS USED. ALL PLANES THAT WOULD CROSS E.G.
! THE BOTTOM AVOID IT AT A DISTANCE DISMIN*RPLI, SEE RPLI BELOW
RPLS = DBLE(NPLAN-IPLAN) / DBLE(NPLAN)
RPLI = DBLE(IPLAN- 1) / DBLE(NPLAN)
DO IPOIN = 1,NPOIN2
ZFP = ZZ(IPOIN,4)
ZSP = ZZ(IPOIN,NPLAN)
DISBOT = MIN(ZSP-ZFP,DISMIN_BOT)
DISSUR = MIN(ZSP-ZFP,DISMIN_SUR)
ZZ(IPOIN,IPLAN)=MIN( ZSP-DISSUR*RPLS,
& MAX(ZPLANE%R(IPLAN),ZFP+DISBOT*RPLI))
ENDDO
ENDIF
ENDDO
The error states that the problem comes at the intersection between layers 4 (i.e. the new bottom) and the layer above it. However i'm not sure how this can be given that I stated layer 4 to be treated as the new bottom and so DISMIN should be applied as per the code above.
My simulations using the above code have worked fine when using coarser and more refined meshes, but for this mesh (0.2m, 24 layrs) it seems not to work! Does anyone know what might cause Telemac to crash in such a way given the above?