Welcome, Guest
Username: Password: Remember me

TOPIC: What is the extension of the casier file?

What is the extension of the casier file? 1 month 2 days ago #45735

  • slf
  • slf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I created a storage area while building a one-dimensional model, and I exported the casier file using fuadd. However, when I try to run the model calculations using Python, I am unsure about the file extension type for the casier file. I wrote it as .geo, but it doesn't seem to work. Can anyone help me? Here is a part of my Python file.


# Mascaret files:
# - files_name : list of file names needed for the simulation
# - files_type : list of the extension of files (with same index)
# Warning : for listin file the extension is 'listing'


# Mascaret files & import for second instance
files_name = ['rezo.xcas', 'geometrie', 'casier', 'tarage.loi',
'hydrogramme.loi', 'output.lis', 'output.opt',
'init.lig']
files_type =
study_files_2 = [files_name, files_type]
The administrator has disabled public write access.

What is the extension of the casier file? 1 month 2 days ago #45741

  • JFourdrinoy
  • JFourdrinoy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4
  • Thank you received: 1
Hello
The file extension has no impact on the calculation. The file type is determined by files_type. There are several types: “xcas”; “geo”; “loi”; “casier”; “res”;"listing",... (see the API doc [~/telemac/documentation/mascaret/FR/API-Specifications_techniques]). Initialization is done separately
If we go back to your code, it would look like this:

from telapy.api.masc import Mascaret
masc = Mascaret()
masc.create_mascaret(iprint=0)
files_name = ['rezo.xcas', 'geometrie', 'casier', 'tarage.loi',
'hydrogramme.loi', 'output.lis', 'output.opt']
files_type = ['xcas','geo','casier','loi','loi','listing', 'res']
study_files_2 = [files_name, files_type]
masc.import_model(study_files_2[0], study_files_2[1])

masc.init_hydro_from_file('init.lig')

Hope this helps
The administrator has disabled public write access.
The following user(s) said Thank You: slf

What is the extension of the casier file? 1 month 1 day ago #45746

  • slf
  • slf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
My issue has been resolved. Thank you very much for your help!
The administrator has disabled public write access.
Moderators: JFourdrinoy

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