Giter Club home page Giter Club logo

Comments (5)

YoungmChoi avatar YoungmChoi commented on August 24, 2024

Dear Wei Zhang,

Yes. You can use LHEEA/Grid2Grid (execution: postGrid2Grid) with modes_HOS_SWENSE.dat to regenerate the surface elevation.

Please try it and let me know if you have a problem.

Best regards,
Young-Myung CHOI

from hos-ocean.

waynezw0618 avatar waynezw0618 commented on August 24, 2024

Hello.
Thanks for replying so soon. I am wondering whether I can do that manually. I mean direct use the data? or I just "refine" the solution from the output.

Best
Wei

from hos-ocean.

YoungmChoi avatar YoungmChoi commented on August 24, 2024

Dear Wei Zhang,

You can do it manually. There are subroutines in Grid2Grid "src/libGrid2Grid/surf2Vol/HOSOcean/hosOcean/inc"

  • init_read_mod: Read HOS parameters (nX, nY, ...)
  • read_ascii_mod_HOSOcean: Read HOS modal amplitudes at each HOS time

Because you already know the modal amplitudes at each time, you can reconstruct them by formula.
Or you can refer the subroutine "reconstruction_direct" in HOS-ocean "sources/PostProcessing/reconstruction.f90".

Have a nice day,

Best regards,
Youngmyung CHOI

from hos-ocean.

gducrozet avatar gducrozet commented on August 24, 2024

Dear Wei Zhang,

Complementary to the reply of Youngmyung (thanks for being reactive on this!) this is not possible to reconstruct directly from the file a_3d.dat the free surface elevation / free surface velocity potential.
The point is that a_3d.dat stores only the wavenumbers and modulus of complex modal amplitudes. Then, the phase of each component is the missing information for what you want to achieve.

Best,
Guillaume

from hos-ocean.

waynezw0618 avatar waynezw0618 commented on August 24, 2024

Hi @gducrozet & @YoungmChoi
thanks all for reply.
I tried postG2G in grid2grid. still I cannot get perfect solution.see below
WechatIMG1636
and there are some parameters which I don't know how to set.
WechatIMG1622

Best
Wei

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.