Welcome, Guest
Username: Password: Remember me

TOPIC: Choice of language for cas file

Choice of language for cas file 3 years 3 months ago #38997

  • GGerard
  • GGerard's Avatar
Hello,

I'm trying to run rainfall-runoff model. I take the example delivered by TELEMAC. My license work on French only (i'm not sure but i think because the executor don't recognize English key word)

Is there a full list of key word translate ?
Or is there a key word which allow us to make the running in English ?

For example, I don't find what translate to "Rainfall-runoff model"

Thank's a lot for responses and tips.
Guillaume.
The administrator has disabled public write access.

Choice of language for cas file 3 years 3 months ago #38998

  • GunnarÖ
  • GunnarÖ's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 4
Hello

You can find all keywords in the dictionary-file telemac2d.dico located in $HOMETEL\sources\telemac2d\

Regards
The administrator has disabled public write access.
The following user(s) said Thank You: GGerard

Choice of language for cas file 3 years 3 months ago #38999

  • GGerard
  • GGerard's Avatar
Thank(s GunnarÖ for quick reply !

I still have a problem for these two key words :

- RAINFALL-RUNOFF MODEL (MODELE PLUIE-DEBIT)

- ANTECEDENT MOISTURE CONDITIONS (CONDITIONS D"HUMIDITE PRECEDENTE)


When I try to run a simulation with '-s', telemac screen give me this feedback "AT LINE 11 THE KEY-WORD : CONDITIONS D"HUMIDITE PRECEDENTE IS UNKNOWN …

Is the list up to date ? Or is it possible that this list is already obsolete ?

Regards.
The administrator has disabled public write access.

Choice of language for cas file 3 years 3 months ago #39000

  • GunnarÖ
  • GunnarÖ's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 4
The .dico file is up to date.
I'm not 100% sure about what your problem is but my best bet would be that you used a double qoute (") instead of a single (')

Regards
The administrator has disabled public write access.
The following user(s) said Thank You: GGerard

Choice of language for cas file 3 years 3 months ago #39001

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Guillaume,

Which release of TELEMAC-2D are you using?

In the steering file, you cannot mix French and English keywords (the possible error message is that DAMOCLES does not know one keyword at least).

If you have a TELEMAC environment loaded, you can use the script called manip_cas.py with option translate, e.g.:
manip_cas.py translate telemac2d t2d_name_example.cas
or use the -h option to know more how to use it.

In the TELEMAC-2D user manual available in $HOMETEL/documentation/telemac2d/reference folder or in
wiki.opentelemac.org/doku.php?id=documentation_latest
you have the translation of every TELEMAC-2D keyword from French to English or vice versa in chapter 3. In chapter 2, you have the keywords sorted by rubriques.

GunnarÖ is right for French. As the dictionary file telemac2d.dico is read by Fortran, the keywords have to be written with a double quote in this file, but in the steering file, you have to use a single quote.
Anyway, it is advised to use English keywords (every example of the database is written in English).

But I am curious to know which release you are using as it should be usable with English.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: GGerard

Choice of language for cas file 3 years 3 months ago #39002

  • GGerard
  • GGerard's Avatar
Thanks a lot pham and GunnarÖ for quick answers !

I use TELEMAC v8p1r2 PARALLEL.

You are right pham, Telemac screen return 'DAMOCLES' many times.

I already try simple and double quote, unsuccessfuly.

For telemac2d.dico, did I need to download it on my Library ?

Regards.
The administrator has disabled public write access.

Choice of language for cas file 3 years 3 months ago #39003

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello again,

You should use the latest release v8p2r1 as no assistance is provided for older releases.

Anyway, what language did you choose when installing TELEMAC? In the systel.cfg configuration file, you should use a variable language = 2

The dictionary telemac2d.dico is dedicated to a special release. Changing it is at your own risk.

You should investigate to be able to run steering files in English. From that, you will be able to start from the pluie example which should work.

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: GGerard

Choice of language for cas file 3 years 3 months ago #39004

  • GGerard
  • GGerard's Avatar
I find the systel.cfg file and I change the language in 2.

I try another running with english file but I still have some problems.
TELEMAC screen return this message :


"Traceback (most recent call last):
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\telemac2d.py", line 7, in <module>
main('telemac2d')
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\runcode.py", line 272, in main
run_study(cas_file, code_name, options)
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\execution\run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\execution\run_cas.py", line 43, in run_local_cas
my_study.compile_exe()
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\execution\study.py", line 332, in compile_exe
self.cfg, self.code_name)
File "C:\opentelemac-mascaret\v8p1r2\scripts\python3\execution\process.py", line 644, in process_executable
str(code)+').\n '+tail)
utils.exceptions.TelemacException: Could not link your executable (runcode=1)."


I will try on other project in order to see if I can run simulation in English.

Best regards.
The administrator has disabled public write access.
Moderators: pham

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