Welcome, Guest
Username: Password: Remember me

TOPIC: Open TOMAWAC result spectrum file

Open TOMAWAC result spectrum file 6 years 9 months ago #28822

  • pyodimille
  • pyodimille's Avatar
How can I open and display TOMAWAC spectrum punctual result file (.spe)? Seems that BlueKenue doesn't support its extension.
PS: I'm using version v7p3

Thanks!
The administrator has disabled public write access.

Open TOMAWAC result spectrum file 6 years 9 months ago #28826

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
In fact the extension is not so important normally. The Format of this file is serafin, i don't know how bluekenue works but i guess that renaming your file .spe by a .srf or .sel should help BlueKenue to recognise the format.
You can also use fuda or paraview, i have opened some .spe files with both.

Hope this helps

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

Open TOMAWAC result spectrum file 6 years 9 months ago #28828

  • Leballeur
  • Leballeur's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 434
  • Thank you received: 163
Hi,

As Thierry said, Tomawac spectrum files are serafin files, but they are defined in quadrangles, not triangles. This means that the connectivity table has 4 entries, not 3.
BlueKenue v3.3.4 doesn't read it, I didn't try with the latest release 3.10.0 alpha (www.opentelemac.org/index.php/kunena/blu...wnload-site?start=10)

To read it, you can also use:
- python scripts provided with distribution (v7p3r0/scripts/python27/parsers/parserSELAFIN.py)
- pytel tools: github.com/CNR-Engineering/PyTelTools
- matlab tools: fr.mathworks.com/matlabcentral/fileexchange/25021-telemac-tools

I hope it helps!
Regards,
Laurent
The administrator has disabled public write access.
The following user(s) said Thank You: pyodimille

Open TOMAWAC result spectrum file 6 years 9 months ago #28956

  • pyodimille
  • pyodimille's Avatar
First of all (before asking in this forum) i tried to change the extension in .slf and open with BK but didn't work; but now I successfully opened it with Fudaa PrePro.

Thank you!
The administrator has disabled public write access.

Open TOMAWAC result spectrum file 6 years 5 months ago #30355

  • nikos
  • nikos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Thank you received: 1
Hi guys,

although I open the *.spe file with matlab routines referred previously

it is unclear to me how results are written. the manual says that the output is the spectrum for each pair of direction and frequency .

For each point the m.RESULT variable contains an array whose length is the product of the number of frequencies times the number of directions.

My question is how this is written:

i) it writes spectrum for the 1st direction for all frequencies then 2nd direction all frequencies and so on?

or

ii) it writes spectrum for the 1st frequency all directions, the 2nd frequency all directions and so on ?

Many thanks
Nikos
The administrator has disabled public write access.

Open TOMAWAC result spectrum file 6 years 5 months ago #30361

  • Leballeur
  • Leballeur's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 434
  • Thank you received: 163
Hi Nikos,

I think it's the second solution: for the 1st frequency all directions, the 2nd frequency all directions and so on...
In your matlab script, you can reshape your spectra with the instructions reshape(m.RESULT(:,Ispc),Ndir,Nfreq) and plot it so as to check that you're well reading their shape.

I hope it helps.

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

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