r/ScientificComputing • u/Leading-Glass8412 • 4h ago
Glassbox Lonk: Causal Investigation of Internal Representations and Learned Communication in Lightweight Adaptive Agents
r/ScientificComputing • u/Leading-Glass8412 • 4h ago
r/ScientificComputing • u/comradetiminesh • 6h ago
https://github.com/Timinesh/squares-in-squares
Please follow and star on GitHub you like this
r/ScientificComputing • u/Mental_Primary_5558 • 16h ago
hi, I already posted the question on stack exchange sci comp, it would be nice if you could try to take a look!
r/ScientificComputing • u/zoned33 • 16h ago
r/ScientificComputing • u/TheWlf9019 • 1d ago
r/ScientificComputing • u/carlk22 • 1d ago
We've just released a new version of FaST-LMM, an open-source scientific computing program for genome-wide association studies (GWAS). Originally developed at Microsoft Research and published in Nature Methods in 2011, its original paper has received more than 1,200 citations. The software is based on Python and NumPy.
Two changes made a remarkable difference in performance:
In our benchmark, float32 alone gave us a 2.6× CPU speedup. Combining float32 with CuPy gave us a 13× speedup on a consumer NVIDIA GPU, with nearly identical scientific results.
One caveat: consumer NVIDIA GPUs can perform float64 arithmetic 50 times slower than float32, so GPU acceleration alone may yield little or no speedup.
Of course, not every scientific computation can tolerate single precision, but it's worth investigating. And CuPy makes GPU acceleration remarkably accessible to developers of existing NumPy-based scientific software.
Kudos to the CuPy developers.
Benchmark and numerical accuracy details: https://fastlmm.github.io/FaST-LMM/benchmark.html
r/ScientificComputing • u/Fractal-Bifurcat • 2d ago
I work as software engineer developing simulation engine for multiphase 1D wellbore flow. I am starting to transition from mostly writing code with help of AI to managing AI writing the code.
Half year ago it seemed crappy but nowadays it is getting very good. Nonetheless I still feel anxious about letting just implement everything and just ask about the tests. Also I am always worried that it my seem to work but underlying physics is screwed up.
I am curious what is your experience with developing simulation software with AI. Do you have some tips and tricks how to do it efficient but still know what is going on in the heart of the solver ?
r/ScientificComputing • u/No_Jellyfish7095 • 3d ago
r/ScientificComputing • u/Linkredible • 3d ago
Hi everyone,
I'm a microbiologist and I just published Variance v0.1.0, a free and open-source (GPL-3.0) desktop app written in Rust for biostatistics and publication graphs.
In biology labs, a lot of day-to-day stats and figures are still done in closed, subscription-based software, while writing R or Python scripts from scratch isn't always practical for quick exploratory work or multi-panel layouts. I wanted something completely local and offline, where every statistical result stays auditable.
Variance covers 49 statistical analyses and 104 built-in curve-fitting equations across 8 table types, with vector and raster exports (PDF, SVG, EPS, EMF, TIFF, .docx/.pptx) and a built-in English/French guide. The part I focused on most is numerical verification: all 49 analyses were differentially tested against R 4.6.2 and NIST StRD datasets (60k+ cases, 63 numerical edge-case bugs caught and fixed in validation/DISCREPANCIES.md), and a Check in R button exports your data with a standalone R script so anyone can rerun and verify the exact numbers in R.
Right now there is a standalone Windows x64 executable on the Releases page, and it builds from source on Linux and macOS via cargo build --release (I plan to add prebuilt Linux and macOS packages next).
Happy to answer any questions or hear feedback, especially from people doing lab stats or using open-source scientific software.
r/ScientificComputing • u/Low-Physics-3076 • 3d ago
I do lightning and atmospheric physics research, and lately I kept running into an annoying problem when using AI coding agents (Claude Code, Codex, Gemini CLI) for diagnostic scripts: the Python code runs cleanly and passes basic unit tests, yet silently breaks physics. Things like negative humidity (q < 0) from spectral ringing, forgetting the cos(phi) factor in spherical divergence, or integrating pressure right through coastal mountains.
So I put together PhysGate, a small open-source SKILL.md + pytest workflow (MIT license) to keep myself from vibe-coding straight into broken math.
What it actually does: Before writing implementation code, /physgate forces the agent to ask clarifying questions in plain language and freeze a SPEC.md file with physical red lines. Then it writes automated pytest checks for conservation laws, units, positivity/bounds, and limiting cases, splits implementation into isolated git worktree slices, and sends the result to two other model families in read-only mode for blind review instead of letting one model grade its own work.
There is a reproducible 3D North Pacific atmospheric river & jet-streak audit example in examples/ar_ai_physics_audit/ if you want to run pytest on it locally.
Repo: https://github.com/oldsixxiaolv/PhysGate
Curious how others here validate AI-generated scientific or numerical Python before trusting the plots—what invariant checks do you always enforce?
r/ScientificComputing • u/ramanujan-computing • 3d ago
Hi!
Ramanujan-Computing is an MIT-licensed open-source project that aims to harness idle compute power[CPU/GPU] of digital device for scientific computing.
The way its different from BOINC or Folding@Home/SETI@Home is : for a new kind of scientific simulation, the developer dont need to compile a new binary, distribute it, and get it installed on the volunteering devices [as needed in BOINC]. They just need to submit their code onto cluster of devices, and devices can just run the simulation. Technically the devices have an interpreter which can run any simulation. The attached comparision is for the interpreter's perf against CPython.
Additionally, computation can be sharded across devices, and developer can control on how data should move around shards.
This project is very much in nascent stage and has potential to help science move forward, welcome any feedback on the project.
code: https://gitlab.com/ramanujan-computing/Ramanujan
Thanks!
r/ScientificComputing • u/Unable_Mechanic_7159 • 3d ago
r/ScientificComputing • u/DrManhattan_137 • 3d ago
r/ScientificComputing • u/Obvious-Ask-9099 • 4d ago
Hi everyone,
I just published the first public release (v1.0.0) of UNIQUANT-Formal alongside my primary research repository Uniquant23.
Standard scientific simulations, astronomical calendars, and optimization solvers rely almost universally on float32 and float64. Over long time horizons or millions of computational steps, tiny rounding errors, subtractive cancellation, and hardware discrepancies silently accumulate—causing drift, mass-conservation violations, and divergence between CPUs and GPUs.
Instead of patching floating-point drift after the fact, the UNIQUANT framework eliminates it at the mathematical root by rebuilding time scales, reference frames, fluid solvers, optimization routines, and statistical diagnostics purely on exact integer and rational arithmetic. To ensure complete soundness, the core theorems and algorithms are machine-verified in Lean 4 (40 modular files, 0 sorry).
Key highlights across the framework:
L_infinity error bounds, and overflow-free 128/256-bit multi-limb arithmetic for bit-exact CPU/CUDA execution.q = 75/1012 s), 529-year (23^2) anchor cycles, bounded lunar parabolas, and 299 = 13 × 23 phase lattices.SO(3) rotational invariance, and spatial correlation bias (N_eff < N).365-day Egyptian calendar identity, 6-test minimal hitting sets, and Shannon unicity distance bounds.Links & DOIs:
10.5281/zenodo.24570873)v1.0.0): https://github.com/joesen88/UNIQUANT-Formal (Software DOI: 10.5281/zenodo.24629562)r/ScientificComputing • u/ShreyasGameSwap • 4d ago
r/ScientificComputing • u/strcviii • 5d ago
Всем привет!
Помогите разобраться с кодом. Задача кода соединить три stl-файла в замкнутый объем и построить внутри тетраэдральную сетку, первый файл - стенка аорты, второй и третий - крышки, в итоге должно получиться что-то похожее на трубу, у которой стенки заполнены тетраэдральной сеткой. При объединении в единый файл и просмотре в ParaView поверхность выглядит замкнутой и хорошей, но при делении на поверхности для gmsh получается сильно больше чем 3, и далее код падает на генерации сетки. Были попытки ввести функции для подчистки мест соединения, т.е. соединения близких точек, удаление ненужных точек и вырожденных треугольников, но поверхностей при делении становилось только больше. Проверка на нормали треугольников тоже не помогла. Как это можно исправить?
import math
import os
import gmsh
import vtk
def generate_aorta_mesh():
address = r“C:\Users\User\Desktop\aorta”
append = vtk.vtkAppendPolyData()
for name in (“aortaWall_comb.stl”, “bottom.stl”, “top.stl”):
reader = vtk.vtkSTLReader()
reader.SetFileName(os.path.join(address, name))
reader.Update()
append.AddInputData(reader.GetOutput())
append.Update()
temp_stl = os.path.join(address, “temp_aorta.stl”)
writer = vtk.vtkSTLWriter()
writer.SetFileName(temp_stl)
writer.SetInputConnection(append.GetOutputPort())
writer.Write()
gmsh.initialize()
gmsh.model.add(“aorta_mesh”)
gmsh.merge(temp_stl)
gmsh.model.mesh.classifySurfaces(30 * math.pi / 180, True, True)
gmsh.model.mesh.createGeometry()
surface_tags = [s for s in gmsh.model.getEntities(2)]
s_loop = gmsh.model.geo.addSurfaceLoop(surface_tags)
gmsh.model.geo.addVolume()
gmsh.model.geo.synchronize()
gmsh.model.mesh.generate(3)
gmsh.write(os.path.join(address, “aorta_gmsh.vtk”))
gmsh.finalize()
if __name__ == “__main__”:
generate_aorta_mesh()
r/ScientificComputing • u/CHAHRAZED02 • 5d ago
Hello everyone,
I'm modelling an induction heating system in COMSOL using a planar spiral copper coil and a steel plate.
I have two questions:
Thank you for your help!
r/ScientificComputing • u/kangshendijun1 • 5d ago
Are direct adsorption energy prediction models still competitive in the era of universal MLIPs?
I am currently developing a lightweight attention-based model for predicting adsorption energies on metallic and alloy surfaces using DFT-relaxed adsorption structures.
Unlike MLIPs, my model directly predicts adsorption energies without learning atomic forces or the full potential energy surface.
I would like to discuss the following questions:
Any recommendations for recent papers, models, or benchmark datasets would be greatly appreciated.
r/ScientificComputing • u/fdren • 5d ago
For a researcher: you open a project and the R, Python and libraries it needs are already built and loaded. The app you're working on runs at its own address, and the same environment goes with it to a server or a Slurm job. You never build software or manage environments.
The stack follows the model Compute Canada built and EESSI generalised: EasyBuild recipes, Lmod, CernVM-FS. If your site already mounts EESSI or the Compute Canada stack, those are broader and better tested. Cove's part is the workspace on top: projects, the running app, saved versions and container images. Running Cove against those stacks, not only its own, is the next thing I want to build.
Install on Linux:
curl -fsSL https://ndexr.io/install.sh | shSite: https://ndexr.io
Source: https://github.com/fdrennan/cove
If your cluster already mounts EESSI or the Compute Canada stack, what would a workspace on top of it need to do before you'd use it?
r/ScientificComputing • u/Capital-Elephant9431 • 6d ago
Hi everyone,
I’m the first author of a recent open-access study that may be relevant to people simulating fatty acids, organic PCMs, or crystallisation more generally.
We wanted to examine how strongly force-field choice affects the predicted phase behaviour of fatty acids. Using a unified LAMMPS protocol, we compared PCFF, OPLS-AA, CHARMM and TraPPE-UA across six saturated fatty acids from C4 to C18. We evaluated crystallisation, phase-change temperatures and enthalpies, densities, and thermal conductivities.
A few results stood out:
The paper’s Supporting Information includes a ZIP archive containing all LAMMPS input files and the Python scripts used for post-processing, so others can inspect, reproduce, or adapt the workflow.
Paper: https://doi.org/10.1038/s41598-026-80735-3
I’d be interested to hear from others who have compared force fields for organic crystallisation. Have you observed similarly large differences in ordering behaviour under otherwise comparable simulation protocols?
r/ScientificComputing • u/Emergency-Tutor-7 • 6d ago
Repo: https://github.com/Furox-Art/scientific-computing-system-2.0 - MIT, release 5.5.1. The 2.0 in the name is the NumPy generation of the project, not the version number; this is the NumPy/SciPy build of the same library.
The behaviour I would point at first is about reruns. guided-fit writes a manifest with the random seed, the input hashes and the exact Python, NumPy, SciPy, pandas and Matplotlib versions it ran under. guided-fit-rerun then compares the saved analysis against the new one and says what moved, in values rather than in adjectives: which dependency version changed, and for confidence intervals the relative change, the largest bound shift, and both intervals.
There is a real archived replay in the repo rather than a hypothetical: a fit saved under Python 3.12.14 / NumPy 1.26.4 / SciPy 1.11.4 was replayed under the same interpreter with NumPy 2.3.5 and SciPy 1.18.1. Both version-change warnings fired. The largest 95% CI bound shift was 1.1747583669e-4, relative CI drift 0.003364917%, and the reliability label stayed reliable because it did not cross the 5% material-drift threshold. That is the useful shape: the environment changed, the output was checked anyway, and the report says which of the two happened.
Sizes, since they are easy to check and hard to fake: 53 importable names, 508 public exports, 2,066 tests, 100% branch coverage. The counts are measured from the tree by scripts/make_promo.py and CI re-measures them and rejects drift.
Install:
pip install scientific-computing-system-2.0
npm install -g scientific-computing-system-2.0Python 3.11+. There is an optional [gpu] extra that pulls cupy-cuda12x for the cds2.gpu backend.
The limit: the version warning fires even when the numbers agree, so a stack bump always costs you a warning, and the 5% material-drift threshold is a policy choice the tool applies, not a statistical guarantee - a drift under that line still reports the result as reliable.
r/ScientificComputing • u/Free-Grape-6101 • 6d ago