Hello all,
I am trying to run a simulation with TELEMAC3D (5 horizontal levels) coupled with GAIA. I have two types of non cohesive sediments, for now evenly distributed on the whole domain (50%, 50%).
I want to define some area of my mesh as non-erodible (rocky zones). To do this :
1) I created a 'NOER' variable in slf file, with non-erodible zones at 0.
2) I read this 'NOER' variable with a python file (see below), and wrote a custom user_bed_init.f file with the thickness of the layer to 0 for all nodes in non erodible zones.
This simulation runs fine without the custom user_bed_init.f file. When I try to add it, however, I get from the very first iteration the following message :
================================================================================
ITERATION 0 TIME: 0.0000 S
GAIA COUPLED WITH: TELEMAC3D
BEDLOAD EQUATION SOLVED IN 50 ITERATIONS = MAXIMUM
I can't figure out where the problem is, because this exact Python code worked on previous studies... I tried to modify keyword MAXIMUM NUMBER OF ITERATIONS FOR POSITIVE THICKNESS = 1000, but it does not solve the problem. Did I miss something ?
Thank you very much,
Coline
PS : my files :
creocean.fromsmash.com/RpvEtl6jXl-ct
PPS : python code used to modify user_bed_init
geo = TelemacFile(file_name_tel)
# 0 : non erodible zones
# everywhere else: erodible depth = 100 (default value)
noer=geo.get_data_value('NOER', 0)
H=str()
with open("user_bed_init_hed.f","r") as fich:
for l in fich:
H=H+str(l)
with open("user_bed_init_erod.f",'w') as fich:
fich.write(H)
for i in range(len(noer)):
if noer[i]==0:
fich.write(' ESTRATUM(1,'+str(i+1)+') = 0.D0\n')
fich.write(' RETURN\n')
fich.write(' END')