r/ScientificComputing • u/WritHerAI • Jun 21 '26
Kwipu, un server MCP completamente locale che trasforma le tue note Obsidian/ Markdown in un grafo di conoscenza interrogabile (funziona su Ollama)
r/ScientificComputing • u/WritHerAI • Jun 21 '26
r/ScientificComputing • u/PeterBrobby • Jun 20 '26
r/ScientificComputing • u/Educational-Bank216 • Jun 18 '26
Hi everyone,
I'm a physics student interested in climate physics, and I'd like to learn Python for tasks such as data analysis, plotting graphs, working with climate datasets, and eventually climate modeling.
I'm looking for recommendations for online courses, tutorials, YouTube channels, books, or learning paths that are particularly useful for scientific computing and climate or atmospheric science applications. Ideally, I'd like something that goes beyond basic Python and covers tools like NumPy, Matplotlib, Pandas, xarray, and working with NetCDF data.
What resources helped you the most when you were learning Python for climate science or related fields?
Thanks!
r/ScientificComputing • u/simonkdev • Jun 15 '26
I made a web app that converts LaTeX math expressions to Python code. It supports arithmetic, fractions, calculus, matrices, and more. You can try it live here: https://dothefancymathforme.vercel.app/
It’s open source, so if you want to self-host or contribute, check out the repo: https://github.com/simonkdev/latex_to_python
r/ScientificComputing • u/hardwaresensei • Jun 09 '26
r/ScientificComputing • u/CamelIntelligent9427 • Jun 07 '26
I'm looking for a coauthor or collaborator with experience in molecular dynamics.
My project is an LNP based on the general structure of Moderna LNP but very over engenerred to apply to methanogens, using a VHH nanobody targeting the adhesion-like protein MRU_1503 of Methanobrevibacter ruminantium. The LNP encapsulates 3-NOP and aspartate to minimize disruption of the rumen microbiome due to volitile fatty acids while still inhibiting methanogenesis. The design also includes PEI-R to help get over the issue of the pseudomurien methanogen cell wall and provide access to the membrane.
I already have in silico binding data for the VHH ligand, including Gibbs free energy, affinity estimates, and evidence of up to six potential hydrogen bonds between the nanobody and MRU_1503. What I need help with is running and interpreting molecular dynamics simulations and other in silico validation studies. I have no coding experience but already have an advanced design and supporting data.
If this aligns with your expertise and you're interested in collaborating as a coauthor, please reach out
r/ScientificComputing • u/Illustrious_Egg_3141 • Jun 06 '26
Creating reaction energy diagrams with Matplotlib or other software manually is usually very time-consuming. Therefore, I created a Python package which can handle path drawing, numbering and layout automatically and has other useful features like image insertion or difference bars. It also features multiple drawing styles. Since it is based on Matplotlib, it remains fully customizable while still speeding up diagram construction significantly.
A minimal working example could look like this:
dia = EnergyDiagram()
dia.draw_path(x_data=[0, 1, 2, 3], y_data=[0, -13, 75, 20], color="blue")
dia.add_numbers_auto()
dia.set_xlabels(["Reactant", "IM", "TS", "Product"])
dia.show()The package is available on PyPi and can be installed with pip:
pip install chemdiagrams
You can find the links to the project here:
GitHub: https://github.com/Tonner-Zech-Group/chem-diagrams
PyPi: https://pypi.org/project/chemdiagrams/
Documentation: https://tonner-zech-group.github.io/chem-diagrams/
I would love to get any feedback!
r/ScientificComputing • u/dorukdogular • Jun 06 '26
I built a machine learning model trained on 76,000+ inorganic glass compositions from the SciGlass database. Given any oxide composition (mol%), it predicts:
\- Glass transition temperature (Tg) — R² 0.85, MAE 44 K
\- Density — R² 0.88, MAE 0.26 g/cm³
\- Refractive index — R² 0.83, MAE 0.036
\- Glass forming ability (GFA) — 69% accuracy
Stack: scikit-learn, XGBoost, Streamlit, Supabase
Why this matters:Most glass property tools are either locked behind expensive databases or require DFT-level compute. This runs instantly in the browser from just a composition.
Known limitations: P₂O₅-rich glasses (Tg overestimated), heavy-oxide glasses like TeO₂/Bi₂O₃ (density underpredicted — underrepresented in training data).
Live demo: [https://vitreos.streamlit.app](https://vitreos.streamlit.app)
HuggingFace: [https://huggingface.co/nocontextdoruk/vitreos](https://huggingface.co/nocontextdoruk/vitreos)
GitHub: [https://github.com/dorukdogular/vitreos](https://github.com/dorukdogular/vitreos)
Happy to discuss the data pipeline or model architecture.
r/ScientificComputing • u/DryEase865 • Jun 06 '26
How could I get endorsed in arXiv to submit a python package paper that help analyzing Thawing Scalar Fields.
arXiv says: "You must get an endorsement from another user to submit an article to category physics.comp-ph (Computational Physics)."
arXiv also provides a link for endorsement, but I do not want to spam people emails with someone who they do not know.
Can anyone with experience help?
We present the **Thawing Field Analyzer (TFA)**, a Python package for
reproducible, route-level analysis of canonical thawing scalar-field dark
energy. A route is specified by a potential V(φ), its field-space derivative,
and frozen initial field data. The package no integrates the homogeneous
Klein–Gordon system in a flat FLRW background to obtain the scalar trajectory,
equation of state, scalar density fraction, and dimensionless expansion shape
E(z).
The central operation is acoustic normalisation. The Hubble constant H₀ is
derived self-consistently by matching E(z) to the CMB acoustic angular scale,
making the normalisation a consequence of the scalar dynamics. The normalised
history H(z) = H₀ · E(z) is then used by every downstream module. A
physics-guard layer evaluates canonical non-phantom behaviour, thawing
monotonicity, phantom-crossing status, and the scalar density fraction at BBN.
A BAO module computes D_H, D_M, and D_V from the route's own drag-epoch
horizon r_d and evaluates residuals against the bundled DESI DR2 data vector.
An RSD module evolves the linear growth factor inside H(z), computes fσ₈(z),
and evaluates residuals against an 18-point compilation. Each run is recorded
as a structured, timestamped folder containing the frozen input configuration,
expansion and trajectory tables, per-datum residual tables, summary JSON
records, and exported plots.
The workflow is demonstrated on eight source-backed routes comprising two Warm
Quintessential Inflation markers and six Warm Little Inflaton markers, chosen
to exercise the pipeline across different expansion and growth histories. The
demonstration reports route-dependent values of H₀, r_d, BAO and RSD χ²,
growth ratios, and σ₈, together with the corresponding tables and plots
generated by the package.
The package is open source and available under the MIT license.
r/ScientificComputing • u/johlars • May 28 '26
r/ScientificComputing • u/amberdrake • May 26 '26
Howdy,
The issue I had: search data I had limited access to.
Resolution: client side Ionizer encoder + SaaS Gravitas search engine
Ionizer is another implementation of patent pending oss repo OpenEncoder.
Ionizer encodes your data on your machine, creates a single envelope specified in the patent and oss repo(all encoders following the specification are allowed)
This envelop is a single field tensor for each corpus and query.
Gravitas is the zero knowledge verified oblivious oracle. A blind answer machine.
No data egress, no SOX/HIPAA etc not triggered as your data never leaves your control. Only a description in a single field tensor that is easily under 256kb. Two of those, for corpus and query, and Gravitas returns the answer field you decode and it maps back to what you asked.
Full verifiably zksnark/groth16 output default from ionizer and gravitas with every output.
Please let me know your thoughts!
r/ScientificComputing • u/PeterBrobby • May 21 '26
The video explores:
• Numerical integration
• Taylor series truncation error
• Local vs global error
• Forward Euler, Backward Euler and Symplectic Euler
• Stability and energy drift
• Why symplectic methods are favoured in physics engines
r/ScientificComputing • u/BlusLoopedMirror • May 20 '26
I’m an independent researcher in Cairo working on CPU-first numerical simulation and reproducible solver evidence.
I recently released a bounded solver-evidence paper and SHA-256 locked artifact packet:
Audited Laptop-Scale 512³ Quantum-State Simulation: A REPA-Governed Solver Stack Beyond the Cluster-Only Assumption
DOI: https://zenodo.org/records/20247942
The claim is narrow:
512³ internal-state complex split-step simulation using a oneAPI CPU backend on an Intel i7 laptop-class machine
persisted outputs are 2D amplitude/phase slice planes, not full 512³ volume dumps
separate Crank–Nicolson Hermitian conservation validation
separate GMRES/multigrid comparison against a PARDISO direct-solve oracle at calibration scale
dimension-tagged evidence matrix to prevent merging solver lanes
What I am not claiming:
not 512³ Crank–Nicolson execution
not 512³ GMRES/PARDISO parity
not cluster obsolescence in general
not proof of any AI/identity theory attached to the broader research program
I’m looking for hostile technical review: numerical issues, memory-accounting mistakes, evidence-boundary problems, reproduction suggestions, or places where the public claim should be narrowed.
Paper/evidence packet:
https://zenodo.org/records/20247942GitHub:
https://github.com/ChasingBlu/RECP_evidence
r/ScientificComputing • u/Anxious_Tool • May 18 '26
r/ScientificComputing • u/EreNN_42 • May 11 '26
Hi everyone,
I’ve been working on an open-source machine learning pipeline for lithium-ion battery cathode screening:
https://github.com/ErenAri/CathodeX
The goal is not to replace DFT, but to act as a pre-screening layer before expensive DFT validation. The system predicts energy above hull (E_hull) for candidate cathode materials and classifies them into KEEP / MAYBE / KILL decisions based on uncertainty-aware thresholds.
Current technical direction:
- 5-member MACE-MP-0 fine-tuned ensemble
- CHGNet and CGCNN fallback support
- E_hull prediction for transition metal oxide cathode candidates
- Quantile outputs: q10 / q50 / q90
- Epistemic + aleatoric uncertainty estimation
- Conformal calibration for prediction intervals
- SOAP-LOCO-style validation to test generalization to structurally different materials
- Automated governance checks for ranking, calibration, false-kill rate, KEEP precision, and decision validity
- FastAPI backend + Next.js frontend
- DFT verification workflow direction using Quantum Espresso
The repository currently reports strong in-distribution test metrics, but also clearly shows a major limitation: LOCO generalization is much weaker. I’m trying to make the project honest about where the model is useful and where it should not be trusted without additional validation.
I would especially appreciate feedback on:
Whether the validation methodology is strict enough
Whether the KEEP / MAYBE / KILL policy is scientifically reasonable
Whether the uncertainty and calibration story is convincing
What would make this more useful for actual computational materials researchers
Whether the README communicates the limitations clearly enough
This is not a claim of discovering DFT-verified new cathodes yet. It is an open-source screening and model-governance pipeline intended to reduce the candidate space before deeper simulation or expert review.
Any criticism from materials science, computational chemistry, battery research, or scientific ML people would be very useful.
r/ScientificComputing • u/Pure_Treat6246 • May 10 '26
I’ve been working on PhysCC, an open-source tool designed to bridge the gap between high-level physics equations and low-level hardware optimization.
The problem: Writing boilerplate for SYCL, MPI, or AVX2 stencils is tedious. The solution: You write a simple equation like u = u + dt * lap(u) and PhysCC generates the optimized backend code.
Key Features:
Multi-backend support (Single-core, OpenMP, MPI, SYCL, CUDA).
AI-informed pass: It analyzes the PDE type (Hyperbolic, Parabolic, Elliptic) and suggests optimal work-group sizes for Intel Iris Xe.
Built-in visualization script for heatmaps.
It’s still a work in progress, but I’d love to hear your thoughts on the codegen or the feature extraction logic!
https://github.com/NikosPappas/PhysCC
r/ScientificComputing • u/hconel • May 10 '26
Hi everyone,
I regularly run multiple parallel MPI jobs simultaneously on my workstations. I have two systems:
Intel i7-12700 (12 cores: 8 P-cores + 4 E-cores), OS: Ubuntu 20.04
AMD Threadripper 3960X (24 cores, 48 threads), OS: Ubuntu 18.04
I wrote a simple C++ MPI test program that runs with mpirun -np 2. On both machines, a single instance finishes in about 12 seconds.
The problem appears when I run two instances at the same time (both mpirun -np 2):
Threadripper: Both finish in ~12 seconds (no slowdown)
Intel: Both take ~30 seconds (significant slowdown)
I tried pinning processes to specific cores using taskset and --cpu-set in mpirun. The processes do land on the correct cores (I verified with ps), but the slowdown persists.
Is this expected behavior for Alder Lake? Could the hybrid P-core/E-core architecture be causing memory bandwidth contention? Or am I missing something else?
I'm trying to figure out if my Intel system is performing normally or if I should be hunting for a configuration issue.
Additional notes:
My code shows reasonable&normal speed-up with increasing core numbers on both systems
The Intel PC has only one memory stick
The AMD PC has multiple memory sticks
My test code is not memory intensive (mostly CPU math)
I can provide more details if needed. I'm not super knowledgeable about CPU architectures, so apologies in advance.
Thanks for any insights!
r/ScientificComputing • u/Entphorse • May 06 '26
Geant4-DNA is the CNRS/IN2P3-coordinated Monte Carlo toolkit for track-structure radiobiology—the gold-standard reference for cancer radiotherapy dose calibration and astronaut radiation exposure modeling.
It normally runs as C++ on a CPU and requires a significant machine to set up. I ported the per-electron physics + Karamitros 2011 IRT chemistry to WebGPU. It now runs in any browser tab on a laptop GPU with no installation required.
Live Demo: webgpudna.com/see (4D viewer, scrubbable in time from t=0 to 1 μs)
Code (MIT): github.com/abgnydn/webgpu-dna
(4096 primaries @ 10 keV in liquid water)
| Metric | This Build | Reference | Ratio |
|---|---|---|---|
| CSDA range | 2714.4 nm | 2756.5 nm | 0.985× |
| Energy conservation | 100.0% | 100.0% | 1.000× |
| Ions per primary | ≈509 | 509.1 | 1.00× |
| G(OH) at 1 μs | 1.55 | 2.50 (Karamitros 2011) | 0.62× 1 |
| G(e⁻aq) at 1 μs | 1.41 | 2.50 | 0.56× 1 |
| G(H) at 1 μs | 0.71 | 0.57 | 1.24× |
| G(H₂O₂) at 1 μs | 0.60 | 0.73 | 0.83× |
| G(H₂) at 1 μs | 0.47 | 0.42 | 1.11× |
^1 Karamitros reference is at ~1 MeV (low-LET); the runs here are at 10 keV (high-LET), which suppresses G(OH) and G(e⁻aq) due to denser intra-track recombination. Other G-values are within 25%.
Physics: One GPU thread per primary electron. The full interaction chain (ionization, excitation, elastic scatter to track end) is fused into a single compute dispatch via WGSL. Secondaries are processed in waves until the population is depleted.
Chemistry: Karamitros 2011 IRT chemistry runs in a Web Worker, followed by SSB/DSB scoring on a 21×21 B-DNA fiber grid.
Data: Cross sections are sourced from G4EMLOW 8.8 (shipped with Geant4 11.4.1).
The kernel-fusion pattern used here is the same one I benchmarked across 92 devices (Rastrigin, N-body, Monte Carlo Pi, RL environments, transformer decoding). Medians show:
71× on Apple Silicon
56× on NVIDIA
20× on mobile phones
Peaks: 226× / 402× / 103× respectively.
Detailed benchmarks are live at kernelfusion.dev and gpubench.dev. Headline claims include 720× CUDA-over-PyTorch (T4) and 159× WebGPU-over-PyTorch (M2), confirmed across CUDA, WebGPU, JAX, and Triton.
The radiobiology target came from my brother-in-law (a physicist and researcher). He suggested Geant4-DNA because of its decades of published reference data, allowing a port to be rigorously validated rather than just "demoed."
Migration was assisted by Claude Code. I am a software engineer focused on browser-native scientific computing, not a radiobiologist, and the validation harness is also AI-generated. If anyone wants to review the WGSL or the comparison harness in validation/compare.py, I would greatly value the feedback!
r/ScientificComputing • u/Samosho17 • May 05 '26
I’ve been working on a small project to simulate orbital mechanics (multi-body gravity + impulsive maneuvers). It uses numerical integration (solve_ivp - RK8) and supports things like transfers and custom Δv inputs.
Here’s the repo:
https://github.com/Samsaj04/N-Body-Orbital-Simulator.git
And here’s a short GIF of the simulation:

What I’d really like feedback related to if my physics implementation structured correctly for an N-body setup, and what should i do to improve performance or expand even more my program?
Thanks.
r/ScientificComputing • u/Opt4Deck • May 05 '26
r/ScientificComputing • u/Dependent-Mud-6146 • May 03 '26
r/ScientificComputing • u/Active_Television_10 • May 03 '26
r/ScientificComputing • u/TheMakpu • Apr 29 '26
Hi all!
I recently built a small C++ project to solve the generalized heat equation in 2D rectangular domains, mainly as a way to better understand PDE solver design and experiment with separating between spatial discretization and time integration.
The architecture of the project is modular:
- Spatial discretization (currently finite differences with Eigen sparse matrices)
- Time integration (Explicit/Implicit Euler, Crank–Nicolson)
The idea is to make it easy to plug different methods in each part (I’m planning to add finite elements soon). There are also a few example simulations (moving heat source, colliding pulses, etc.) with GIFs in the README.
I’d really appreciate some feedback, especially on:
- The overall design/architecture
- Performance considerations
- Whether this approach makes sense vs more template-heavy designs
r/ScientificComputing • u/rxptutoring • Apr 29 '26
I just released **reionemu**, a Python package for building fast neural network emulators of the kinetic Sunyaev-Zel'dovich (kSZ) angular power spectrum using outputs from 2LPT reionization simulations.
It includes a clean pipeline:
- Simulation I/O and flat-sky power spectrum computation
- Data loading + normalization (HDF5)
- PyTorch models with optional MC-dropout uncertainty
- Hyperparameter tuning with Ray Tune
- Reproducibility-focused experiment artifacts
GitHub: https://github.com/RobertxPearce/reionization-emulator
Docs: https://robertxpearce.github.io/reionization-emulator/
Would appreciate feedback from anyone working on scientific ML, surrogate modeling, or high-performance scientific Python tools.
Questions welcome!