Welcome, Guest
Username: Password: Remember me

TOPIC: Perl versus Python scripts

Perl versus Python scripts 6 years 7 months ago #29557

  • Karen
  • Karen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Hi,

I have a question about the differences between the Perl scripts and the Python scripts. I ran the same simulation using the Perl scripts (v6p1) and the Python scripts (v6p3).

To my surprise the results were quite different. In my simulation, there is a canal composed of two portions: an upstream rectilinear portion and a downstream curvilinear portion. A hydraulic jump forms in a rectilinear portion. Telemac2D v6p1 (Perl scripts) models the hydraulic jump well, with results roughly matching those calculated with a 1D model. However, v6p3 (Python scripts) has trouble converging. After reducing the time step significantly, compared to that used with v6p1, the results are still unstable with v6p3.

I realize that I am using quite older versions of Telemac2D, but I was wondering if anyone knows if the Perl scripts are generally more stable than the Python scripts? I think I remember reading that somewhere in the documentation…but I may be wrong! Or could it be an issue with Telemac v6p3 that has been corrected in the later versions?

I am a bit concerned with this because I saw that the Perl scripts will probably be phased out in the next versions of Telemac.

Thank you!
The administrator has disabled public write access.

Perl versus Python scripts 6 years 7 months ago #29561

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

This was a bug in v6p3. It was corrected afterward.
The results are the same with Perl and Python now.
And indeed the Perl scripts were removed in v7p2.
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: Karen
Moderators: pham

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