Welcome, Guest
Username: Password: Remember me

TOPIC: Wave series as boundary condition

Wave series as boundary condition 2 years 6 months ago #40385

  • omar
  • omar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 23
Hello toan

I followed your interactions on this topic, and i'm exactly on a case like yours. I already read the 7.2.7 session of tomawac v8p2. The problem is that i didn't undesrtand how to get the IMPOSED SPECTRA FILE and how to read the *.spe files in general.
Also, i have an other question, can i get the results of Hm0 on a special point? i think that the PUNCTUAL RESULTS FILE give me the direction and frequency but not the Hm0.

I would be very grateful for any help

With best regards

OH
The administrator has disabled public write access.

Wave series as boundary condition 2 years 6 months ago #40386

  • taoan
  • taoan's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
  • Thank you received: 9
Hello,

I think you need to get some skill with python programming to understand the python sript that I posted.
The script read wave data from a netcdf file and write this data to a *.spe file. You will need Xarray python module to read the netcdf file and the MHKIT python module to write a jonswap spectra from the variables Hs, Tp and Direction. The PPutils python module is used to read the previous *.spe file and rewrite it with the new wave data.

I recommend you to study the concept of jonswap wave spectrum here to understand why the *.spe file give you the direction and frequency but not the Hm0. You also can extract the time series of Hm0 from Tomawac outputs using the Blue Kenue tool.

With best regards,

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

Wave series as boundary condition 2 years 6 months ago #40420

  • wvmk.x
  • wvmk.x's Avatar
Hi Taoan,

I'm new to TELEMAC and TOMAWAC - trying to figure out how to set the time varying BCs. Like your approach and I'm trying to follow it. I have a question on the wave directions in your code:

Ds=(waves+90)*-1

I understand in WW3 wave direction is defined as "wave angle from". I read somewhere in the forum that in TOMAWAC wave angle is defined "wave angle towards". I assume the above code is to convert the WW3 wave angle to TOMAWAC wave angle. But this conversion doesn't seem correct to me. If you could shed some highlights that would be super helpful. Thanks!

Gang
The administrator has disabled public write access.

Wave series as boundary condition 2 years 6 months ago #40425

  • taoan
  • taoan's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
  • Thank you received: 9
Hello Gang,

I think that the best way to check if the wave direction is correct is by plotting your .spe file.

You can do it using the FUDAA Post tool.

In my case (see attachments) I have waves from SE, which are set to Tomawac using wave angle towards. This manner my spectra plot shows the energy peak in NW direction.

With best regards,

Taoan
Attachments:
The administrator has disabled public write access.

Wave series as boundary condition 2 years 4 months ago #40633

  • hani
  • hani's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thank you, I have succeeded execute spectrum_ww3_telemac_slf-pputils.py. Can the same previous_spectra file be used for every case? or should it be different for each geometry file? Should we run the static simulation to define the previous_spectra file? Could you please tell me what static stimulation is?

Thank you for being so helpful.
The administrator has disabled public write access.

Wave series as boundary condition 2 years 4 months ago #40655

  • taoan
  • taoan's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
  • Thank you received: 9
Hello,

This is an interesting question.

I'm not sure, but I believe that the data array of the .spe file depends on the number of frequencies you set in the tomawac sterring file. So, I think you should use a previously calculated .spe file from a simulation with similar configuration.

I believe you don't need to change the spe if you change the telemac geometry file, as the .spe data matrix does not depend on the telemac geometry file.

I suggest running a static simulation to create the .spe file because it is faster. When I refer to the static simulation, I mean that there is no variation of the spectrum in time.

I hope this can help you

With best regards,

Taoan
The administrator has disabled public write access.

Wave series as boundary condition 2 weeks 4 days ago #45684

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hi Pat,
In your file 'offshore_boundary_waves.txt', could you please clarify which wave direction you used? Was it the mean direction or the peak direction?
Thank you in advance for the explanation.
Best regards,
Mourad
The administrator has disabled public write access.

Wave series as boundary condition 1 week 22 hours ago #45707

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hi Mourad,

Sorry for the late reply. It was a while back when I wrote those modifications. A quick look at the code suggests that the following TOMWAWAC variables are populated with values read from the file:

HM0L - Sig. wave height
FPICL - Peak frequency
TETA1L - Boundary main direction

I would have used mean wave direction in my analyses.

Best,

Pat
The administrator has disabled public write access.
Moderators: tfouquet

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