r/ScientificComputing • • 8h ago

FluidForge - Open Source Computational Engineering Software (PicoGK, OpenFOAM, BoTorch)

Thumbnail
gallery
7 Upvotes

Hey Folks!

Over the course of the last year I developed a computational engineering program for fluid-based simulation and optimization pipelines called FluidForge. I am studying biomimetics in Germany, and after reading about the work of Leap 71, I was really interested in this concept and started experimenting with a few ideas. I am fully sold on the idea that by letting an algorithm design an organic-like shape, you can come up with solutions that would otherwise not be thought of. 

I realized that there was no really satisfying open-source computational engineering software out there for the kind of all-around purpose and solution open architecture I wanted to use. So I developed one myself. I wrote a short report about the program, including an (in my opinion, really beautiful) showcase project that shows what could be possible with the software. 

The PDF Report: https://drive.google.com/file/d/1cB-R5xj5Z3yj_7Egr21ctr-jLdjvyYWx/view?usp=sharing 

Link to the GitHub repo: https://github.com/Lionheart005/FluidForge

I would love to see your opinions on that. FluidForge is still in an early stage of development, and at this point I feel like this project could need some external input and expertise.


r/ScientificComputing • • 22h ago

[Open Source] Keeping LLM agents from hallucinating math or trusting false simulator passes in iterative SPICE/CAD loops

Thumbnail
github.com
2 Upvotes

I have been working on automating iterative circuit simulation loops around Cadence Spectre (SPICE) and Virtuoso, and recently open-sourced the Python harness layer I built for it under the MIT license:

https://github.com/tsaiwilly/virtuoso-agent-harness

When letting an LLM drive multi-step numerical sweeps and parameter sizing over 20+ iterations, three failure modes kept showing up:

  • Numerical & unit hallucinations: Letting the model interpolate lookup tables or calculate device parameters directly leads to subtle math slips.
  • Blindly trusting 0 errors exit codes: A solver can converge cleanly while the extracted stability metric (e.g., phase margin) is wrapped by 180°, or a 3-corner shortcut hides worst-case failures.
  • Infinite optimization loops: When a simulation metric hits a plateau, the agent keeps perturbing parameters indefinitely instead of recognizing convergence failure.

To keep the simulation workflow deterministic, I separated all numerical work and flow control from the LLM:

  • Zero LLM math: All table interpolation, sensitivity matrices, and Monte Carlo yield checks run in 29 zero-dependency Python stdlib scripts; the LLM only reads structured pass/fail verdicts.
  • File-backed state & verification gates (S1–S9): Progress across 21 verification gates (requiring 17+ PVT corners and statistically valid Monte Carlo runs) is tracked in a local design_state.md file injected per turn, rather than relying on chat history.
  • Two-stage stop rules (STALLED -> STOP): A script monitors metric progression across solver runs and halts execution if targets plateau or regress, returning control to the engineer.
  • Scoped doc retrieval (~3%): Pulls only the ~15–35 KB of solver/PDK reference notes relevant to the current step from a 98-doc folder.

For others wrapping scientific solvers, FEM/CFD tools, or SPICE engines with coding agents: how are you enforcing physical sanity checks and hard stop conditions across long simulation loops?