r/ScientificComputing • • Apr 04 '23

r/ScientificComputing Lounge

8 Upvotes

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


r/ScientificComputing • • 3h ago

Ramanujan vs CPython: performance matrix

Thumbnail reddit.com
0 Upvotes

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

Which is better for tensor network simulations, Tenpy or Quimb?

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • 6h ago

Mi primer trabajo relacionado a la astronomía

Thumbnail
reddit.com
0 Upvotes

r/ScientificComputing • • 20h ago

UNIQUANT: Replacing float32/float64 with exact integer & rational arithmetic across hydrodynamics, timekeeping, and optimization (verified in Lean 4)

3 Upvotes

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:

  • Integer-First Hydrodynamics & GPU Contracts: Backlog-free integer volume ledgers, cancellation-free trapezoidal channel geometry, tridiagonal M-matrix integer solvers with certified L_infinity error bounds, and overflow-free 128/256-bit multi-limb arithmetic for bit-exact CPU/CUDA execution.
  • Discrete Time & Astronomy: Exact rational time quantum (q = 75/1012 s), 529-year (23^2) anchor cycles, bounded lunar parabolas, and 299 = 13 × 23 phase lattices.
  • Observer Geometry & Climate Networks: Apparent zero-point accelerations, three-anchor orthonormal triads with full SO(3) rotational invariance, and spatial correlation bias (N_eff < N).
  • Convex Optimization & Diagnostics: Strictly convex Ridge-QP Hessians, root-free squared RMS guards, lossless main/remainder gradient accumulation, and integer block-CUSUM change-point detectors.
  • Stylometry, Calendars & Decipherment: Burrows' Delta corpus-mean cancellation, the 365-day Egyptian calendar identity, 6-test minimal hitting sets, and Shannon unicity distance bounds.

Links & DOIs:


r/ScientificComputing • • 1d ago

I built an open-source Python physics sandbox where every solver is tested against an analytic result. What should I add next?

Thumbnail gallery
0 Upvotes

r/ScientificComputing • • 1d ago

PhaseKeep: Open Computational Research in Photonic and Quantum Architectures

Thumbnail
github.com
4 Upvotes

PhaseKeep provides an open research framework containing computational models, simulations, and proposed photonic and quantum architectures. Broader theoretical work is included to encourage interdisciplinary exploration.

Feedback on simulation methodology, mathematical accuracy, reproducibility, and alternative applications is welcome.


r/ScientificComputing • • 1d ago

генерация тетраэдральной сетки gmsh на python

1 Upvotes

Всем привет!
Помогите разобраться с кодом. Задача кода соединить три 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 • • 2d ago

induction heating system in COMSOL using a planar spiral copper coil

2 Upvotes

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:

  1. When using Single Conductor, where should I apply the excitation current? Should it be imposed at the coil terminals or on the outer boundaries of the air domain?
  2. What is the main difference between Single Conductor and Homogenized Multiturn, and which one is more suitable for a planar spiral induction coil?

Thank you for your help!


r/ScientificComputing • • 2d ago

A new guy to learn ai for chem

2 Upvotes

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:

  • Is relaxed-structure-to-adsorption-energy prediction still a meaningful research task?
  • Are there recent specialized models addressing this task rather than IS2RE or S2EF?
  • What benchmarks would enable a fair comparison between specialized energy prediction models and universal MLIPs?
  • Could specialized models offer meaningful advantages in accuracy, data efficiency, or transferability?

Any recommendations for recent papers, models, or benchmark datasets would be greatly appreciated.


r/ScientificComputing • • 2d ago

Cove: a research workspace on a CernVM-FS software stack, in the Compute Canada / EESSI mould

2 Upvotes

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.

  • Build recipes turn R, Python, Julia, scientific libraries and their dependencies into versioned installations on a known compiler toolchain (foss-2024a), loaded through Lmod with `ml`
  • Each CPU architecture (x86_64, aarch64) gets its own build; CUDA packages are built on a GPU machine. Nothing is rebuilt per user
  • Finished builds go to a versioned repository on object storage, and a published version never changes. Machines mount it with CernVM-FS and fetch only the files they touch
  • A saved project can become a container image, tested under podman and Apptainer. The image holds the app, not the stack: run as a Slurm job, it mounts the same stack read-only
  • On top sits the IDE: code, consoles, plots and an AI agent in one window. MIT-licensed, self-hostable

Install on Linux:

curl -fsSL https://ndexr.io/install.sh | sh

Site: 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 • • 2d 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 • • 3d ago

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

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • 3d 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 • • 3d ago

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

Thumbnail
reddit.com
2 Upvotes

r/ScientificComputing • • 3d ago

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

Post image
4 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 • • 3d 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 • • 3d ago

Three Big Advancements in Raku Numerics

Thumbnail
rakuforprediction.wordpress.com
1 Upvotes

r/ScientificComputing • • 3d 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 • • 4d ago

Manopt.jl 1.0

Thumbnail
reddit.com
2 Upvotes

r/ScientificComputing • • 3d ago

I now operate solely as a mathematician.

0 Upvotes

r/ScientificComputing • • 5d ago

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

Thumbnail
reddit.com
1 Upvotes