Welcome, Guest
Username: Password: Remember me

TOPIC: wave initial conditions from coarser grid

wave initial conditions from coarser grid 9 years 4 months ago #17637

  • Gaeta
  • Gaeta's Avatar
Hello,
I'm trying to nest the tomawac results from a coarser domain into a smaller grid.
Two are the issues I'm wondering you can kindly advice me:
- how to include spatial varying BC for waves, not only time varying (done in limwac subroutine)
- how to have spatial variable initial condition for the waves

Thanks in advance for your help.
Regards
The administrator has disabled public write access.

wave initial conditions from coarser grid 9 years 4 months ago #17643

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello,

In the subroutine speini, you will see that for any choice of inispe ('TYPE OF INITIAL DIRECTIONAL SPECTRUM') there is a loop on IP which represent a loop on the nodes of the mesh. So if you make vary any of your parameters depending on IP you will have a spatial variable initial condition.

That is the same thing with the boundary condition if you make depend your parameters of IP (the number of each node) in the subroutine limwac you will obtain a spatial varying BC.

hope it helps

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

wave initial conditions from coarser grid 9 years 4 months ago #17644

  • Gaeta
  • Gaeta's Avatar
Thanks for your help.
For the first issue, is there any possibility to make a spatial interpolation of the information coming from the coarser grid?
I'll try according to your suggestion for variable BCs.
G
The administrator has disabled public write access.

wave initial conditions from coarser grid 9 years 4 months ago #17645

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
yes of course you can make a spatial interpolation then you will need the position of your nodes you can get the position with (after having added mesh in USE DECLARATIONS_TOMAWAC, ONLY : DEUPI, mesh )

mesh%x%r(ip),mesh%y%r(ip)

As for the BC you can also read what i just answered in "TOMAWAC and SWAN" (mess #17642 )

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

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