r/computationalphysics • • Jul 13 '26

Could anyone independently reproduce the numerical output of this Python implementation?

0 Upvotes

I am seeking independent verification of the computational code developed for my dimensional genesis and four-interaction theoretical framework.

GitHub repository:

https://github.com/madein1001/dimensional-genesis-four-interactions

Please download or clone the repository, run the code independently, and determine whether the reported results can be reproduced.

I would especially appreciate a critical examination of the following questions:

  1. Does the code run successfully in a clean Python environment?

  2. Can the reported numerical results be reproduced?

  3. Are any target values hard-coded, fitted, or indirectly reused?

  4. Are there any hidden adjustable parameters or circular dependencies?

  5. Are the mathematical rules correctly implemented in the code?

  6. Are there any numerical, logical, methodological, or physical errors?

Please do not assume that the theory or its physical interpretation is correct. I welcome critical reviews, failed reproductions, counterexamples, bug reports, and detailed explanations of any problems you identify.

If you run the code, please report your operating system, Python version, actual output, error messages, and any modifications required to make it run.

The purpose of this post is to invite independent reproducibility testing and falsification. Thank you to anyone willing to examine the code carefully.


r/computationalphysics • • Nov 22 '24

Nested Recursive Functions in a Computationally Irreducible Universe as an Explanation for a Spectrum of Consciousness

1 Upvotes

Here is my conversation with ChatGPT 3 as a bouncing board for thinking about computational irreducibility, nested recursive functions, and the potential implications it has on the nature of consciousness. Potential research implications could include:: computational neuroscience modeling functional graphs of connectivity between brain regions that approximate relationships in the external, physical world, then developing a sense of scale for this recursion of information (quantum fields eventually to brain back down to how we reduce the idea of quantum fields). It is worth noting that current neuroscience techniques can only correlate blood oxygen flow to certain regions of the brain (1 fMRI voxel = 100k-1mil neurons) with activity at certain time intervals. Therefore, decoding the exact nature of thoughts has a low resolution compared to the depth in which we understand how external stimuli function, but it follows that the connections within the brain MUST, at some macroscopic scale, resemble the behavior of the universe in order to conceptualize and reduce the incoming information that contains the inherent data structure (assuming this theory is correct, however I don't yet have the mathematical background to neither prove nor disprove this argument, though it is interesting and compelling.)

First time posting on reddit so here is the link for anyone interested: https://chatgpt.com/share/6740398d-e76c-8003-8d5b-dc596462ba99

Feel free to comment with any disagreements on any of the premises, I am very open to feedback on this idea.


r/computationalphysics • • May 19 '26

Classical 2D scalar field on a toroidal lattice in Java — topological solitons and false vacuum nucleation emerged without being programmed

3 Upvotes

A 10,000-node toroidal lattice, φ⁴ potential, explicit finite-difference integration. ~15 lines of update logic.

What emerged:

  • False vacuum bubble nucleation — circular domain expands outward (Fig. 1), analogous to inflationary cosmology

  • Stable topological solitons at domain wall junctions (Fig. 3) — conserved charge, not placed manually

  • Spontaneous symmetry breaking: field globally chooses +v or −v (Fig. 5)

  • Wave propagation and dispersion (Fig. 6)

  • Complex interference from toroidal boundary conditions (Fig. 4)

No quantum mechanics — purely classical field theory as a warmup toward understanding QFT vacuum structure intuitively.

Code: git clone https://github.com/malexple/quant ./gradlew run — click anywhere to perturb the field.


r/computationalphysics • • 8d ago

Rec Laptops for Heavy Simulation Work for under $1500 USD

3 Upvotes

Laptops for Heavy Simulation and Engineering work under 1500 USD!

I’m looking to purchase a new laptop for under $1,500 USD, ideally around $1,100–$1,300.
My primary use case is engineering, programming, and computational research, and preferably some
gaming but, definitely not the priority.

My workloads include:

● Heavy physics and robotics simulations (MuJoCo, potentially Isaac Sim)
● Computational physics and numerical simulations
● PyTorch and machine learning development
● C/C++ development, CPU emulation, and low-level systems programming
● Long-running CPU-intensive workloads
● Large datasets, scientific computing, and multitasking
What I’m looking for:
● Strong CPU performance, especially sustained multicore performance
● At least 32GB RAM, preferably upgradeable to 64GB
● At least 1TB SSD, ideally with an additional M.2 slot
● Dedicated NVIDIA GPU (CUDA support is important)
● Excellent cooling and thermal management
● Good build quality and long-term reliability
● Good Linux/WSL2 compatibility
● A laptop I can realistically keep for 4–5+ years

I’ve been considering the Gigabyte AERO X16 (Ryzen AI 7 350, RTX 5060, 32GB RAM), but I’ve come across concerning reports about its build quality, hinges, and Gigabyte’s software.
I’m not opposed to gaming laptops if they offer better performance, cooling, and reliability. I’ve also considered Lenovo Legion models.

A few questions:

  1. What laptops would you recommend for these workloads under $1,500?

  2. Is the AERO X16 actually reliable, or should I avoid it?

  3. Would you prioritize a stronger CPU over a stronger GPU for this use case?

  4. Which manufacturers have the best cooling, build quality, and long-term reliability?

I’m not looking for the thinnest or prettiest laptop. I want something dependable that can handle demanding engineering and research workloads locally without relying on cloud computing.
I’d especially appreciate recommendations from people who use their laptops for scientific computing, simulation, engineering, or software development. Thanks!


r/computationalphysics • • Jan 22 '22

wip verified by a nasa scientist: i conformally (time space light as xyz) mapped perceived telepathic messages with their associated colors and sounds as a language binding, then proved interpretive accuracy w respective rgb values https://danigauthier.me/portfolio/womb

Post image
3 Upvotes

r/computationalphysics • • Sep 29 '26

The Physics Update Loop

Thumbnail
youtu.be
2 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/computationalphysics • • 13d ago

Testing a neural-symbolic discovery engine on an out-of-distribution potential: Recovering an EFT-inspired force law from noisy 3-body trajectories

Post image
2 Upvotes

Hey r/ComputationalPhysics,

I've been experimenting with an open-source neural-symbolic discovery framework (Emergentia) that attempts to extract analytic force laws directly from particle trajectories.

To give it a true out-of-distribution (OOD) test, I set up a synthetic 3-body system governed by an effective field theory (EFT) inspired toy potential—combining harmonic confinement, Newtonian gravity, and a leading $r^{-3}$ quantum-correction term (yielding an $r^{-4}$ force):

$$V(r) = \frac{1}{2}k(r-r_0)^2 - \frac{G}{r} - \frac{Q}{r^3}$$

$$F(r) = -k(r-r_0) - \frac{G}{r^2} - \frac{3Q}{r^4}$$

None of the existing potential registries in the project had $r^{-4}$ terms, making it completely unseen by the pipeline.

### The Setup:

  1. **Simulation:** 3 particles in 3D integrated via Velocity Verlet ($dt = 0.005$) over 2,000 steps with $1\%$ Gaussian noise and periodic velocity impulses to sample phase space ($r \in [0.42, 2.8]$).

  2. **Conservative Neural Mapping:** The network learns the scalar potential $V(r)$ rather than predicting forces directly, enforcing $\nabla \times \mathbf{F} = 0$ and deriving forces via autograd ($F = -\nabla V$). Huber loss was used to handle the steep plunge near the singularity.

  3. **Symbolic Distillation:** Symbolic regression and template fitting evaluated via BIC ($n \ln(\text{MSE}) + k \ln(n)$).

### Results:

- **Discovered Law:** $F(r) \approx -10.018(r - 1.0) - 0.988/r^2 - 0.440/r^4$

- **Ground Truth:** $k=10.0$, $G=1.0$, $3Q=0.45$ ($Q=0.15$)

- **Parameter Recovery Error:** $< 2.2\%$ across all constants despite $1\%$ trajectory noise.

- **Goodness of Fit:** $R^2 = 0.99993$, $\text{MSE} = 1.51 \times 10^{-3}$.

The turning point where the $r^{-4}$ singularity overtakes the harmonic restoring force occurs at $r^* \approx 0.78$, which the neural mapping captured accurately without collapsing into the singularity during rollout.

I'm currently preparing an oscillatory Yukawa test ($F \sim -G/r^2 [1 + A \cos(r/\lambda) e^{-r/\lambda}]$) to test how autograd handles periodic spatial ripples. Would love feedback on the methodology or suggestions for other high-curvature potential benchmarks!

github

toy demo (made with meta.ai)


r/computationalphysics • • Sep 11 '24

Make documentation in C

11 Upvotes

Hi everyone. I'm new in this subreddit. I'm currently studying Computational Physics, for an exam at the university. One of the things i have to do is to write code in C to compute integrals(using Simpson, Gauss, Importance Sampling and other methods). My professor suggests to write a library that include all the methods that i have to use for the exercises. Ok great, i'm writing the library and i want to make a documentation for it. I want to make it but i don't know how. In my mind i want to make it like Javadoc for the java documentations. Can someone suggests me something like Javadoc for the documentation in C? I hope my request is clear. Thanks you all :)


r/computationalphysics • • Apr 06 '22

NYU Launches Simons Center for Computational Physical Chemistry

Thumbnail
nyu.edu
2 Upvotes

r/computationalphysics • • Jul 03 '26

Gravity collapse, 2D n-body simulation

15 Upvotes

This was written in Processing. I used it to do casual accuracy comparisons between different versions of code. No collisions, so to deal with high body densities, there is a gravity-free zone around each body, within which other bodies simply coast through. The challenge was to get the longest run time without the symmetry breaking down. Smaller gravity-free zones caused faster breakdown. Different zone sizes created unique patterns.

The very first simulation starts with a random position distribution, just for reference.


r/computationalphysics • • Jul 19 '26

Open-Source 4D FCC Lattice Gauge Engine Baseline (Stage 1-3 Python Scripts)

2 Upvotes

I want to share a localized 3D/4D cellular automata network code baseline I have been testing on a local GPU setup (RTX 3060).

The repository contains scripts tracking discrete spatial Laplacian phase-hopping transitions over a 12-neighbor cuboctahedral coordinate matrix. The system implements a Perfectly Matched Layer (PML) absorbing boundary tensor to test wave propagation limits under strict geometric invariants (sqrt(2)/3 and 1/phi^2) without adjustable parameters.

The master array-updating engine and the full mathematical framework PDF layout are open for public audit and code review at:

https://github.com/dingerdudeman/Acoustic-Tapestry-Hypothesis/tree/main

I am an independent developer looking for feedback explicitly regarding the non-linear matrix lockup routines at the 0.8927 compression wall, and suggestions on how to optimize these array loops for large-scale multi-cell CUDA tensor matrices.


r/computationalphysics • • Sep 23 '26

A coupled Regge-Maxwell toy model on a dynamic icosahedral mesh with exact energy conservation (Python + DEC)

Thumbnail github.com
4 Upvotes

r/computationalphysics • • Sep 30 '26

some more shapes floating around

Thumbnail
youtu.be
1 Upvotes

r/computationalphysics • • Aug 23 '26

What career paths exists between computational mechanics, scientific computing (SciML), FEA (or meshfree) solver development, and HPC (GPU acceleration, porting codebases) ?? How about doing a PhD for improving the above?

14 Upvotes

I'm currently, technically, doing an MS in Structural Engineering. For me, my interest has been more towards computational side of mechanics rather than Structural design  or simply using am FEA software (although I do consider it as a backup)

So far I've taken courses in:

- Linear static, and dynamics FEM (soon taking non linear FEM too)

-  Structural Optimization (topology opt. and other general algorithms)

-  Structural Dynamics

-  Structural System Testing and model updation. (Parameter identification and optimization, signal processing)

Now, I plan to take these in the coming quarter:

- Numerical Linear Algebra

- Numerical PDE

- Fracture Mechanics ?

I also volunteered to aid in a RESEARCH in crack growth prediction using Auto-encoder and a (Thermodynamics-informed Latent Space Dynamics Identification) / LSTM surrogate model. It used phase-field-fracture simulation data and HPC resources to complete the whole thing.

What I keep finding myself interested in is not necessarily fracture or SHM specifically, but the computational methods underneath these problems... (does that make sense?)

For example, I'd like to become capable of doing things like:

- implementing (maintaining) numerical/FE method solvers rather than only running an established FEA software.

- developing surrogate/reduced-order models for expensive simulations 

- combining simulation with optimization, uncertainty/stochastic methods (took a course called Random vibrations, so...)

- parallelizing/accelerating scientific codes on CPUs/GPUs

- doing proper verification, convergence studies, benchmarking and performance work

- potentially developing or maintaining actual CAE/FEA solver software

- I'd also like to do all these for other Physics (GR, QM, etc.) simulations too, if possible, one day. 

I'm still interested in the underlying mechanics/physics, so I don't want to become a generic software engineer who happens to have once studied structures. But I'm also increasingly unsure that "structural engineer" describes the career I'm actually aiming for.

I've seen titles such as Computational Mechanics Engineer, R&D Engineer, Solver Developer, Scientific Software Engineer, CAE Software Developer, Research Engineer, Simulation/HPC Engineer, etc., but I'm trying to understand what these careers actually look like from people doing them.

So my main questions become:

1. Which industrial jobs genuinely involve developing numerical methods/solvers or computational tools?

2. Which of those are realistically accessible with an MS? Is there an entry path into solver-algorithm development/R&D without a PhD?

3. If I don't start a PhD immediately after my MS, would an R&D/software role at a simulation company (ANSYS etc.) be the obvious route? What other options would i have?

4. For the kind of work I'm describing, would you recommend a PhD? If so, is it reasonable for the PhD identity to be "computational mechanics/scientific computing" while fracture, composites, structural dynamics, soft materials, etc. serve as application problems rather than choosing one of those as my permanent specialization?

5. What skills most distinguish someone who is actually hireable for solver/scientific-computing work? I'm particularly wondering about C/C++/Fortran, Python, Linux, Git/build systems, MPI/OpenMP/CUDA, PETSc/Trilinos or similar libraries, numerical linear algebra, testing/verification, convergence studies and HPC performance work.

Basically, I'm neither here nor there atp. So I'd really appreciate all sorts of input. Where else do you think I could find answers to these? other subs? Linkedin profiles? 


r/computationalphysics • • Jun 29 '26

How to start doing simulations?

10 Upvotes

Hi everyone. I am an undergrad physics major and I want to start doing plasma simulations. How to start doing it? I know python. Where is the best place to start computational plasma physics? Can anyone please guide me.


r/computationalphysics • • Sep 29 '26

24 cell tesseract visualization

Thumbnail
youtu.be
2 Upvotes

r/computationalphysics • • Jul 27 '26

Squares — build quantum circuits in your browser

Thumbnail
reddit.com
1 Upvotes

r/computationalphysics • • May 23 '26

Frequency Domain Lattice Boltzman Method

2 Upvotes

&#x200B;

Hi,

I am a current 1st year PhD student working on acoustin measurement for molecules, mostly using Quartz Crystal Microbalance technique.

I know there are many methods to simulate the frequency and dissipation shifts, but from what I have read from literature one of the best is Freq Domain Lattice Boltzman Method.

I knwo there is a famous book from Soringer on Boltzman methid, but it is in time domain, not frequency..

Do you have some suggestion from where I can start?

As simulations, until now I did only DFT, FDTD and some very basics fluidics (Navier stockes).


r/computationalphysics • • 3d ago

Highschool student interested in comp physics and particle simulations, where do i start?

2 Upvotes

Hello,

I'd like to learn physics simulations, specifically particle simulations.

There's a physics competition I'd like to participate in and I'd like to contribute and be part of the team. The goal is to design a particle physics experiment, and I'm particularly interested in contributing through simulation, mathematical modeling, and data analysis.

I'd love to hear your experiences on how to learn it and what to build at first (what have you guys built?), any mathematics/physics concepts to master, any resources??

thank you so much


r/computationalphysics • • Feb 21 '22

Workstation Components Recommendations

4 Upvotes

I will be starting computational research at my university and I am tasked with seeking new hardware. I'm not sure where to begin. I have looked at the Lenovo Think Station P620 and I'm not sure its within our budget. What systems have you used or are knowledgeable about regarding workstations (not desktops) please offer advice.


r/computationalphysics • • Feb 21 '22

Computational Electromagnetics (CEM): What are some key technical challenges in writing good CEM programs?

4 Upvotes

I am determined to work in the domain of computational electromagnetics (CEM). I have started studying FEM, FDTD, and MoM methods, and have a fairly good theoretical knowledge of these (as presented in books on CEM). I do realise that there are several applications of CEM, and that different CEM methods are suited for different problems in electromagnetics.

Hence, I am interested in knowing about some challenges that CEM engineers face when implementing programs (be it commercial, military or research) to solve real world problems in electromagnetics. I also want to know about some research problems in CEM that are currently being worked on.

For example, I seek an insight in some challenges encountered in writing good boundary conditions, green's function, programming aspects, application aspects (like antenna, radar) etc.


r/computationalphysics • • Nov 18 '24

Fractal

Post image
7 Upvotes

r/computationalphysics • • Mar 04 '22

NaN: A simple explanation

2 Upvotes

I wrote an article recently trying to explain one of the strangest parts of floating-point math: NaN

This is meant to be an accessible article, and I think it would provide important background for people looking at going into computation.

https://www.lucidchart.com/techblog/2022/03/04/if-its-not-a-number-what-is-it-demystifying-nan-for-the-working-programmer/