Welcome, Guest
Username: Password: Remember me

TOPIC: create selafin file for meteorological conditions

create selafin file for meteorological conditions 4 months 1 week ago #46321

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 162
  • 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 months 3 weeks ago #46419

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 310
  • 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 months 3 weeks ago #46422

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 162
  • 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 3 months 3 weeks ago #46431

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 310
  • 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 3 months 2 weeks ago #46451

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 162
  • 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.

create selafin file for meteorological conditions 1 week 3 days ago #46698

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 162
  • Thank you received: 7
Dear Thierry,

Thank you for your guidance regarding the use of the noudon.f subroutine for temporal interpolation of meteorological variables in TOMAWAC.

To confirm my understanding:

- My meteorological input file (SELAFIN) provides data at 10-minute intervals (600 seconds),

- While my simulation time step is 5 seconds.

The noudon subroutine appears designed to automatically locate the two time records bracketing the simulation time AT and perform a linear interpolation between them, providing the interpolated wind components (u10, v10) and atmospheric pressure (patm) at the exact simulation time.

Could you please confirm if this subroutine works as-is for such a difference in time steps, and therefore if it is not necessary to include it explicitly in the .cas file (unless modifications are made)?

Thank you very much for your assistance.

Best regards,
Mourad
The administrator has disabled public write access.

create selafin file for meteorological conditions 1 week 2 days ago #46699

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 310
  • Thank you received: 120
Dear Mourad,

I am not sure to understand what you ask, but if you want a confirmation that noudon will work to interpolate every 5 s when your data are every 10 mn the answer is yes.

as for using noudon in telemac2d and not in tomawac i have never done it, but i guess that it would need some modifications and then you would have to use it as a fortran user so include it in the cas file.

hope it helps

kind regards
The administrator has disabled public write access.
Moderators: tfouquet

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