Comments (8)
Hello @banzhiqing
I am not familiar with the compilation using Visual Studio Code. It seems that it tries to use the makefile provided with the code but from what I remember, Visual Studio should generate its own kind of makefile to have the file dependencies, etc.
Sorry for not being helpful in this respect
from hos-nwt.
Hello @banzhiqing and @gducrozet
I checked the compilation in Windows with Intel OneAPI package, and found that the dependencies of each modules are mixed, therefore it is not easy to solve the problem for now. To compile the project in Windows, the code structure (module subroutines associated with reading/writing data and parameters) should be arranged a little bit.
I recommend you to rearrange code to compile the project in Windows.
Best regards,
Young-Myung
from hos-nwt.
Hello @gducrozet and @YoungmChoi
Thank you very much for your answers, I also found it difficult to compile it in windows, I am now compiling with Linux.
Best regards,
from hos-nwt.
Hello @banzhiqing I am not familiar with the compilation using Visual Studio Code. It seems that it tries to use the makefile provided with the code but from what I remember, Visual Studio should generate its own kind of makefile to have the file dependencies, etc.
Sorry for not being helpful in this respect
Hello @gducrozet,
I hope this message finds you well. I am currently engaged in studying your insightful paper titled "Nonlinear deterministic sea wave prediction using instantaneous velocity profiles." I apologize for any inconvenience my inquiry may cause amidst your busy schedule, but I have encountered some questions in your work that I hope to gain clarity on.
I am particularly interested in understanding whether the left-hand side of equation (10) in your paper corresponds to the 'dpos1stdt' in the SUBROUTINE pos_1st of the hos-nwt model. My interpretation is based on the assumption that, in settings where the wave board is adjusted for first-order nonlinearity, the velocity term U(x=x0,z,t) on the right side of equation (10) is utilized as a replacement for the original 'dpos1stdt'. This understanding has been further informed by another notable paper, "A fully-spectral 3D time-domain model for second-order simulation of wavetank experiments. Part A: Formulation, implementation, and numerical properties," particularly equations (12) and (13).
In light of this, I have observed an interesting pattern in the output of 'dpos1stdt' during the computation process, where some values repeat three times and others twice. Could you provide some insights into why this might be occurring? Additionally, I am curious about how one should effectively address the boundary conditions as outlined in equation (10) under these observations. For your reference, I have attached the relevant formulas and the output results of 'dpos1stdt'.
I greatly appreciate your time and consideration, and I look forward to your esteemed guidance.
Warm regards,
Ban Zhiqing
![Formula10](https://private-user-images.githubusercontent.com/148842226/287431182-1fa92569-0507-43f0-91f6-f1298371e1de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNzQ0NjksIm5iZiI6MTcxODE3NDE2OSwicGF0aCI6Ii8xNDg4NDIyMjYvMjg3NDMxMTgyLTFmYTkyNTY5LTA1MDctNDNmMC05MWY2LWYxMjk4MzcxZTFkZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMlQwNjM2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YjkzYTNhMDljMDFhN2YxMWZiOTQxOWMxYzIwMTViYjU1MGUyNmE2MDIxZDMyYTNlNWE5ZTJlYzI1NjFmMDY3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.L1gMvP8ZgZdsh3UC74DADw4zTXWdNAWPzqgqYjED1xc)
![Formula12_13](https://private-user-images.githubusercontent.com/148842226/287431187-75017ecc-179c-4b60-a1f8-30923fae0cc0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNzQ0NjksIm5iZiI6MTcxODE3NDE2OSwicGF0aCI6Ii8xNDg4NDIyMjYvMjg3NDMxMTg3LTc1MDE3ZWNjLTE3OWMtNGI2MC1hMWY4LT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0Mjg1YzE4ZmZjYjFhYWU5MWJjNjU0NGU5NTFmNDdhNWU3MDRmZjc3MjNmYjAwYzY2ODQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._czelLFLauaOMZPJbDgGYJp0v7qh0FbS9su_ijXMT5Y)
from hos-nwt.
Hello @banzhiqing
dpos1stdt corresponds to the time derivative of the 1st order wavemaker motion, i.e. first equality in Eq. (13). Then, this indeed corresponds to the horizontal velocity induced by the wavemaker motion (what you refere as U(x=x0,z,t).
Then, regarding the output you provide, it is not clear what the index corresponds to since this is a variable dependent on z and t. What I suppose is that you have 33 nodes in the z direction (indexes 1 to 33 consequently corresponds to U(z,t=0) and the following indexes 34 to 66 corresponds to U(z,t=dt) and so on). Then, I do not really get what is your issue with repeated values.
Best,
G.
from hos-nwt.
Hello @gducrozet,
I am profoundly grateful for your meticulous and detailed response, which has significantly clarified my doubts. I apologize for my earlier incomplete description regarding the output format of pos_1st, as illustrated in Figure 1, where n3=33 and n2=1. Upon closely examining the code, I discovered that the output results depicted in Figure 2, specifically the repeated values of dpos1stdt, are likely due to the sub-time steps calculated by the variable-step length Runge-Kutta method. Here, the sub-time step length is defined as time = t_o + h_loc*RK_c(jloop), with the 'slopes' RK_c(jloop) in RKF45 set to 0, 0.5, 0.5, 1, 1. May I kindly ask for your confirmation on whether my understanding in this regard is accurate?
Furthermore, this insight leads me to another query. Based on my understanding of the variable-step length Runge-Kutta algorithm, it necessitates that dpos1stdt be continuous with respect to time t during the computation of sub-time steps (time = t_o + h_loc*RK_c(jloop)). This continuity is presumed, as shown in Figure 1, because the overall program's time step, h_rk, is determined by principles such as CFL. Consequently, the current time step time_cur = time_cur + h_loc (where h_loc is approximately equivalent to h_rk), making time quite flexible in the variable-step length Runge-Kutta calculations. Therefore, as demonstrated in Figure 1, dpos1stdt needs to be continuously updated with respect to time.
Building upon this understanding, I have a question regarding your exemplary paper, "Experimental assessment of a nonlinear, deterministic sea wave prediction method using instantaneous velocity profiles," particularly as outlined in Equation (2). You developed an algorithm utilizing two ADCPs to acquire the reconstructed horizontal velocity Urec(x0,z0,t). My query pertains to the practical application of this method, considering ADCPs typically have a fixed sampling rate (e.g., 50Hz), which implies that Urec(x0,z0,t) is discrete with respect to time t. How do you effectively use the discrete Urec(x0,z0,t) in place of dpos_1stdt? Is there a process of interpolation or fitting applied to time t within Urec(x0,z0,t) to achieve this?
I am immensely grateful for your time and effort in addressing my queries. Your insights are not only invaluable to my current research but also inspire continued learning and exploration in this field. I eagerly await your response and further guidance.
Best regards,
Ban Zhiqing
![Figure1](https://private-user-images.githubusercontent.com/148842226/288759796-793e1ad9-7ebc-4a62-a20d-821850e8310d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNzQ0NjksIm5iZiI6MTcxODE3NDE2OSwicGF0aCI6Ii8xNDg4NDIyMjYvMjg4NzU5Nzk2LTc5M2UxYWQ5LTdlYmMtNGE2Mi1hMjBkLTgyMTg1MGU4MzEwZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMlQwNjM2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZTg5MGY1MTRjZjkwNzhmNWZkZDIxNWQyYjE2ZWQyZDIyOGQyODMzMGIzYWU3OTk5YzkzYWE0ZWU2NzkzZmRhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.yQ6su-sb4i-b0nW05IzaJAyMbTV7aN2pqmJYTAaXL7c)
![Figure2](https://private-user-images.githubusercontent.com/148842226/288759818-60038b2a-9a86-4847-8502-18428dcafee7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNzQ0NjksIm5iZiI6MTcxODE3NDE2OSwicGF0aCI6Ii8xNDg4NDIyMjYvMjg4NzU5ODE4LTYwMDM4YjJhLTlhODYtNDg0Ny04NTAyLTE4NDI4ZGNhZmVlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMlQwNjM2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mOWIxYTQ0YzUyMTJkMWJiYTg3MDJkN2MyOWY4MTA0M2ZkMzYzNjYxYjExYWY5OThlOGE0OTA1OWJlNDI2MTA0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.L-inHRBuEy86eDs8RFeryQxiUyJ7VLX5bUcdZmH99SI)
![Formula(2)](https://private-user-images.githubusercontent.com/148842226/288759825-b352740c-d193-4997-9964-e00bba4174cd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNzQ0NjksIm5iZiI6MTcxODE3NDE2OSwicGF0aCI6Ii8xNDg4NDIyMjYvMjg4NzU5ODI1LWIzNTI3NDBjLWQxOTMtNDk5Ny05OTY0LWUwMGJiYTQxNzRjZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMlQwNjM2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYWEwOTFhMmU5Mjg4NmExYTI3OWQ2ZjI5Y2I3MWNlNzU2ZDE0MjQ0YzcyZWYzZDFlN2NmZmIxYjEzNGQ2ZjA3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Gq35V2Oec6YnfcDYzWu9JfsCfAKgSwEbxFbC0fDUykE)
from hos-nwt.
Hello,
- Yes, if you write inside the routine you will get outputs at each call of the function and consequently at each sub time step.
- the position is indeed updated at each sub time step and consequently it is 'continuous'
- to use an 'external' velocity profile U(x0,z,t) with specific time-stepping, you can simply do an interpolation in time, replacing the call to this function. If the time-steps of your velocity profiles is at 50 Hz, linear time interpolation will be sufficient.
from hos-nwt.
Hello @gducrozet,
Thank you very much for your response, I now understand the concept clearly.
Best regards,
Ban Zhiqing
from hos-nwt.
Related Issues (20)
- An error occurred when compile HOS-NWT HOT 2
- JONSWAP spectrum wave generation issue HOT 10
- How to determine the value of n1, n2 and n3 in the 'common_vars.f90' HOT 18
- Problem with "makedepf90" ?
- makedepf90 problem?
- problem with external libraries (LAPACK) ?
- Upper-limit wave height HOT 2
- Wavemaker with limited length HOT 2
- Some confusion of wavemaker in HOS-NWT HOT 2
- About compiling 3D HOS-NWT HOT 2
- A confusion about the code of wave Spectrum in NWT HOT 1
- Compiling the software in HPC HOT 1
- Problem on Postprocessing HOT 1
- The forbidden value of M HOT 3
- 2D HOS-NWT Simulation HOT 2
- No Output HOT 1
- Problems in parameter setting and post-processing HOT 1
- The output of case::4 JONSWAP is wrong. HOT 1
- output CGNS file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hos-nwt.