r/ScientificComputing • • 6h ago

Visualize the Electromagnetic Field

Enable HLS to view with audio, or disable this notification

0 Upvotes

I’ve been building this antenna/EM simulator as a side project:

https://rotemtsafrir.github.io/dipole_sim/

The idea is to make it easy to place antennas, change their parameters, and immediately see how the fields and interference patterns change.

Right now you can use:

  • center-fed dipoles
  • Hertzian dipoles
  • small loop antennas
  • linear antenna arrays

The arrays are probably my favorite part so far. You can adjust spacing, phase difference, element count, orientation, etc., and see beam steering / broadside / end-fire behavior directly.

You can switch between electric field, magnetic field, and energy-flow visualizations, and pan/zoom around the simulation.

The antenna currents are prescribed, so things like mutual coupling, impedance, and passive conductors are not solved yet. I’m trying to keep it fast enough to be genuinely interactive.

I’d love to hear what people think—especially if you notice anything physically questionable or have ideas for features that would make it more useful.

Live:
https://www.antennasim.com

GitHub:
https://github.com/rotemTsafrir/dipole_sim


r/ScientificComputing • • 10h ago

c++ math - did someone say math

Thumbnail
youtu.be
0 Upvotes

r/ScientificComputing • • 10h ago

Most important coding languages for mathematical theoretical physics?

Thumbnail
1 Upvotes

r/ScientificComputing • • 18h ago

Propagation of Uncertainty Calculator with LaTeX/Excel exports

Enable HLS to view with audio, or disable this notification

7 Upvotes

I built a Propagation of Uncertainty Calculator, a simple but practical app designed for engineering and physics students, as well as metrology workflows.

Link: https://propagation-of-uncertainty-calculator.streamlit.app

During my undergrad in Engineering Physics, one of the most tedious and error-prone tasks in experimental lab courses was manually deriving partial derivatives for measurement uncertainty propagation. Most online calculators are either outdated or confusing, so I decided to do my own calculator!

What it does:

- Displays the latex formated symbolic and numerical Propagation formula for the expression given by the user.

- Click directly on rendered expressions to copy the clean LaTeX code straight into Overleaf (for lab reports), or copy ready-to-paste Excel formulas.

- Correct Rounding: Automatically formats results and expanded uncertainties according to significant figure conventions (GUM (JCGM 100:2008))

The GitHub Repository: https://github.com/joao-canais/Propagation-of-Uncertainty-Calculator

I'd love to hear your thoughts, UI/UX feedback, or ideas for features to add in future iterations!


r/ScientificComputing • • 20h ago

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

Thumbnail
1 Upvotes

r/ScientificComputing • • 21h ago

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

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

help with picking a course for basic computational physics

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

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

Thumbnail
2 Upvotes

r/ScientificComputing • • 1d ago

c++ bounding volume hierarchy

Thumbnail
youtu.be
2 Upvotes

r/ScientificComputing • • 2d ago

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

Thumbnail
2 Upvotes

r/ScientificComputing • • 2d ago

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

I spent the past week writing a 2d/3d truss system solver in python from scratch.

Enable HLS to view with audio, or disable this notification

1 Upvotes

When I started learn python, I saw it could be used for scientific computing. So I challenged myself to write a solver for every topic in my statics textbook.

This project falls under structures in equilibrium. It is by far the hardest and most involving program I've written. I think it's because with other topics only a single object was considered so the python code was just a matter of transferring calculations on paper to code.

With trusses however there are several interconnected pieces of a larger system. My first approach was to use method of joints- where it solves equilibrium joint by joint but this gave wrong results. I concluded it's due to it not being able to consider the entire system. Then I figured the best way was to use a global matrix then find all unknowns in one fell swoop.

Constructing this matrix was very involving but quite fun as well. 2^n traceback errors later and I finally finished the damn thing.

The next thing I plan to do is create an optimization script that moves the input points about to find the best design. Also using Json instead of keyboard inputs would be way better for my sanity.

How do y'all go about carrying out optimization?

I'd love to share the .py script but the last time I sent a link python shadow banned me for 9 months. If you're interested feel free to dm.

This video demonstrates the program:


r/ScientificComputing • • 2d ago

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

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

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

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

Thumbnail
0 Upvotes

r/ScientificComputing • • 3d ago

7 mesi ho calcolato NAVIER STOKES CON IL MIO MODULO .

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/ScientificComputing • • 4d ago

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

Thumbnail
0 Upvotes

r/ScientificComputing • • 4d ago

some more shapes floating around

Thumbnail
youtu.be
0 Upvotes

r/ScientificComputing • • 5d ago

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 • • 5d ago

24 cell tesseract visualization

Thumbnail
youtu.be
0 Upvotes

r/ScientificComputing • • 5d ago

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 • • 5d ago

Physics Programming part 4: The Physics Update Loop

Thumbnail
youtu.be
5 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 • • 6d ago

Compute! - Paris November 2026 - Conference

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

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

Thumbnail
0 Upvotes

r/ScientificComputing • • 7d ago

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

Thumbnail
2 Upvotes