Welcome, Guest
Username: Password: Remember me

TOPIC: Spatially varying horizontal velocity diffusivity coef. in Telemac3D

Spatially varying horizontal velocity diffusivity coef. in Telemac3D 7 years 9 months ago #25078

  • yohannis
  • yohannis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 9
Hi,
In Telemac2D, spatially varying diffusivity coef. can be easily implemented in the Corvis.f subroutine. But in Telemac3D, this has to be done in the subroutine Viscos.f and there is no much explanation how to do it. I would be greateful if some one has already done this before and can share me his/her modified subroutine.

Thanking you in advance.

Yohannis
The administrator has disabled public write access.

Spatially varying horizontal velocity diffusivity coef. in Telemac3D 7 years 9 months ago #25089

  • riadh
  • riadh's Avatar
Hello

You can use the same loops as in 2D cases in order to use a horizontal space variation.
To make variation in vertical you need to know that nodes have the same xy coordinates and that vertical variation can be done in the same way than in the subroutine condim for instance.

I hope that this helps
with my best regards

Riadh ATA
The administrator has disabled public write access.

Spatially varying horizontal velocity diffusivity coef. in Telemac3D 7 years 9 months ago #25095

  • Svensmolders
  • Svensmolders's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 105
  • Thank you received: 20
Hi Yohannis,

you could also use a user defined variable (structure is already present in the code)
so you could read the horizontally varying velocity diffusivity from a map in your geometry file. This is done by the subroutine FONSTR.f in BIEF library. You could then introduce that variable in VISCOS.f and assign the values.

I have done this for salinity as a tracer in an estuary to introduce an initial salinity field. I then wrote the values to the vertical layers in the subroutine CONDIM.f like Riadh suggested. You can find a good scripting example there. I use blue kenue to interpolate measured values to my mesh and then add this map to my geometry file. I find this very easy to manipulate the data like this. I do the same with the BOTTOM FRICTION, but that is already completely inside the code.

Hope you can make it work!

Best regards,
Sven
The administrator has disabled public write access.
The following user(s) said Thank You: yohannis

Spatially varying horizontal velocity diffusivity coef. in Telemac3D 7 years 9 months ago #25108

  • yohannis
  • yohannis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 9
Thanks Sven for the idea.
The administrator has disabled public write access.
Moderators: pham

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