-
Notifications
You must be signed in to change notification settings - Fork 34
Simulation from external input #17
Description
Hi!
I'm new to HOS-ocean (and wave theory, including HOS,) but we really like to use this powerful tool.
I and my colleague are currently writing our master thesis at the Mechatronics department, at the Royal Institute of Technology, Stockholm, Sweden.
We are researching wave prediction systems and their use for optimizing the performance of Wave Energy Converters (WEC), (and in particular systems based on Submerged Pressure Sensors (SPS) and HOSM)
We would like to use HOS-ocean to predict the development of a measured wave field (expressed in terms of eta and phis) through time and space. (Limited to 2D waves for now)
When going through the documentation and the code, I found input case (i_case) 32 that seems to be the type of function we need.
But when running a few tests, I found what I believe are some mistakes/bugs in the corresponding code.
First is regarding the reading of the input file (3d_ini.dat) that I managed to fix and have documented in this pull request:
568f52e
After doing the above changes I manage to start simulations based on a custom input file.
But, from looking at the code and doing tests with some regular waves, I have noticed that the simulation takes the parameter Tp from input_HOS.dat (for the JONSWAP) and uses it to calculate the length in x-direction how the waves propagate. (I.e if the Tp in input_HOS.dat doesn't match the initial wave field, the simulations looks wrong)
Is this the intended behaviour for case 32?
How does the inputted Tp relate to the calculations for the simulation of the wave field?
Is case 32 the best way of inputting a measured wave field as initial conditions?
Or can we use some other case?
Thank you for your time and sharing this software as opensource!
Best Regards, Niclas