Welcome, Guest
Username: Password: Remember me

TOPIC: What is the extension of the casier file?

What is the extension of the casier file? 18 hours 24 minutes ago #45735

  • slf
  • slf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
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? 11 hours 45 minutes ago #45741

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.
Moderators: JFourdrinoy

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