Code Monkey home page Code Monkey logo

Comments (4)

ali-ramadhan avatar ali-ramadhan commented on August 28, 2024

Thanks for the info @glwagner!

I decided to go back and build up the spectral solver from the 1D case which now works using rfft and irfft as tested against analytic solutions, and I discovered a couple of bugs with my 3D solver in the process. Working on the 2D solver now and this issue + domains.jl will be quite helpful.

from oceananigans.jl.

glwagner avatar glwagner commented on August 28, 2024

Great, keep us updated!

from oceananigans.jl.

ali-ramadhan avatar ali-ramadhan commented on August 28, 2024

Got the 1D and 2D solvers working and confirmed that they converge spectrally using your 2D wavenumber construction. Here are the tests you've been craving: test_spectral_solvers.jl

from oceananigans.jl.

ali-ramadhan avatar ali-ramadhan commented on August 28, 2024

This has been figured out. We have

  1. solve_poisson_3d_ppn(f, Nx, Ny, Nz, Δx, Δy, Δz)
  2. solve_poisson_3d_ppn!(g::RegularCartesianGrid, f::CellField, ϕ::CellField)
  3. solve_poisson_3d_ppn_planned!(ssp::SpectralSolverParameters, g::RegularCartesianGrid, f::CellField, ϕ::CellField)

that work and pass multiple tests. The DCT is slower than the FFT (somewhat expected) and for some reason we couldn't get it to work with FFTW.rfft but those are optimizations we can figure out later.

from oceananigans.jl.

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.