-
Notifications
You must be signed in to change notification settings - Fork 35
3D wave-field analysis #1
Comments
What part of the codes should be modified in order to achieve the above issues? |
You need to add a new case in initial_condition.f90 for your purpose. For all three cases cited it is only necessary to initialize phis & eta in the code ( t=-32s is just a different initialization). The inputs can be read directly from a file specified or you can hard code them as done for regular waves case. The core computational procedures in resol_HOS.f90, variables_3d.f90 & filters.f90 need not be touched, a bit of HOS.f90 modification may be required depending upon the end-usage. This paper from Ducrozet et al. describes in detail the procedures & the flow of the program. Frankly, HOS-NWT code is far better organized with regards to input, output and scaling. So you can have a look at input.f90 procedures in HOS-NWT code & based on that you can modify the input_HOS.f90 procedures in order to read directly from input_HOS.dat for HOS_Ocean code. I hope Dr. Ducrozet will agree with me. |
Many thank for your reply. I have managed to run a random wave case using the code and really impressed with the speed of the calculation. I was hoping to validate HOS-ocean with the non-linear code that I have for focused wave case and see how far I can push HOS-ocean and get a sense of the speed and accuracy of HOS-ocean. If the result is positive, the next step would be to coupled HOS-ocean with the code that I have. |
I agree with the answer of rickyspaceguy. For the three different points, you can modify the file 'initial_condition.f90' to achieve your purpose. This is not already done in the code but should not represent a lot of coding:
Hope this helps! Guillaume. |
Hi Guillaume, Many thanks for your reply. Kind regards, |
Two scalings are used computations & output. Computations happen upon nondimensional quantities only. For this length scale variable is L while time scale variable is T. For all computations & indeed for the code these are most important. The output scales are variables L_out & T_out. They are not used for computations, only for output. They are provided for convenience since any of the two i.e. wavelength or depth is used as length scale for non-dimensional output in literature. If you are still unsure set both variables i.e. L_out & T_out equal to L & T, respectively.
These transformations are from physical space to fourier space & vice versa. This is part of HOS theory as the boundary value problem computations are done in fourier space while time integration is done on physical space. Hence, you see the back & forth work. There are other issues like dealiasing involved but more or less this is the reason as mentioned above.
Initial condition in HOS-Ocean is used to set up the variables phis & eta. Both are non-dimensional. You can compute phis & eta values in dimensional form and then add at the end the lines
|
@gducrozet
Kind regards, |
Thanks for your interest in the code. I will try to answer your different questions:
|
@gducrozet It also rises my confidence to learn more about the codes. Hope I could add some other wave spectrums to the initialisation part. Thanks again! Kind regards, |
@gducrozet
|
@Zeracesharon
Best regards, Guillaume . |
@gducrozet |
Although the question is not addressed to me, you can see: "The calculation of nonlinear short-crested gravity waves. A. J. Roberts, and L. W. Schwartz". |
@rickyspaceguy thank you for ur reply, i have seen that paper but to found it's mainly about incident waves and reflected waves which does not aptly suit for my needs of project in hand. But i really appreciate the paper's method and idea. |
@Zeracesharon As for using Airy waves/Stokes ordered waves,you can code the analytic formulae of Stokes e.g. Fenton's fifth order solution in However, you should also remember that you have to choose the HOS order of non-linearity. Depending on that the long-term evolution will depend upon. Say you want Airy wave to behave as linear wave, then you choose the HOS order as 1. However, then there is no point of long term evolution, the waveform won't change for order 1. If say you initialize the wave form as Stokes second order and kept HOS order again as 1. Because of linear ordering, the initialized waveform will be taken as superposition of two linear waves of wave numbers k & 2k. So for the 2k wave you will find the circular frequency as sqrt(2gk) and not the stokes second order 2sqrt(gk). Of course since order is 1, long time evolution will also not matter. This is just to comment on how order matters. For more on initialization problem (Dommermuth relaxation implemented in HOS-Ocean), you can see: "The initialization of nonlinear waves using an adjustment scheme, Dommermuth". |
Hi,
What do you intend with 3D regular waves?
If it is just a 2d waves extended in the 3rd dimension, a solution as
Rienecker and Fenton is better than Hos ocean + grid2grid because you can
compute analytically all physical quantities everywhere without
interpolation.
We have one model in Lheea that we will soon opensourced.
Best,
Benjamin
Le sam. 20 oct. 2018 à 03:43, Zeracesharon <[email protected]> a
écrit :
… @rickyspaceguy <https://github.com/rickyspaceguy> thank you for ur reply,
i have seen that paper but to found it's mainly about incident waves and
reflected waves which does not aptly suit for my needs of project in hand.
But i really appreciate the paper's method and idea.
i have seen previous paper that involves HOS with CFD, called SWENSE
method, so i actually only want incident waves(progressive waves). And i
remember HOS used to use Airy wave and second-order Stokes to initiate the
system. what we are instersted in is how this nonlinearity influence the
structure's 6 freedom motion response. we wanna see the difference when
using the theory of linear Airy waves &pure second-order Stokes wave and
the waves produced by HOS(after long propagation) considering these waves
interacting with the structure, to calculating forces and motion. so here
comes my question:
is it possible for me to initiate HOS with Airy waves or 2nd stokes waves
(for regular case)? these waves have theory solution for reference so that
i could saw the difference by comparison
Best wishes
Zerace
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQ_X-OYIFplirh5OPn4HCqfltdB1tfjkks5umn_ZgaJpZM4DA1EU>
.
|
@Naaba |
Hi, |
@gdeskos
Note that the velocities at the free surface needs to be reconstructed from the surface quantities (phisx/phisy etax/etay and W). Best regards, |
Hi Guillaume, |
@gdeskos
Best, |
@gducrozet However, when performing wave field analysis with i_ana=3, it consistently shows a small number of waves and suggests limiting it to two dimensions. When loading the VP_card.dat file in Tecplot, it displays a regular wave field with a single propagation direction. What could be the issue? |
I think you may have a problem in your initial condition (i_case in the input file) that is not selected according to the type of wavefield you want to study. |
Wave-by-wave analysis of 3D wavefields may be enhanced.
For now, analysis is made along mean directions x and y. A 3D wave is defined when a given crest in x-direction is also a crest in the y-direction.
Main drawback of this approach is that if a wave crest is not align with y-direction (i.e. it present a given angle of propagation), algorithm will detect several waves for one real 3D wave.
The text was updated successfully, but these errors were encountered: