Wave boundary condition varying in space only

Hi,

I have a liquid boundary segmented in 5 parts where I want to apply different waves height, direction and frequency which will be constant in time. Is there a simple way to do so as I would normally do for water level in CAS file?

I consulted many topics on the forum and did many attempts modifying limwac.f, but it’s not working and I can’t even read my file. I get the error:

Fortran runtime error: Cannot read from file opened for WRITE

Thank you for your help,

[name removed]

tom_lim.txt (20.8 KB)
limwac.f (9.56 KB)
BC_TOM.cli (149 KB)
TOM.cas (3.14 KB)

Hello

Can you also add your file GEO.slf ?

thanks

Hi!

Here is my GEO file. I also forgot to mention that I’m coupling telemac2d with tomawac to inialized the hydrodynamics and then I will couple it with GAIA. It’s why I have a NOER in my geo file. I’m also using version 8p3.

[name removed]

T2D.cas (5.07 KB)

The identifier of your file is LUFO1.

NFO1 is just an unknown local variable.

Here is your new limwac.f

limwac_2022-06-02.f (9.57 KB)

Thank you very much, it is running.

However, it is not applying the values I wanted. Maybe I don’t understand correctly how to write my text file. I wrote it based on my CLI file and wrote the desired value for my 5 segments and put zeros for all other nodes. It means that I have a value for every nodes of my mesh.

When I print the variable NPTFR (NUMBER OF BOUNDARY POINTS) it gives me 142. However, if I only count the points where I want to apply a wave, I have 115 and not 142.

I saw many examples for waves conditions varying in time, but only few for varying in space. What is the correct way to write my text file?

Thanks a lot,

[name removed]