Fix for NS solver - #83
Conversation
Fix for the solver ##82 - Change from SL to Eulerian history manager for flux & unknown in NS solver. - Does NOT fix the SL issue. Further investigation required. - Does NOT fix the callback error in the Eulerian history manager.
There was a problem hiding this comment.
Pull request overview
Updates the Navier–Stokes solver’s default history-term managers, moving away from always constructing Semi-Lagrangian operators and toward Eulerian (mesh-based) time-derivative tracking.
Changes:
- Replace default
DuDtconstruction with anEulerian_DDt-based implementation (including grid-based advection correction viaV_fn). - Only construct
DFDtwhen not supplied by the caller, and default it to an Eulerian history manager. - Comment out the prior Semi-Lagrangian constructor blocks in-place.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@bknight1 — Thanks for the reproducer script and diagnosis. We've identified and fixed the root cause on Root cause: The SemiLagrangian DDt's Fix: Two lines — clamp Closing this PR in favour of the direct fix on development. We'd appreciate it if you could validate the fix and do further benchmarking — including testing the second-order DuDt term. See issue #82 for details and benchmark results. Underworld development team with AI support from Claude Code |
Fix for the solver ##82