Giter VIP home page Giter VIP logo

Comments (6)

gducrozet avatar gducrozet commented on September 2, 2024

Hello @lucas-carmo
Could you send the input file used for the 2D simulations?

from hos-ocean.

lucas-carmo avatar lucas-carmo commented on September 2, 2024

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.

gducrozet avatar gducrozet commented on September 2, 2024

Sorry, forgot to ask the content of the file variables_3D.f90 also.

from hos-ocean.

lucas-carmo avatar lucas-carmo commented on September 2, 2024

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.

gducrozet avatar gducrozet commented on September 2, 2024

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.

lucas-carmo avatar lucas-carmo commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.