Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with tracer with Telemac 6.0 2D and python

Problem with tracer with Telemac 6.0 2D and python 12 years 1 week ago #6298

  • sobo634
  • sobo634's Avatar
Hello everybody,

I manage to have a good mesh, and my simulation is working good :laugh:

But now when I want to tune the tracer (I read the manual 6.0, but I catch
an 5.8 exemple which I inspired), It's doesn't work.

this my "cas" file :


FICHIER DES CONDITIONS AUX LIMITES : MES-A-Tra1.cli // cli.txt
FICHIER DE GEOMETRIE : geo
//FICHIER DE REFERENCE : ref
FICHIER DES RESULTATS : res
//FICHIER DES FRONTIERES LIQUIDES : qsl.txt
/

/
PERIODE POUR LES SORTIES GRAPHIQUES = 40 PERIODE DE SORTIE LISTING =10
//TRACEUR = OUI
VARIABLES POUR LES SORTIES GRAPHIQUES = U,V,H,S,T,B,K,E,D
VARIABLES A IMPRIMER = ' ' // BILAN DE MASSE = VRAI
SUITE DE CALCUL : NON
PAS DE TEMPS = 5 NOMBRE DE PAS DE TEMPS = 1500
BANCS DECOUVRANTS = NON // MASS-LUMPING SUR H : 1.
//FORME DE LA CONVECTION = 1;5;1;2
OPTION DE SUPG = 1;2;1;2
SOLVEUR : 6 PRECISION DU SOLVEUR = 1.E-5




/
/ CONDITIONS INITIALES
CONDITIONS INITIALES : 'COTE CONSTANTE'
COTE INITIALE : 0.
/
/ CONDITIONS AUX LIMITES
/
/
/
LOI DE FROTTEMENT SUR LE FOND = 3 /strickler
COEFFICIENT DE FROTTEMENT = 40
VITESSES IMPOSEES : 0.4;0
COTES IMPOSEES : 0;0;0
/
/
TRACEUR
/
NOMBRE DE TRACEURS = 1
NOMS DES TRACEURS = 'TOTO MG/L'
ABSCISSES DES SOURCES : 763258
ORDONNEES DES SOURCES : 6252642
DEBITS DES SOURCES : 0.185
//VALEURS DU TRACEUR AUX SOURCES : 1.
//VALEURS DU TRACEUR AUX SOURCES : 0.0008.
//DIFFUSION DU TRACEUR : NON
//COEFFICIENT DE DIFFUSION DU TRACEUR : 0.00001
//MASS-LUMPING SUR LE TRACEUR : 1.



//LOI DE FROTTEMENT SUR LE FOND = 3 COEFFICIENT DE FROTTEMENT = 50.
CORIOLIS : OUI
COEFFICIENT DE CORIOLIS = 9.91625E-5

MODELE DE TURBULENCE = 4 //COEFFICIENT DE DIFFUSION DES VITESSES = //1.E-6
/DEBITS IMPOSES = 0.;750. COTES IMPOSEES = 265.;0.
/COTE INITIALE = 265. CONDITIONS INITIALES = 'COTE CONSTANTE'
/OPTION POUR LES FRONTIERES LIQUIDES : 1;1
//VALIDATION : OUI
DISCRETISATIONS EN ESPACE : 11;11
STOCKAGE DES MATRICES : 3 PRODUIT MATRICE-VECTEUR : 1
/ //
&ETA

I have on the screen : 1 valeur des source attendu
0 trouvé


And if I write
in my 'cas' file

VALEURS DU TRACEUR AUX SOURCES : 0.0008.
//DIFFUSION DU TRACEUR : NON

I have the following output :

uncontrolled error from python :: KeyError<'VALEURS DU TRACEUR AUX SOURCES',>



Thanks in advance ;)

Best regards
The administrator has disabled public write access.

Problem with tracer with Telemac 6.0 2D and python 12 years 1 week ago #6303

  • jmhervouet
  • jmhervouet's Avatar
Hello,

It seems that in the line :

VALEURS DU TRACEUR AUX SOURCES : 0.0008.

you have a wrong trailing '.' at the end, and then it is not recognized as a real number, this is why Python complains.

JMH
The administrator has disabled public write access.

Problem with tracer with Telemac 6.0 2D and python 12 years 1 week ago #6310

  • sobo634
  • sobo634's Avatar
Hello M. ERVOUET, everybody,


Even if i wrote
VALEURS DU TRACEUR AUX SOURCES : 0.0008
//DIFFUSION DU TRACEUR : NON

or

VALEURS DU TRACEUR AUX SOURCES : 1
//DIFFUSION DU TRACEUR : NON

I still have the same error

Thanks in advance

best regard
The administrator has disabled public write access.

Problem with tracer with Telemac 6.0 2D and python 12 years 1 week ago #6313

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hello,

dico file in v6p2 gives this:
NOM = 'VALEURS DES TRACEURS DES SOURCES'
NOM1 = 'VALUES OF THE TRACERS AT THE SOURCES'

Maybe this is the problem, in v6p2 this is the keyword, so have a look in the v6p0 dictionary (dico file).

Best regards,
Clemens
The administrator has disabled public write access.
The following user(s) said Thank You: sobo634

Problem with tracer with Telemac 6.0 2D and python 12 years 1 week ago #6326

  • riadh
  • riadh's Avatar
Hello

Try to upgrade to V6P2, that's for sure much more better!
A lot's of technical aspects have been improved since V6P2, including Python scripts.

My best regards,
Riadh
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.