r/ScientificComputing • • Apr 04 '23

r/ScientificComputing Lounge

8 Upvotes

A place for members of r/ScientificComputing to chat with each other


r/ScientificComputing • • 5h ago

Force-field benchmarking for fatty-acid crystallisation in LAMMPS: PCFF, OPLS-AA, CHARMM and TraPPE-UA

1 Upvotes

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:

  • Under our simulation protocol, PCFF was the only tested force field that reproduced crystallisation across C8–C18.
  • PCFF predicted the transition temperatures for these systems with a mean absolute error of 3.2%.
  • OPLS-AA produced crystallisation for C16 and C18, while CHARMM and TraPPE-UA showed no clear ordering transition under the same protocol.

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 • • 10h ago

A rerun that reports the environment moved instead of pretending it didn't

0 Upvotes

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.0

Python 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 • • 14h ago

GridLock: an open-source debugger built for MPI and parallel C++ development

Thumbnail
reddit.com
2 Upvotes

r/ScientificComputing • • 12h ago

What are your biggest frustrations with scientific data analysis software like OriginPro?

Thumbnail reddit.com
1 Upvotes

r/ScientificComputing • • 19h ago

lrpipe: An all-in-one germline pipeline for long reads, written in Rust

Post image
1 Upvotes

Hi, been working on this one for months, supports HIFI and ONT genomes. Aligned or unaligned, one command calls phased SNVs and indels, structural variants, copy-number variants and loss of heterozygosity, tandem repeats, read depth and CpG methylation.

A whole human genome in 10 minutes, more accurate than Clair3, while being efficient and fast enough to run on a laptop.

To build it, I made an aligner (Bonefish: up to 8x faster & more accurate than minimap2)

A new bioinformatic I/O library (Pasta: much faster and more efficient than samtools/BCFtools)

And a new genomic codec (zflate: Faster and more efficient than libdeflate)

https://github.com/DylanCosto/lrpipe


r/ScientificComputing • • 23h ago

SpinSpec 1.2.0 — faster exact NMR calculations and spectrum replot without rediagonalization

Post image
1 Upvotes

I've released version 1.2.0 of SpinSpec, an open-source program for simulating NMR spectra of coupled spin-1/2 nuclei across high-, low- and zero-field conditions.

The main numerical change is the use of conserved M_z blocks during Hamiltonian diagonalization, together with faster transformations of the gamma-weighted observation operator.

In nine-spin benchmarks, this reduced calculation times by approximately 22× at 3 T and 49× at zero field compared with the reference implementation. The online interface currently has an eight-spin limit.

Another useful improvement is automatic spectrum replotting: changing FWHM, frequency windows or vertical intensity limits reuses existing transition data rather than diagonalizing the Hamiltonian again.

The renderer also supports independent X/Y boundaries, automatic window selection and negative Y limits for visualizing signed interference between spin-group contributions.

I'm particularly interested in feedback on the numerical treatment of strongly coupled systems and the interpretation of group-resolved spectra near zero field.

Web calculator: https://nmrspec.org

Source: https://github.com/scleroze/SpinSpec

Release notes: https://nmrspec.org/changes


r/ScientificComputing • • 23h ago

Three Big Advancements in Raku Numerics

Thumbnail
rakuforprediction.wordpress.com
1 Upvotes

r/ScientificComputing • • 23h ago

I spent 13 years writing FDTD code and turned it into a GPU-native solver. Validation report inside, criticism welcome.

Thumbnail
liminuslabs.com
1 Upvotes

r/ScientificComputing • • 1d ago

Manopt.jl 1.0

Thumbnail
reddit.com
2 Upvotes

r/ScientificComputing • • 1d ago

I now operate solely as a mathematician.

0 Upvotes

r/ScientificComputing • • 2d ago

Train in Your Tab: PyTorch, JAX and ML Compilers in the Browser

Thumbnail
reddit.com
1 Upvotes

r/ScientificComputing • • 2d ago

What should i learn further as a Computational Mathematics student with bg in Multicore CPU and GPU programming?

15 Upvotes

Hey there the a short background about me; i am a Computational mathematics student and have experience with multicore programming, OpenMP and CUDA.

I am about to finish my Master's and applying for PhD applications. Alongside applying to the applications i feel stuck around the learning curve and need a direction to persue further studies. Currently I am working on demonstration of my mathematical algorithms knowledge and parallelising the code onto multicore CPU and GPU. But then what else can I do apart from this ? My brain is limited to the mathematical way of thinking and I want to discuss about further directions that I can work on.

Well, I thank all the people wanting to help in advance. :)


r/ScientificComputing • • 2d ago

Recomputing the reported statistics of a manuscript, and abstaining when the inputs are ambiguous

2 Upvotes

Repo: https://github.com/Furox-Art/scientific-reasoning-auditor - Python 0.11.0 (HEAD d9f0e14), Node adapter 0.4.0, no required Python dependencies.

It reads a manuscript, extracts reported statistics and method claims, and recomputes the ones that are mechanically checkable: statistic consistency against the stated degrees of freedom, multiple-testing corrections, regression and meta-analysis inputs, prospective power and sample size, declared-DAG adjustment, MCMC diagnostics, ML split manifests. Manuscripts stay read-only; findings go to separate reports:

sra audit manuscript.md --out reports/sample

What I would defend as the design choice is the abstain path, and it is also the most recent commit: when a discrepancy sits under an undeclared two-sided t/z default or an unspecified degrees-of-freedom correction, it now withholds the verdict instead of declaring a reporting error. The deterministic toolkit (SymPy, Pint, SciPy replay) and the spaCy/RapidFuzz passage candidates follow the same rule - candidates a person confirms, never truth claims.

Install:

python -m pip install --upgrade "scientific-reasoning-auditor[pdf,statistics]"

One honest limit: the published-reference pilot measured the unchanged 0.9.0 engine against historical manual labels for 1120 selected psychology results - 60% decision coverage, 34 of 49 reference errors flagged, 34 of 54 flags agreeing with the reference. That is retrospective conditional agreement on third-party input strings, not whole-paper validation, and it does not test the text-extraction step at all.


r/ScientificComputing • • 2d ago

In the N-body problem, ”solving“ usually means Liouville integrability or Sundman series—how does an exact

0 Upvotes

To clarify what I'm actually curious about from a physics standpoint:

In classical mechanics (like the general N-body problem), "solving" a system traditionally means finding an analytic closed-form expression (which Bruns/Poincaré proved doesn't exist in general), whereas numerical integrators (`f32`/`f64`) are treated as mere approximations because floating-point rounding and chaos destroy time-reversibility and drift away from the true trajectory.

Here, the system evolves purely on an integer lattice (`float ops = 0`) with exact time-reversibility (`0 bits` diff when reversed back to `t=0`) and zero energy/phase drift—essentially acting as a lossless, bijective discrete time-evolution operator rather than a lossy floating-point approximation.

From a theoretical or computational physics perspective, how do you draw the line between "merely simulating" a chaotic/constrained system vs. having an exact discrete/algebraic solution on a lattice?


r/ScientificComputing • • 2d ago

Relativity (Kaluza-Klein) Visualizer

Thumbnail
github.com
1 Upvotes

Hey everyone,

I've been working on a paper for a few years that's a modified model of GR that uses an unwrapped Kaluza-Klein dimension to satisfy classical simultaneity. I just got paid AI for the first time after I quit my job to work on the paper full-time, so of course one of the first things I did was have it update this app I built a while ago.

The app is a visualizer for pretty much everything relativity, even if you're not very interested in the Kaluza-Klein model or the 4d interpretation. Unfortunately it's written in Swift, so it's MacOS only, and you'll have to go into settings and whitelist it... It's not worth sending it to Apple for notarization just for a demo app, but it really is an incredible tool I wish I would've had a year ago.

https://github.com/flusterIO/aog_explorer/releases/tag/0.0.3


r/ScientificComputing • • 3d ago

SiNDAE: training neural nets inside DAEs with collocation and an interior-point solver

Post image
7 Upvotes

Our group just released SiNDAE (pronounced "sin-day"), a Python package for hybrid modeling. You keep the physics you trust, replace the term you don't know with a neural net, and fit the whole thing to data.

Most neural ODE / UDE tooling trains sequentially: integrate forward, backprop, repeat until the coffee runs out. That works great for ODEs. Add algebraic constraints and it gets awkward fast, especially for higher-index DAEs. The usual fixes are penalty terms or projection, so your mass balance turns into more of a suggestion.

SiNDAE uses the simultaneous approach from dynamic optimization instead. Instead of integrating forward and backpropagating through the solver, we discretize the DAE with Lagrange–Radau collocation on finite elements (Pyomo.DAE). The network weights, states and algebraic variables then all become decision variables in one sparse NLP, which we solve with an interior-point method using exact second derivatives. There's no integrator in the loop. Higher-index DAEs are fine because their algebraic equations are just NLP constraints, satisfied at every collocation point.

If your problem is too big for one NLP (lots of trajectories, bigger nets), there's a decomposition mode. An outer Adam loop updates the weights, the per-trajectory NLPs get solved in parallel (MPI optional), and the gradients come from implicit differentiation through the KKT conditions. Switching between the two modes takes one keyword.

Highlights:

- ODEs and high-index DAEs

- Hard constraint satisfaction

- A decomposition mode for bigger problems (Adam outer loop, parallel per-trajectory NLPs, KKT sensitivities), one keyword away

- Works with partially observed data

- Custom architectures through a grey-box interface

- sklearn-style fit / predict

- No HSL license. The default solvers ship as pip wheels, so pip install sindae is the whole install

- Export to ONNX, Equinox, JSON or OMLT

- A sindae-skills folder for people who build models with coding agents like Claude Code (most people)

Available:

- GitHub: https://github.com/Alves-research-group/SiNDAE

- PyPI: pip install sindae

- Docs: https://alves-research-group.github.io/SiNDAE/

- Paper: https://arxiv.org/abs/2504.04665

- JOSS Paper (submission): https://github.com/Alves-research-group/SiNDAE/blob/main/paper/paper.pdf

Feedback (and a GitHub star ⭐) welcome.


r/ScientificComputing • • 3d ago

I trained atomistic models for molecules and crystals runnable efficiently on your laptop, I really hope you like this.

Thumbnail
reddit.com
0 Upvotes

r/ScientificComputing • • 3d ago

I made an RCWA solver ~2,400x faster than S4 by removing the eigendecomposition

Thumbnail
reddit.com
0 Upvotes

r/ScientificComputing • • 3d ago

SharpMind Studio - Free download and install on Windows

0 Upvotes

Version 1.1.2 is now out and signed SharpMind Studio - Free download and install on Windows | Microsoft Store.
Example of start to finish training available here Train a small model from scratch: 2,000 steps on a rented GPU. And full Wiki here. SharpMind Studio — local-first model workbench with GPU compute.
Version 1.1.3 now in the works


r/ScientificComputing • • 4d ago

[Article] Modélisation du couplage électromécanique et analyse de la signature du courant moteur du desserrage des boulons d'une articulation de robot industriel — Xu K., Wu X., Wang D., Liu X.

1 Upvotes

[Article] Electromechanical coupling modeling and motor current signature analysis of bolt loosening of industrial robot joint — Xu K., Wu X., Wang D., Liu X.

Bonjour, je suis doctorante et je travaille sur le suivi de santé structurelle des robots industriels. Cet article est essentiel pour ma recherche. Mon établissement n’y a pas accès. Je serais très reconnaissante si quelqu’un pouvait le partager. Merci beaucoup d’avance pour votre aide !


r/ScientificComputing • • 4d ago

[Open Source] Canary – Like pytest for HPC

Thumbnail
reddit.com
2 Upvotes