Hi Sasan,

It's me again :) Thanks for your answer of theta.

This time I got a question about spectrum wave input.

I tried to input a single sinewave using Irregularwave.txt on a boundary, which is 4 meters high (Amplitude 2 m), then I found the wave amplitude on the boundary nodes are 1.5m in output.

I'm wondering if you could give me some suggetions or solutions about this problem. Other parameters I think might affect:

epsilon = 5e-4

Theta = 2

correctionStepsNum = 1

timestep = 0.01

grid resolution = 2 (meters)

widthNum (of the input boundary) = 1

wave: 2(amplitude) 10(period) -1.57(direction) 0(phase) (the wave length is about 100 m on the boundary)

I'll appreciate for any hints or comments!

Sincerely,

Chen

Maybe I'll have to set the widthNum of boundary >= 2 ? That is what I did before. But in that situation, I feel at the nodes right out the boundary layer, the wave superposed and the wave amplitude was larger than I expected.

Sorry to bother! I'll make an ideal case to check if the wave change is caused by superposition or bathymetry changes. :D

I should have made this clear in the user manual that the widthNum must be exactly 2 for all kind of boundary conditions except for Sponge. Please use widthNum = 2 and let me know.

Furthermore, correctionStep seems not to work properly at this moment, so please use 0 with a smaller time step.

Also, epsilon = 5e-4 is too large if you are investigating runup. Note that epsilon is compared to h^4.