Welcome, Guest
Username: Password: Remember me

TOPIC: wind in telemac2d

wind in telemac2d 11 years 2 months ago #10378

  • fbatif
  • fbatif's Avatar
Just to be sure, I want to make a run with telemac2d and tomawac coupled. I have a wind file with the serafin format. Tomawac is able to read this file but not Telemac?
For telemac i have to modify the meteo subroutine to read it?
Thanks
François
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10379

  • jmhervouet
  • jmhervouet's Avatar
Hello,

No, we just mean that there is no transmission of wind data between the coupled codes, so if you want wind in Telemac-2D, just add wind as if it were only with Telemac-2D, do the same on Tomawac side, and the coupling will work. It may be that the wind file declared on both sides is actually the same, but it will be copied by scripts under 2 different names, in the temporary folder.

In practice, different winds could even be applied, there is no consistency checking.

Regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10380

  • fbatif
  • fbatif's Avatar
sorry my question wasn't clear, i shouldn't talk about coupling.
Tomawac can read a wind file with the format serafin but it seams that Telemac-2D does not and to read a serafin file in Telemac-2D i have to modify the meteo subroutine right?
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10382

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Ah yes, that's it, to have a space varying wind in Telemac-2d you would have to read a serafin file (provided it is the same mesh, otherwise it would require an interpolation that would preferably done before). You can inspire from prosou.f in telemac-2d library, and its "CALL TO FIND_IN_SEL" that looks for forcing terms in a file.

Regards,

JMH
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10383

  • fbatif
  • fbatif's Avatar
ok, the wind is already interploated on the mesh,
i'll read prosou.f
Thanks a lot
regards
François
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10389

  • fbatif
  • fbatif's Avatar
wouldn't be "easier" to do as in tomawak and use CALL LIT(...)?
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10391

  • jmhervouet
  • jmhervouet's Avatar
CALL LIT is a lower level subroutine, it reads a record but you need to know the serafin format to know where is your record in the file, whereas FIND_IN_SEL knows the format and returns the last record of the requested variable, or the time step you want.

JMH
The administrator has disabled public write access.

wind in telemac2d 11 years 2 months ago #10392

  • fbatif
  • fbatif's Avatar
ok thank! i'll try to use FIND_IN_SEL
Regards
François
The administrator has disabled public write access.
Moderators: pham

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