Welcome, Guest
Username: Password: Remember me

TOPIC: new to tomawac // error

new to tomawac // error 3 years 8 months ago #37872

  • Cara
  • Cara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hey!

I am new to Telemac and TOMAWAC specifically and I tried to set up a model and keep it as simple as possible. Yet I still get an error when running the simulation and I don't get what's wrong. I'll attach my files. Thanks in advance!
Sorry if this is really basic again, but this is what it says:

********************************************
* SUBROUTINE LECDON_TOMAWAC *
* CALL OF DAMOCLES *
* VERIFICATION OF READ DATA *
* ON STEERING FILE *
********************************************

WARNING IN DICTIONARY:
FOR KEYWORD: VARIABLES FOR 2D GRAPHIC PRINTOUTS
THE NUMBER OF DEFAULT VALUES 1 IS DIFFERENT FROM THE DECLARED SIZE 2

OPENING FILES FOR TOMAWAC

*******************************
* MEMORY ORGANISATION *
*******************************

READ_MESH_INFO: TITLE= 02_09_Submesh_geo
NUMBER OF ELEMENTS: 48595
NUMBER OF POINTS: 24928

FORMAT NOT INDICATED IN TITLE

MXPTEL (BIEF) : MAXIMUM NUMBER OF ELEMENTS AROUND A POINT: 9
MAXIMUM NUMBER OF POINTS AROUND A POINT: 9
USER_CORRXY (BIEF):NO MODIFICATION OF COORDINATES

MESH: MESH ALLOCATED

READ_MESH_INFO: TITLE= 02_09_Submesh_geo
NUMBER OF ELEMENTS: 48595
NUMBER OF POINTS: 24928

FORMAT NOT INDICATED IN TITLE

MXPTEL (BIEF) : MAXIMUM NUMBER OF ELEMENTS AROUND A POINT: 9
MAXIMUM NUMBER OF POINTS AROUND A POINT: 9
USER_CORRXY (BIEF):NO MODIFICATION OF COORDINATES

MESH: MESH3D ALLOCATED
ERREUR LORS DE L ALLOCATION DE VECTOR SHP11 %R

STOP 1
PLANTE: PROGRAM STOPPED AFTER AN ERROR
RETURNING EXIT CODE: 2
Attachments:
The administrator has disabled public write access.

new to tomawac // error 3 years 8 months ago #37876

  • thomas.le
  • thomas.le's Avatar
Hi Cara,
I believe that you have an error because you commented the line "VARIABLES FOR 2D GRAPHIC PRINTOUTS". Indeed this is where you decide what your outputs are.
I think you will have another error because of "CONSIDERATION OF A WIND". If you use this keyword you should add a wind file or use "WIND GENERATION" for example.
Moreover I believe that with your time steps/number of time steps the computation might be a bit long. I suggest you to reduce it, at least while you are testing if everything works properly.
Finally and most importantly I believe you should have a look to the test cases of tomawac, it is very helpful to build your model. In your case I recommend the fetch_limited example. The examples are downloaded in your telemac file (telemac_file/examples/tomawac).
Hope this helps!
Thomas
The administrator has disabled public write access.

new to tomawac // error 3 years 8 months ago #37877

  • Cara
  • Cara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hey Thomas,

thanks for the quick reply and all of your advice! I tried using the example files as a guide, but that didn't help me so far.

I thought that the variables were hte problem too, which is why I commented them out so TOMAWAC would use the default values. So they can't really be the problem, right?

I am trying to set up a model driven by a constant wind of 20m/s from North. Which is why I only used the "WIND VELOCITY ALONG Y" and "CONSIDERATION OF A WIND" keywords.

Nevertheless, I set the "VARIABLES FOR 2D GRAPHIC PRINTOUT" to "HM0;DMOY" now, reduced my number of time steps and set "WIND GENERATION" to "1". I still get the exact same error.

I also included the keywords "ABSCISSAE OF SPECTRUM PRINTOUT POINTS", "ORDINATES OF SPECTRUM PRINTOUT POINTS" and "PUNCTUAL RESULTS FILE" now, as they're marked as mandatory. And now it doesn't even seem to read the steering file:


Running your CAS file(s) for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

win7gfors:

+> root: C:\TELEMAC\v8p1r0
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... processing the steering file
Traceback (most recent call last):
File "C:\TELEMAC\v8p1r0\scripts\python3\tomawac.py", line 7, in <module>
main('tomawac')
File "C:\TELEMAC\v8p1r0\scripts\python3\runcode.py", line 272, in main
run_study(cas_file, code_name, options)
File "C:\TELEMAC\v8p1r0\scripts\python3\execution\run_cas.py", line 154, in run_study
my_study = Study(steering_file, code_name, options.w_dir)
File "C:\TELEMAC\v8p1r0\scripts\python3\execution\study.py", line 93, in __init__
self.cas = TelemacCas(self.steering_file, self.dico_file)
File "C:\TELEMAC\v8p1r0\scripts\python3\execution\telemac_cas.py", line 70, in __init__
self._check_choix()
File "C:\TELEMAC\v8p1r0\scripts\python3\execution\telemac_cas.py", line 183, in _check_choix
list_val = value.split(",")
AttributeError: 'list' object has no attribute 'split'


Thanks so much!

Cara
The administrator has disabled public write access.

new to tomawac // error 3 years 8 months ago #37878

  • Cara
  • Cara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
I forgot to include the new steering-file :)

File Attachment:

File Name: V01_2021-02-24.cas
File Size: 1 KB
The administrator has disabled public write access.

new to tomawac // error 3 years 8 months ago #37879

  • thomas.le
  • thomas.le's Avatar
Yes you are right, the variables for graphic printouts might not be the problem here.

I tried your model with tom.cas attached and it computed well. can you try if it compute?

But I think that what you are trying to do is to create wind waves am I right? In this case you will need the LINEAR WAVE GROWTH keyword like in tom2.cas attached aswell. You didn't attached a .cli file and I don't think that it is the issue here but you will also find mine attached.

If it doesn't work what version of telemac are you using? If you run the examples case, does it work properly?
Attachments:
The administrator has disabled public write access.

new to tomawac // error 3 years 8 months ago #37880

  • Cara
  • Cara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Thank you so much Thomas!

If I am using your file instead of mine it does indeed work. I changed one parameter after the other to match your file and it seems to have been the "NUMBER OF DIRECTIONS" that were problematic. I have no idea why, but I am glad the simulation is running now.

I really appreciate that you took the time to help me (:
The administrator has disabled public write access.

new to tomawac // error 2 years 9 months ago #39791

  • creigelde
  • creigelde's Avatar
Cara wrote:
AttributeError: 'list' object has no attribute 'split'


Python lists cannot be divided into separate lists based on characters that appear in the values of a list. This is unlike strings which values can be separated into a list. The AttributeError is an exception thrown when an object does not have the attribute you tried to access. The 'list' object has no attribute 'split' and you're trying to call python split function on the whole list of lines, and you can't split a list of strings, only a string. So, you need to split each line, not the whole thing.

To solve the above problem, you need to iterate over the strings in the list to get individual strings; then, you can call the split() function.
The administrator has disabled public write access.
Moderators: tfouquet

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