Welcome, Guest
Username: Password: Remember me

TOPIC: Confusion about how to run mascaret examples

Confusion about how to run mascaret examples 7 years 7 months ago #26180

Hi, all
I am studying how to run the mascaret examples these days. I have successfully build the source codes of v7p2 edition and the configuration environment is ubugfortrans.
Now, I am confusion about how to run the examples.
I follow the application guide (mascaret v8.0) to build up a example case named steady flow over a weir. The pre-processer is mascaret-distrib-3.5.jar and a *.masc file was generated. However, I can not run the case when clicking on the computation icon "comp.".
Alternatively, I run my case in the python environment using "python runcode.py mascaret -s 1d_weir/test1.masc". And the error comes:
_____________
runcode::main:
:
|runCAS: could not find the DICO file: /home/lairuixun/opentelemac/v7p2/sources/mascaret/mascaret.dico

By the way, I noticed that, in the source code of v7p2, all the examples of mascaret have three sub folder including cas, masc and xml. I guess the *.masc file can be generated using mascaret-distrib-3.5.jar. But how about the mascaret0.cas in the cas folder? Does the *.cas file is generated using fudda-pro just same as telemac2d ?
Attachments:
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26186

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
What kind of error message you obtained when you click on computation icon in the fudaa-mascaret interface?
This is normally the main way to use mascaret...
Otherwise, you could use it directly but it needs some files (dico, geometry, laws at boundaries...)
All the required files are avaialble in the running directory of the fudaa mascaret application or you could also export them from fudaa-mascaret.

Hope this helps
Christophe
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26194

Thanks for your reply!
When I run the test case in fudaa-mascaret using the file of test25.masc, the dialog of general result popup. However, in the message of computational kernel, there's nothing except for:
***** /tmp/fudaa_srv/mascaret/mascaret_8_0/mascaret launched *****
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26195

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I just made a test with the same example and it works well on my computer
MASCARET v8.1.0 == Copyright (C) 2000-2015 EDF-CEREMA ==

 Data File : mascaret0.xcas

 Study name : Etude hydraulique1d

 Hydraulic statistics (prior solve phase)
    ------ Geometric parameters ------
    Number of reach(es)       =            1
    Number of cross-sections  =           33
    Number of open boundaries =            2
    Number of junction(s)     =            0
    Number of inflow(s)       =            0
    Number of lateral weir(s) =            0
    Number of storage area(s) =            0
    Number of link(s)         =            0
    Number of dam(s)/weir(s)  =            0
    ------ Numerical parameters ------
    Number of 1D nodes (mesh) =          119
    Computation Kernel        =            2
    Initial time step         =      1.0E+00
    Variable time step?       =            0

 Start the Simulation...
 Simulation ended successfully in   0.249600992      s
But I'm on windows and maybe the problem is related to your ubuntu environments...
Maybe you have to check manually in the tmp directory (given in the message) if you could run mascaret manually from a terminal ...

Hope this helps
Christophe
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26196

Alternatively, I tried to run the example case using mascaret.py:
$ python runcode.py mascaret -s 1d_weir/mascaret0.cas
And the error comes:
_____________
runcode::main:
:
|runCAS: could not find the DICO file: /home/lairuixun/opentelemac/v7p2/sources/mascaret/mascaret.dico

If I do not want to run a mascaret in fudaa-mascaret interface, is it the right way to run a mascaret case using build ubugfortrans?
I have not find any information about this in the application guide of mascaret v8.0.
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26200

I have solved my problem!
In previous test, I directly run the software using mascaret-distrib-3.5.jar.
Now, I installed mascaret using fudaa-mascaret-3.5-installer.jar. After run the case, I got the right results.
The administrator has disabled public write access.

Confusion about how to run mascaret examples 7 years 7 months ago #26202

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

By the way you need to use mascaret.py and not runcode.py mascaret.
I'll try to add it to runcode soon.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: lairuixun
Moderators: JFourdrinoy

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