How can I change the wave duration

Dear all, how can I change the wave duration when using the WKB model? Specifically, how can I make the waves last for 40 minutes and then stop?

@Roy
good question. IF there have loop in WKB in croco.in . At that time you need to change input*.nc for the wave.
Best

In croco.in, only parameters like wave height and period are set, but there is no option to configure the wave duration. I am not sure how to proceed.

if you change in CROCO.in in this way
ntimes = 4800
dt = 1
and change your input_wave.nc wave_duration = 2400 (40 minutes) .
please let me know if it’s solved or not. otherwise I will check WKB code in more detail.

Thank you. Have a good day.

Best,

Sorry, I don’t have the “input_wave.nc” file you mentioned. Do I need to create it myself? And how can I create it? I tried modifying the code in wkb_wwave.F, but it didn’t work.

The parameters for WKB set in croco.in are valid for the entire time of the simulation. To force for 40min with a given value, and then stop, you could do a restart after 40min and change the croco.in values for the next run