Welcome, Guest
Username: Password: Remember me

TOPIC: Including non-stationary wind field in TOMAWAC v7p3r1

Including non-stationary wind field in TOMAWAC v7p3r1 6 years 2 hours ago #32094

  • JBS
  • JBS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Thank you received: 3
Hello,

I am trying to include non-stationary wind generation in a TOMAWAC-TELEMAC2D (v7p3r1) model, but I noticed an issue related to the saving of variables TV1, TV2, U1...V2 within WAC.f when reading a type 4 formatted wind file (t U V).

The initialisation (PART=0) is ok, VENUTI is called through CONDIW->LECDOI->VENUTI in WAC: TV1, TV2 etc. are stored correctly. At the end of the IF(PART.LE.0) loop, it seems WAC terminates and is run again from the start with PART=1: the initial values of TV1, TV2 etc. are then lost and the code gives a "segmentation fault - Invalide memory reference" error after calling VENUTI through SEMIMP->NOUDON->VENUTI because TV1 and TV2 have been given a default value, which is very small (10^(-300) or something like that).

This problem is not observed when a stationary wind is considered.

Would you know why TV1 etc. are not saved between the initialisation (PART=0) and the running (PART=1) phases? And how to fix it?

For your information, here are the options I put in the .cas file:

 PRISE EN COMPTE DES TERMES SOURCES = OUI
 FICHIER DES VENTS FORMATE = 'vent_homere_simu_tom.txt'
 FORMAT DU FICHIER DES VENTS = 4
 PRISE EN COMPTE DU VENT = OUI
 VENT STATIONNAIRE = NON
 APPORTS DUS AU VENT = 1 
 COEFFICIENT DE GENERATION PAR LE VENT = 1.2
 CROISSANCE LINEAIRE DES VAGUES = 1

Thank you for your help.
Regards,
JBS.
The administrator has disabled public write access.

Including non-stationary wind field in TOMAWAC v7p3r1 6 years 45 minutes ago #32100

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello

It seems that a command SAVE has disapeared in subroutine wac, i need to inquire why, but meanwhile, i guess that if you put it back in your wac.F (at the end of declarations) it should work.

regards

Thierry
The administrator has disabled public write access.
The following user(s) said Thank You: JBS

Including non-stationary wind field in TOMAWAC v7p3r1 5 years 11 months ago #32107

  • JBS
  • JBS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Thank you received: 3
Yes, it makes sense so.
And it works.
Thank you.
JBS.
The administrator has disabled public write access.
Moderators: tfouquet

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