AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
519 stars 339 forks source link

Does AMRex provide capabilities for gradient, divergence, and solver for the Helmholtz problem? #3826

Closed ztdepztdep closed 4 months ago

ztdepztdep commented 5 months ago

I'm interested in using AMRex for simulations involving the Helmholtz equation. Does AMRex offer built-in functionalities to compute:

Any insights or code examples would be greatly appreciated!

WeiqunZhang commented 5 months ago

We do have computeGradient (https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#af1f7462a23b5cde85daacbd1d3a357f9) and computeDivergence (https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#ab36700aa1e60f78cbb544a7593de37af). If they do not do exactly what you want, it should be easy to write your own functions.

For the solver, you might want to look at https://amrex-codes.github.io/amrex/docs_html/LinearSolvers_Chapter.html

ztdepztdep commented 5 months ago

We do have computeGradient (https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#af1f7462a23b5cde85daacbd1d3a357f9) and computeDivergence (https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#ab36700aa1e60f78cbb544a7593de37af). If they do not do exactly what you want, it should be easy to write your own functions.

For the solver, you might want to look at https://amrex-codes.github.io/amrex/docs_html/LinearSolvers_Chapter.html

thanks. but it seems there are no source code link for the computegradient functions?

WeiqunZhang commented 5 months ago

Maybe you can git grep?