Comments (6)
Hello @lucas-carmo
Could you send the input file used for the 2D simulations?
from hos-ocean.
Hello @gducrozet
Sure. I used the following:
Restart previous computation :: i_restart :: 0
Choice of computed case :: i_case :: 3
--- Geometry of the horizontal domain
Length in x-direction :: xlen :: 82.
Length in y-direction :: ylen :: 1.
--- Time stuff
Duration of the simulation :: T_stop :: 1000.
Sampling frequency (output) :: f_out :: 5.
Tolerance of RK scheme :: toler :: 1.0e-9
Dommermuth initialisation :: n :: 4
Dommermuth initialisation :: Ta :: 10.
--- Physical dimensional parameters
Gravity :: grav :: 9.81
Water depth :: depth :: -1.
--- Irregular waves (i_case=3)
Peak period in s :: Tp_real :: 9.5
Significant wave height in m :: Hs_real :: 1.0
JONSWAP Spectrum :: gamma :: 3.3
Directionality (Dysthe) :: beta :: 0.7
Random phases generation :: random_phases :: 1
--- Output files
Tecplot version :: tecplot :: 11
Output: 1-dim. ; 0-nondim. :: i_out_dim :: 1
3d free surface quantities :: i_3d :: 1
3d modes :: i_a_3d :: 1
2d free surface, center line :: i_2d :: 1
Wave probes in domain :: i_prob :: 0
Swense output 1='yes',0='no' :: i_sw :: 1
Thank you!
from hos-ocean.
Sorry, forgot to ask the content of the file variables_3D.f90
also.
from hos-ocean.
Sure! I changed the extension because GitHub doesn't like f90: variables_3D.txt
For quicker reference, these are the values I used:
! Number of modes
INTEGER, PARAMETER :: n1 = 512
INTEGER, PARAMETER :: n2 = 1
! Array size
INTEGER, PARAMETER :: m1 = n1
INTEGER, PARAMETER :: m2 = n2
! HOS nonlinearity order
INTEGER, PARAMETER :: M = 4 ! Changed this to other values, as specified in the legend of the figures of my previous comment
from hos-ocean.
OK, I think I know what is the issue, for 2D simulations, you should choose p2=1 in the following line
INTEGER, PARAMETER :: p2 = M ! must have p2 <= M
from hos-ocean.
Oh, that makes total sense! I completely overlooked that. The 2D simulations are working as expected now. Thanks a lot!
from hos-ocean.
Related Issues (20)
- Reason for omega_n2 being defined on extended x-grid and used on x-grid for irregular initialization HOT 1
- Breaking limit and adaptive time-step HOT 1
- Can't open module file 'type.mod' HOT 4
- i_case=32 HOT 1
- Error while making HOT 18
- phisx value HOT 2
- Limits in setting n1 and n2 HOT 1
- Installation in Windows environment - Microsoft Visual Studio HOT 8
- Simulation from external input HOT 4
- error: "Slope along x is too large" for i_case 84 HOT 4
- Simulation of nonlinear irregular waves HOT 10
- Running steps HOT 2
- reconstruction of surface elevation from modes HOT 5
- Dirichlet-Neumann Operatior kappa HOT 2
- I meet errors during the install process HOT 2
- OpenFOAM coupling HOS
- I encountered an error during compilation. HOT 2
- How to run an example HOT 6
- The duration of the data output in probes.dat is ten times longer than the value set for T_stop in the input_HOS.dat file. HOT 11
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-ocean.