Welcome, Guest
Username: Password: Remember me

TOPIC: create selafin file for meteorological conditions

create selafin file for meteorological conditions 1 month 6 days ago #46321

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Dear users
I could create a selafin files WIND (u10, V10) and ATMOSPHERIC PRESSURE (PATM)over the mesh nodes each timestep from external data. Could tomawac/telemac2d read it and use it and how? which subroutine? any example?
Thanks in advance for any comments, any tips...
Regards
Mourad
The administrator has disabled public write access.

create selafin file for meteorological conditions 3 weeks 14 hours ago #46419

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 307
  • Thank you received: 120
Hello,

I am not sure to understand your question if you want to read a serafin in tomawac file with wind on nodes you just specify the wind file with the keyword BINARY WINDS FILE.

hope it helps
The administrator has disabled public write access.

create selafin file for meteorological conditions 3 weeks 10 hours ago #46422

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Dear Sir Fouquet,

I have created a SELAFIN file with wind and pressure data, but its timestep (10 min) differs from my simulation (10 s). Due to file size constraints, I can't generate data at 10 s intervals.

Unlike wind_txy example, which works without interpolation, may I need to modify READ_BIN_2D.F to interpolate in time ? I've reviewed meteo.f, find_variable.f, get_data_timestep, get_data_ntimestep.f... I believe find_variable.f helps locate time AT in the SELAFIN file.

Could you guide me on modifying the code to find T1 and T2 (T1 < AT < T2) and perform linear interpolation for wind and air pressure?

Best regards,
The administrator has disabled public write access.

create selafin file for meteorological conditions 2 weeks 3 days ago #46431

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 307
  • Thank you received: 120
Hello

you can find an example of interpolation between time TV1 and TV2 in the routine noudon.f of the sources of tomawac

Regards

Thierry
The administrator has disabled public write access.

create selafin file for meteorological conditions 2 weeks 9 hours ago #46451

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Thank you Mr. Fouquet for pointing me towards .f! I really appreciate your help.

noudon.f is indeed the function that loads the two timesteps surrounding AT and interpolates the variables from the SELAFIN file. Since noudon.f is part of TOMAWAC, So I don’t need to provide a Fortran file to read the variables (u10, v10, patm) from my SELAFIN file and interpolate them at the correct time (AT). NOUDON will do it automatically.

However, for the TELEMAC2D simulation, I may need to modify meteo_from_binary_file.f or read_bin_2d.f, taking inspiration from noudon.f. I'm not sure—does this seem like the right approach?
Regards
Mourad
The administrator has disabled public write access.
Moderators: tfouquet

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