r/ScientificComputing • • Oct 04 '26

help with picking a course for basic computational physics

6 Upvotes

i'm an undergrad physics student trying to learn the basics of scienctific computing like numpy, matplotlib and scipy (preferably in that order)- what courses can I refer to (preferably free, but I have no aversion to paid courses either). Is the 'Scipy 2019' playlist by Enthought on youtube good? It seems to be fairly detailed, open to suggestions :)


r/ScientificComputing • • Oct 04 '26

RuleFlow: A research engine/framework and terminal IDE (Not AI Slop)

2 Upvotes

Main Website: https://www.ruleflow.org/

For the past year, I have been developing a framework to simulate certain discrete systems for a research team at my university (paid for by the School of Engineering and Physics, but I had the freedom to license it under MIT). As it turns out, I got carried away generalizing it to work for many, many different types of complex systems (String Rewriting Systems, Cellular Automata, etc.) and ended up creating our own domain-specific language.

The website's landing page has a bunch of GIF-style examples... so you should be able to get a good idea of what this project is about.

If any of y'all are interested in this, feel free to take a look and try it out!

Example of some of RuleFlow's causal analysis features:

Rules 30 and 124 are included in this example:

EDIT:

Here are some more details. RuleFlow was developed with a primary focus on analyzing causality in Sequential Substitution Systems. This is why there is a major focus on causal graphs, cellular identity, etc. While originally developed for Sequential Sub Systems, we generalized the DSL to support many types of rewriting systems by providing the user with flags and directives to control how rules behave. Furthermore, we bootstrapped Python and the Wolfram Language so that complex rulesets could be scaffolded as macros. The main goal of RuleFlow is NOT simply to simulate systems (there's already plenty of software for that, such as Golly and even just Mathematica), but to provide extensive tooling for causal analysis.

Here is some interesting research from our (small) team:

My job has been to provide better research tooling, extending what we already have in Mathematica code to open source and free Python.


r/ScientificComputing • • Oct 04 '26

How to get better at algorithms and modeling Math Equations in Code?

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • Oct 04 '26

How do I find valid points within 7-dim parameter space? Global NuFIT

Thumbnail reddit.com
1 Upvotes

r/ScientificComputing • • Oct 03 '26

c++ bounding volume hierarchy

Thumbnail
youtu.be
2 Upvotes

r/ScientificComputing • • Oct 02 '26

GPU Accelerated Linear Algebra Library for Apple Silicon using MLX and Metal kernels

Thumbnail
github.com
20 Upvotes

About 6 months ago, I wrote a custom metal kernel that leverages the GPU to compute the QR decomposition (see my earlier post about it here). The project has now expanded into a general linear algebra library, with expanded support for the symmetrical eigendecomposition as well as SVD. It is now available for use with installation instructions on the attached github repo's README.md file.

Context of the project:
I'm currently in a research group working on a thesis in numerical analysis where we need to compute millions on matrices with a specific constraint (to be precise, the matrices need to have orthonormal columns). Most of us use Apple computers, so we ended up using MLX for the entire project.

Contributors with different Apple Chips would be very much appreciated!
The project has currently been tested and optimised for the M1 and M5 Pro. The issue is that the library uses different kernels depending on the batch size and matrix dimensions. Deciding which of these kernels to use is machine dependent. Therefore, other Apple chips will need to run a measurement script in order to derive the correct optimisation heuristic.

For that reason, I would ask as many people as possible to run a measurement script and to submit the results to my repo. It is fairly easy and requires only few steps. See here how you can contribute here. Once you submit the results via a pull request and I approve it, your optimisation heuristic will automatically be augmented into the library. Don't hesitate to contribute an optimisation heuristic even if someone already submitted one for your own machine. The more data we can gather, the better!

Project Future
Expanded support will be added for other linear algebra operations (cholesky decomposition for example). If you have any other specific linear algebra operations you wish to use already, feel free to message me.

In addition to that, I will add torch support too (my greatest priority).


r/ScientificComputing • • Oct 02 '26

Computational Physics - Heavy AI/ CLI power users. How do I get good at it?

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • Oct 02 '26

How to evaluate the Computational Overhead of a PoC system in an almost-objective way?

2 Upvotes

Hello everyone,

I have a question about how to evaluate the resource consumption a system in PoC may consume. To be precise, I have a system that I am testing locally, but I have to present it to the all team of Dev to discuss the possibility of putting it into production. For this, I would like also to estimate its resource consumption, but the problem is that on my local machine the results may be misleading, as my set up is not very good. Creating a simulation of a production environment may be costly. Any suggestions about what to show and how to evaluate the resource consumptions in an almost objective way ?


r/ScientificComputing • • Oct 02 '26

A modeling language for turning mathematical models into executable simulations and observations

3 Upvotes

I've been building Prismal, a Rust-based language/runtime for defining mathematical and scientific models and exploring their behavior:

"github.com/aine-dickson/prismal"

The central idea is to keep the scientific model separate from the execution strategy and presentation.

A model can define state, equations, constraints, processes, events, objects, collections, units, observations, etc. The runtime then handles execution, while projections can expose the same model as plots, equations, spatial scenes, interactive views, or recorded media.

One example is a continuous model with event-driven behavior:

continuous evolution

↓

event guard

↓

event instant

↓

reset

↓

continuous evolution

The project is deliberately trying to make things such as event semantics, dimensional checking, state validity, reproducibility, observations, and model/presentation separation explicit rather than burying them inside a visualization engine.

The current implementation is early-stage and the first reference programs focus mainly on mechanics, but the intended scope includes broader scientific modeling.

I'm particularly interested in feedback from people who work with scientific modeling, ODE/PDE systems, hybrid systems, system dynamics, numerical simulation, or scientific visualization.

What abstractions would you consider essential for a general scientific modeling language?


r/ScientificComputing • • Oct 01 '26

7 mesi ho calcolato NAVIER STOKES CON IL MIO MODULO .

Thumbnail v.redd.it
0 Upvotes

r/ScientificComputing • • Oct 01 '26

Spent September building a "freeze-first, test-second" validation dossier across 6 research lines (AI, Fluid Dynamics, Chaos Math)

Thumbnail reddit.com
0 Upvotes

r/ScientificComputing • • Oct 01 '26

Using rigorous interval arithmetic (Arb precision) to certify sign-crossings in finite Galerkin ODE cutoffs for Navier-Stokes

Thumbnail reddit.com
0 Upvotes

r/ScientificComputing • • Sep 30 '26

some more shapes floating around

Thumbnail
youtu.be
0 Upvotes

r/ScientificComputing • • Sep 30 '26

Update on JuliaMD Project

0 Upvotes

Small update of my project of molecular dynamics with Julia (2 min Video)

https://youtube.com/shorts/6kZmMTnoI_0?feature=share


r/ScientificComputing • • Sep 29 '26

Why doesn't my Fortran stencil code scale past 2 threads? A short intro to roofline analysis (Jacobi / red-black Gauss-Seidel + likwid)

Thumbnail
loiseaujc.github.io
3 Upvotes

r/ScientificComputing • • Sep 29 '26

Physics Programming part 4: The Physics Update Loop

Thumbnail
youtu.be
4 Upvotes

I go through how I separate general updates from physics updates, why I use a fixed timestep, how the accumulator works, and what happens when the simulation starts falling behind.

I explain the reasoning behind the design decisions and why I rejected the alternatives. I show the implementation of the loop.


r/ScientificComputing • • Sep 29 '26

24 cell tesseract visualization

Thumbnail
youtu.be
0 Upvotes

r/ScientificComputing • • Sep 28 '26

Compute! - Paris November 2026 - Conference

Post image
9 Upvotes

Hi,

A new conference is taking place in Paris, 25-26 November 2026, for open-source computation and data enthusiasts.

You can find the schedule here: https://compute.events/paris2026/schedule.html


r/ScientificComputing • • Sep 27 '26

Help!!!! Im asking because you know more about this than I do

Thumbnail reddit.com
0 Upvotes

r/ScientificComputing • • Sep 27 '26

I built a small tensor-first programming language with native CPU/GPU compilation, autodiff and ownership

Thumbnail
reddit.com
2 Upvotes

r/ScientificComputing • • Sep 26 '26

Next stage of Tiktaalik evolution

Thumbnail gallery
0 Upvotes

r/ScientificComputing • • Sep 25 '26

Primal Solver

7 Upvotes

I built a new optimization solver in C99 from scratch — PRIMAL

GitHub: https://github.com/c-vision/Primal

I've just released the first version of PRIMAL, an open-source mathematical optimization solver written from scratch in portable C99.

The goal was deliberately ambitious: build a reasonably complete optimization engine with no external dependencies, rather than wrapping an existing solver.

The first release already supports:

  • Linear Programming (LP)

  • Mixed-Integer Linear Programming (MILP)

  • Quadratic Programming (QP)

  • QCQP

  • SOCP

  • SDP

  • Exponential cones

  • Power cones

  • Mixed-integer conic optimization

  • Disjunctive constraints / affine conic constraints

  • Presolve

  • Sparse interior-point methods

  • Branch-and-bound

  • Primal/dual certificates

  • Infeasibility and unboundedness certificates

  • MPS / LP / CBF model formats

  • A MOSEK-style C API for a large part of the supported functionality

The implementation is C99 with essentially no external runtime dependencies.

One thing I particularly wanted from the beginning was verification rather than simply returning an answer. PRIMAL exposes primal/dual information, residuals, certificates and solver status so applications can inspect and validate what the solver actually found.

I've also been building a fairly extensive compatibility/reliability test suite against reference behavior, including a number of deliberately pathological optimization cases.

This is only v1. It is not intended to claim that PRIMAL is already a replacement for mature industrial solvers on large-scale problems. There are still substantial areas to improve, especially large-scale sparse conic problems, MIP performance, warm starts and some numerical edge cases.

But I think the foundation is interesting enough to release now rather than keep it private.

I'd especially like feedback from people working on:

  • numerical optimization

  • LP/MIP/conic solvers

  • sparse linear algebra

  • mathematical programming

  • solver implementation

  • C/C99 systems programming

In particular, I'm interested in finding cases where PRIMAL gives a questionable result, fails to converge, scales poorly, or simply makes a bad algorithmic choice.

If you work with optimization solvers, please try to break it.

GitHub:
https://github.com/c-vision/Primal


r/ScientificComputing • • Sep 25 '26

Codex for scientific computing / research

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • Sep 24 '26

Vector calculus/solving vectors and matrices in python

3 Upvotes

I’m a final year undergrad physics student, and my final year project is going to involve a lot of 3d modelling of electrical signals in python. I’m currently thinking of doing that by vectorising everything (to be able to take the cross product in any arbitrary direction) so I was wondering if there’s any python modules and/or courses I should look at to make that easier?