Open SantaTitular opened 2 years ago
Hi Tomás, My apologies for the late response. I totally missed your message. Also, unfortunately, it has been a long since I wrote that code. Therefore, I do not remember all details. But I will do my best to answer your questions.
I think example.m should answer your first question. Also, apart from the sea waves, you can generate a time series using the frequency content and then run an FFT on it to see if you can regenerate the frequency content.
Creating Fig 2.2. of the dissertation requires much more effort. 1) It is a 2D surface instead of a 1D as you mentioned. 2) It was created using CNW
Hello Sayyed!
First of, thank you for the matlab code, it is very clear and well explained!
My question is regarding the theory of wave modeling thus not an issue with the code. I read chapter 2 of your thesis (particularly chap. 2.3) and I was confused whether you applied NW theory to estimate the surface elevation as a function of time in this code (but for 1D). I replicated your code into Mathematica (languague that I use for this since it is more powerfull to develop with equations) to produce the function of the spectrum (with regards to w) and did an IFFT to get a time function, however I don't think it is working properly. Thus, I was wondering if you could explain a bit more how to get the wave in time domain from the spectrum?
Unfortunately, my background is not at all related to fluid mechanics or anything similar and, for my particular application, I want to generate a Figure similar to Figure 2.2 of your thesis with a JONSWAP spectrum (just started reading about it). Thus, if possible, could I bother you with some insight on how to do it (particularly if I should use, and how to implement, diretional spreading D(theta), and convert it to 2D time domain )?
Thank you in advance for the attention! Tomás