Closed jwscook closed 1 year ago
Ben Dudson has given us details of the 3D drift-reduced fluid equations as per https://github.com/bendudson/hermes-3/tree/master/examples/linear. We have the equations! This can go straight into NESO and not first a standalone Nektar mini-app.
PR lives in https://github.com/ExCALIBUR-NEPTUNE/NESO/pull/181 Current issue is solving for $\phi$: not likely to be unit problem; could be boundary condition.
It's relatively stable but not giving sensible answers. OP judges that it's now stable enough to add particle functionality to it.
Ed & Owen to go through nondimensionalisation tomorrow.
Problems with the $\phi$ solve reported. Different solvers are available: petsc, mumps. These will need extra config efforts in build.
Also direct solves e.g. https://doc.nektar.info/doxygen/4.0.0/page_coupled_solver.html and use of preconditioner Diagonal
etc.
Focusing on simplified Helmsolve ${\vec{ \vec D}} \nabla_\bot \phi = \omega$ which now works with 2 Dirichlet boundary conditions. This is because the "grounded" dof with all Neumann BCs is wrong post-solve, but this "grounding" functionality can be turned off. @will-saunders-ukaea knows how cos this is done in the electrostatic solve.
False disables the checks (i.e. the pinning) true enables (and it's up to the user to check the pde is well posed?).
In comms with Mike Kryjak of Hermes3 fame.
2D HW equations work in 3D (no parallel dynamics) for any order (tested up to 6 modes). Let's figure out what neutral physics is sensible and use 2DHW in 3D w/ particles as the near term milestone.
This is now a tidy up PR https://github.com/ExCALIBUR-NEPTUNE/NESO/pull/209 Look into problem with energy conservation wrt initial conditions but move on at end of week. Will reach out to Sanket.
Fixed by PR #209
This is no longer dependent on "Hermes3 in 2D in NESO". Plan is to get Dave Moxey contributing directly to NESO.