Welcome, Guest
Username: Password: Remember me

TOPIC: Wave series as boundary condition

Wave series as boundary condition 9 years 8 months ago #16174

  • SEBJAM
  • SEBJAM's Avatar
Hi,
I’m trying to set up a TOMAWAC-model for a smaller bay. I already have wave-data for the outer boundary of the bay. This wave data is in the format of Hs, Tp, and direction and values are given every hour. I wonder if it is possible to use this wave-file as input to the model?

Thanks!
The administrator has disabled public write access.

Wave series as boundary condition 9 years 8 months ago #16202

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

Unfortunately this is not (yet) implemented in Tomawac and you have to use a fortran user to read your file in the routine limwac and then call speini to initialize the variance spectrum.

regards

T.
The administrator has disabled public write access.

Wave series as boundary condition 9 years 8 months ago #16205

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

I meddled with this topic sometime ago, and this is what I came up with. You are welcome to use it and/or modify it to accommodate your needs. If you make improvements/corrections, please let me know.

Let me know if it works out.

Pat
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: mathieu5roy, Santoro

Wave series as boundary condition 9 years 8 months ago #16236

  • SEBJAM
  • SEBJAM's Avatar
Thank you!

I got it running, but the model don't seem to consider the input from the file.

Can you please attach a cas-file were you have implemented the princi.f (I assume I miss something in my cas-file).
The administrator has disabled public write access.

Wave series as boundary condition 9 years 8 months ago #16258

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

Here is what I had in my *.cas file:
FORTRAN FILE = 'princi.f'
LIMIT SPECTRUM MODIFIED BY USER = YES
FORMATTED FILE 1 = 'offshore_boundary_waves.txt'

STEERING FILE ='file.cas'
GEOMETRY FILE = 'file.slf'
BOUNDARY CONDITIONS FILE = 'file.cli'

Hope it helps,

Pat
The administrator has disabled public write access.

Wave series as boundary condition 9 years 8 months ago #16264

  • Romain
  • Romain's Avatar
Hello,

I'm actually working on the same subject, implementing wave series as boundary condition on TOMAWAC and coupling those results to TELEMAC2D. I've used your attachments in previous message.

I've tried to compile my .cas file but this error occured :
"**** ERROR LIMWAC ****
YOU DID NOT MODIFY THE BOUNDARY SPECTRUM WHEREAS YOU ASK fOR THAT".

I've found that this error comes from LIMWAC.f so does it mean that tomawac doesn't take into account my own fortran file ? If it's the case, how could I do to solve my problem ?

I've attached my files to explain my words.

Many thanks,

Romain
Attachments:
The administrator has disabled public write access.

Wave series as boundary condition 9 years 8 months ago #16267

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

In one of your steering files the keyword LIMIT SPECTRUM MODIFIED BY USER = YES, and in the other it is set to NO [by default]. Could this be the offending keyword?

Also, I didn't see the initialization and specification of the spectrum parameters in the *.cas file. Can you try running a case first with a wave that doesn't vary in time. Does it work?

Pat
The administrator has disabled public write access.

Wave series as boundary condition 9 years 7 months ago #16366

  • Romain
  • Romain's Avatar
Hello,

I think that LIMIT SPECTRUM MODIFIED BY USER is not in the vocabulary of TELEMAC2D so I didn't need to set differently.
I've tried to simulate a wave only with initial condition and not with specific boundaries, is that what you mean by a constant wave ? But unfortunatly, Telemac2d still doesn't present what I expect.

Many thanks,

Romain
The administrator has disabled public write access.

Wave series as boundary condition 9 years 7 months ago #16387

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

LIMIT SPECTRUM MODIFIED BY USER is a TOMAWAC keyword, and should be set to TRUE in the TOMAWAC steering file.

I think you have to have both initial and boundary conditions for the simulation to be valid and have reasonable results. I meant try setting boundary conditions for a case where waves don't vary with time. There should be plenty of examples of this.

Pat
The administrator has disabled public write access.

Wave series as boundary condition 9 years 7 months ago #16437

  • charlotta.lovstedt
  • charlotta.lovstedt's Avatar
Now our model works (mine and SEBJAMs) but we are not fully satisfied with the output. The simulated wave heights are not as smooth as the input on the boundary. I have attached both the cas-file and a picture comparing the results and the input boundary data. It seems to get better when I decrease the time step but the computation is taking unreasonable long time if I lower it much more (now 60 s).

We would appriciate any help on this and other tips on how to decrease the computaion time!


File Attachment:

File Name: SkaldW_v1-0_Sven.cas
File Size: 4 KB


Simulatedwavesvsboundaryinput.png
The administrator has disabled public write access.
Moderators: tfouquet

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