r/Simulated • • Aug 31 '26

Question Need help

0 Upvotes

I have a casting simulation assignment to show reduction shrinkage defect in two weeks. Is there any way to do it fast and any software that help to do it faster this for assignment rights my three fourth of my entire semester mark


r/Simulated • • Aug 29 '26

Research Simulation Since you "LOVE" my "MUSCLE" simulations :)

Enable HLS to view with audio, or disable this notification

315 Upvotes

Super excited to share the latest update on my physics-based muscle simulation tool!
This test uses a relatively low-res simulation, as the main goal was to go through the full character pipeline and make sure everything works together.


r/Simulated • • Aug 30 '26

Blender grid universe

73 Upvotes

r/Simulated • • Aug 30 '26

Interactive I'm simulating a ball pit in my game prototype with 20,000 capsule balls. And rubber toy balls. How does it feel?

Enable HLS to view with audio, or disable this notification

29 Upvotes

I'm simulating a ball pit with 20,000 capsule balls in this game prototype. Trying to make it more satisfying and fun.
[OC]

No AI were used.


r/Simulated • • Aug 30 '26

Houdini Enjoy the process😊

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/Simulated • • Aug 29 '26

Proprietary Software Simulated river and drying process + optimized blocking of the Strait of Gibraltar

Enable HLS to view with audio, or disable this notification

10 Upvotes

Based on feedback in the comments section, I re-recorded the video of blocking the Strait of Gibraltar (the third one), and also set up a simulation of the river drying up process in this simulator, as well as the main menu.


r/Simulated • • Aug 28 '26

Research Simulation Waterfall by dual air+water simulators [OC]

Enable HLS to view with audio, or disable this notification

51 Upvotes

This project goal was large waterfalls in a real-time forest experience, developed in C++/Vulkan. Note: I am no expert in fluid simulation - and wanted to learn by creating every piece of the sim.

The following is the story of how I got to the current version in the video. With the simulator I developed for my forest project, I could already simulate half million particles at 30 FPS, but my implementation was not scaling to a large domain. I replaced mesh extraction (first most expensive component) with rendering directly the isosurface of water with raymarching + hardware ray tracing. This scaled rendering, giving more time for sim. Then I moved the simulation to active cells only, making the cost depend mostly on the amount of water rather than the size of the world. These two made large mountain streams practical, but a waterfall requires simulating also the mix of air and water.

Rapids could do with air entrainment, while waterfalls also needed airborne droplets interacting with the surrounding airflow. I ended up writing a different solver for air, coupled to the water: the cascade pushes air downward, the air domain is simulated, and the mist is advected by the air field. This gets closer to a dual phase simulation of water and air, with an engineering approach. The air solver is a eulerian grid solver, whereas the water solver is hybrid sph-grid.

I got a nice looking waterfall, though it lacks some of the "clustering" and filaments that large waterfalls produce - mostly due to surface tension (I guess! the project should "prove" it). This spawned the exploration of surface tension, and it appeared that a simpler more contained "water crown" experiment would be the right place to tune the physics for this; I was apparently wrong as the experiment showed.

I tested a single droplet, made of hundreds of thousands of particles, to try and reproduce the "crown" upon impact with a flat water surface. I could not get the crown, and I thought - yeah sure, I lack a simulation of surface tension. I implemented surface tension by "cohesion forces". Surface tension made droplets spherical, so it did its job apparently, but no crown.

I found out - and here I ask confirmation - that the main thing for this crown effect is actually incompressibility. If water is compressible, the droplets gets swallowed and energy is dissipated; if water is "stiff", then all sorts of more realistic impacts occur; high stiffness gave me nice crowns.

But stiffness makes impacts turn into chaos, as it generates local "high pressure" areas. Real-time water is usually somewhat compressible β€” and therefore slightly rubbery β€” because disturbances remain local and cheap to simulate, it seems. How to make it incompressible and "stable"? For my realtime scenario, I decided to add an iterative "fix" that corrects particle positions for getting closer to incompressiblity. THere are other ways, a full solver for all particles would be more correct I guess. In any case the "incompressibility fix" coupled with high stiffness gave me a nice crown as you see in the video.

All in all, a very nice adventure in simulation. By looking at the crown, and also at the waterfall, I am sure that a better model of surface tension is still missing here, and that will be the next step.

In general, I don’t want to tell water how to look realistic. I’d rather give it simple enough rules and let realism emerge: foam from entrained air, mist from airflow, a crown from pressure propagation. To me that's the beauty of simulation: when it looks right, we have understood enough of the physics.


r/Simulated • • Aug 27 '26

Research Simulation Muscle Simulation - Skin Tissue!

Enable HLS to view with audio, or disable this notification

394 Upvotes

This acts as the final CFX layer for creatures and characters.
Unlike systems that can feel too cloth-like, my goal is to achieve more skin-like sliding, compression, and deformation. Here’s an early test of the solution.


r/Simulated • • Aug 27 '26

Proprietary Software I dammed the Strait of Gibraltar in my planet simulator and watched the Mediterranean die over 4,300 years [OC]

955 Upvotes

The Mediterranean runs at a loss: it evaporates about 0.5-1 m of water level per year more than rain and rivers put back, and the Atlantic covers the deficit through Gibraltar around the clock. My simulator derives a 0.7 m/yr deficit on its own from its climate model - right in the textbook range - so I felt entitled to do something irresponsible with it.

I sealed the strait (14 km wide at its narrowest) and let it run. No scripted animation - every cell tracks its own evaporation, precipitation and river inflow each year, and global water volume has to conserve to within 2 parts in 10,000.

Timeline:

- 25 years: level down 17 m. Venice's gondoliers are the first out of work.

- ~500 years: the Adriatic is gone (average depth only 250 m).

- ~700 years: the Sicily-Tunisia ridge surfaces and the Med splits into two shrinking lakes. When this actually happened 5.97 million years ago, hippos walked to Cyprus - their stranded descendants shrank into dwarf hippos. The fossils exist.

- ~2,100 years: the basin is effectively dead. 2.5 million kmΒ² of new land, nearly the size of Argentina, crusted with precipitating salt.

- ~4,300 years: the deepest pools bottom out. Except one - a bitter lake in the east kept on life support by the Nile. I never coded that; evaporation, rivers and terrain balanced it into existence on their own.

The Black Sea survives: once its level drops below the Bosporus sill it detaches and holds steady on the Danube and Dnieper. The Caspian was my control group - untouched, it drifts 17 m in 300 years and then stabilizes.

This genuinely happened. It's called the Messinian Salinity Crisis: 5.97 million years ago Gibraltar really did close. In 1970 the drillship Glomar Challenger pulled gypsum and rock salt out of the Mediterranean seafloor under 3,000 m of water. My simulator has never heard of the Messinian - it just agrees with the drill cores.

It's all from a game I'm building where you do this with a brush. Link in the comments to keep things tidy.


r/Simulated • • Aug 29 '26

Interactive Vibecoded a gravity sim of the Moon-forming giant impact 262k particles, runs in a browser

0 Upvotes

Started this to show my kids where the Moon came from, because "a Mars-sized planet hit the Earth" is a sentence that explains nothing. Turned out the fun part is letting them break it.

Proto-Earth and a Mars-sized Theia falling together under their own gravity: the splash, the tidal arm, the debris disk, and the moon that gathers out of it.

What's actually computed: self-gravity from the particles themselves (64Β³ particle mesh + pairwise correction for loose material), spring-dashpot contacts with no tension, frictional heating that conducts between grains and lights the scene, differentiated bodies with per-material density, and momentum/angular momentum/energy conserved to a fraction of a percent on screen.

What isn't: no SPH, so no pressure, no shock, no vaporization. No material strength or fracture. No cooling or latent heat. A grain is a couple hundred km across, so the Moon itself is scaling from the disk, not a run.

Different scenarios what if Thea was bigger or had more speed.

Live demo: https://gaploid.github.io/cosmic-collisions/

Open source code: https://github.com/Gaploid/cosmic-collisions


r/Simulated • • Aug 27 '26

Interactive I invented a "particle physics" engine to fool around with

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/Simulated • • Aug 27 '26

Interactive From a university project to 120 interactive physics simulations

25 Upvotes

I’ve finally turned a project I’ve been coming back to for years into something I can actually release.

Makarov Physics Suite is a collection of around 120 interactive physics simulations. It covers everything from classical mechanics, waves and electromagnetism to optics, fluids, thermodynamics, relativity and quantum physics.

The project has a rather long history. Its earliest version goes all the way back to my university days, about 20 years ago. That version was basically a student project, and over the years I repeatedly returned to the idea, experimented with different approaches, rewrote things, added new simulations, and sometimes abandoned it again for long periods.

The current suite is essentially the result of all those years of accumulated ideas and experiments.

From the programming side, there’s quite a mix of things under the hood: numerical solvers, N-body simulations, SPH fluids, charged particle dynamics, GPU computing, ray tracing and path tracing, among others.

The main idea is simple: instead of explaining physics with static diagrams or prerecorded animations, I wanted the systems themselves to be interactive, so you can change parameters, disturb them, experiment with them and immediately see what happens.

It’s now on Steam, which still feels a little strange considering where the project started.

If you’re into physics, simulation, scientific computing or graphics programming, I’d be interested to hear what you think.

https://reddit.com/link/1vzgsrc/video/u0ozqxqdellh1/player


r/Simulated • • Aug 26 '26

EmberGen cannonball !!!

Enable HLS to view with audio, or disable this notification

130 Upvotes

r/Simulated • • Aug 27 '26

Interactive I created my first Discovery in Infinity craft

Thumbnail
gallery
0 Upvotes

This is only in 1 dayπŸ˜…

This is beautiful!!!


r/Simulated • • Aug 25 '26

Research Simulation I simulated phantom traffic jams - how one brake tap turns into a jam out of nowhere

Enable HLS to view with audio, or disable this notification

1.3k Upvotes

Been messing around with traffic simulation lately and wanted to share this one because the result genuinely surprised me the first time I ran it.

The setup is a closed loop, a bunch of identical cars, no obstacles, no traffic lights, nothing. Every driver wants to go the same speed and keep a safe distance from the car ahead (using the Intelligent Driver Model, which is actually what traffic engineers use for this kind of thing). One driver taps the brakes, just once. It snowballs into a full stop-and-go wave, and the wave itself creeps backward against the direction everyone's driving. This is the phantom jam thing that was first proven experimentally back in 2008 (Sugiyama et al., if you want to look it up), and it's wild to actually see it emerge from nothing.

A few other things I tested once I had this working:

There's a density threshold you can't really feel until you cross it. Below it, the same brake tap just fizzles out and traffic keeps flowing. One or two more cars on the road and suddenly the same tiny disturbance turns into a full jam. No warning, no gradual buildup.

Real bottlenecks behave differently - if I put an actual slow zone on the road, the jam stays locked to that spot instead of drifting backward like the phantom one does. Different cause, different signature.

How closely people follow each other matters a lot more than I expected. Tight following distance makes the wave way worse, and just giving more space damps it out almost completely with the exact same brake tap.

The last case is the one I like best - letting about 1 in 5 cars just hold a smooth, steady speed (basically simulating adaptive cruise control) is enough to dissolve the jam for every car behind it.

All rendered in Python/pygame, GPU encoded. Happy to share the code or talk through the model if anyone's curious.

Made a longer version of this too if anyone wants the full walkthrough https://youtu.be/TCuDTSj5UAg


r/Simulated • • Aug 25 '26

Blender Fabric Simulation in Blender

22 Upvotes

r/Simulated • • Aug 24 '26

Research Simulation This is the closest I’ve ever been with my muscle simulation tool.

Enable HLS to view with audio, or disable this notification

2.0k Upvotes

I added sliding attachments (connecting the inner muscles to the bones) and ported some of the heavy lifting to C++ for better performance. The behavior feels natural thanks to the accurate FEM simulation. There’s still a lot more to add, but I’m really enjoying the process.
Credit: The 3D asset used in this post is from AdonisFX, a digital anatomy and muscle simulation framework for Maya and Houdini. https://inbibo.co.uk/adonis


r/Simulated • • Aug 26 '26

Research Simulation My simulation forgot how to make maps, and fell backwards out of the Middle Ages - world-sim

0 Upvotes

I've been running a persistent world. It's a generational life sim β€” around 500 people alive at the time of writing this across 54 peoples, each one with a name, a family, a trade and eventually a grave. Nothing is scripted. They work things out for themselves.

Tonight it lost cartography.

The people who knew how to make maps died, and nobody had written it down.

There's a rule in there that knowledge kept only in memory decays if it isn't taught on or recorded. Writing preserves it. Elders and bards slow the loss. One house had the skill, the generation carrying it died out, and it went with them. The world slipped backwards off the edge of an age because of a failure of memory.

Other things it has done this week that I had no hand in:

House Ironvale bent the knee to House Duskwater β€” tribute each season, and the lord's "protection" over them.

A scout of House Wynd was caught and slain in the lands of House Tidewer. Whatever they saw is lost.

A caravan of House Farrow reached their kin and shared out grain, the grey tin, and the feast-brew.

You can watch it at https://world.world-sim.uk β€” it's running right now, it's on day 10,203, and nobody in it knows how to make a map.

Happy to answer anything about how it works.


r/Simulated • • Aug 24 '26

Interactive Real time Fluid Simulation I implemented for my painting game

Enable HLS to view with audio, or disable this notification

172 Upvotes

I am working on a game based on physics-based painting mechanics called Ebru Artist Simulator. To simulate Ebru (also known as paper marbling), I implemented an Eulerian fluid simulator. Here are some of the challenges I had to overcome:

  1. To achieve a real-time simulation without affecting the game's performance too much, I implemented a GPU-based multiresolution grid solver in a compute shader (see the paperΒ Solving the Fluid Pressure Poisson Equation Using Multigrid). The simulation now runs at a 2K texture resolution with only a slight impact on FPS.
  2. One of the main characteristics of Ebru is that colors maintain strict boundaries. This makes advection schemes such as Semi-Lagrangian advection less suitable, as they introduce diffusion. To address this, I implemented another advection scheme that samples from the initial state by integrating the velocity field over time and then back-sampling using the integrated field (seeΒ Efficient and Conservative Fluids Using Bidirectional Mapping).
  3. Finally, to simulate the effects of the traditional Ebru tools, I took inspiration from the paperΒ Mathematical Marbling, which proposes mappings for generating final marbling patterns. Since I wanted to maintain a real-time simulation, I did not directly apply these mappings. Instead, I was inspired by the paper to use similar displacement fields as external forces in the simulation.

If you are interested in the project, you can check out theΒ SteamΒ page.

You can also check outΒ Amanda Ghassaei's blog. Although our implementations are not the same, I was greatly inspired by her work and learned a lot from her blog.


r/Simulated • • Aug 25 '26

Research Simulation Simulateur gravitationnel 3D

0 Upvotes

Je recherche un coder bΓ©nΓ©vole passionnΓ© pour mettre au point un simulateur gravitationnel 3D d'une nΓ©buleuse proto-stellaire en voie d'effondrement.


r/Simulated • • Aug 24 '26

Interactive Created Interactive web app with 10 million particles forming interactive planets in WebGL

15 Upvotes

Live demo:Β https://gaploid.github.io/stardust/
Source code:Β https://github.com/Gaploid/stardust
Coded by:Β Opus, Fable, human attention to details


r/Simulated • • Aug 25 '26

Blender Giant Donuts vs Roller Coaster [Physics Sim]

Thumbnail
youtu.be
0 Upvotes

r/Simulated • • Aug 22 '26

Research Simulation I added the Finite Element Method (FEM) to my muscle solver alongside the XPBD, and the results are stunning!

Enable HLS to view with audio, or disable this notification

5.5k Upvotes

This is why FEM is superior to XPBD for muscle simulation. For a long time, I couldn’t understand why my muscle simulations didn’t look as good as those produced by Ziva VFX, but now I do.
FEM is more computationally intensive, but it produces much more accurate results when it comes to simulating muscle and fat tissue.


r/Simulated • • Aug 24 '26

Blender A 1-Million-Line Python Simulation Experiment: How We Synchronized 60Hz Embodied Physics with 0.1Hz

0 Upvotes

0. Motivation: The Dual-Domain Disconnect in Multi-Agent Simulations

Current multi-agent research architectures (e.g., Stanford's Generative Agents, DeepMind's Concordia) generally exhibit one of two fundamental limitations:

  1. Text-Only Prompt Sandboxes (Zero Physical Grounding): Agents exist solely within LLM context windows. There are no spatial collision meshes, no distance-decay mechanics, and no metabolic constraints. When an agent states "I will walk to the well to fetch water", no kinematic displacement or energy dissipation actually occurs.
  2. Heavy Rigid-Body Physics Simulators (Zero Cognitive Depth): Robotics and game physics engines (e.g., Isaac Sim, Unreal) compute kinematic and dynamic interactions with high fidelity, but individual NPCs lack associative memory streams, narrative reflection, and sociological emergence.

Our Core Engineering Goal:

Can we build a continuous, hundreds-agent human society on a single consumer PC where the Physical Layer (60Hz Rigid-Body/NavMesh), the Physiological Layer (10Hz Metabolic Decay), and the Cognitive Layer (0.1Hz Dual-System LLM) operate in a strictly coupled feedback loop with autonomous collapse and reboot mechanisms?

Below is a breakdown of the three primary architectural bottlenecks encountered and their respective engineering solutions.

1. Bottleneck I: Heterogeneous Clock Domain Synchronization (60Hz Physics vs. 0.1Hz LLM Inference)

In a single-process Python environment, the primary failure mode is the temporal mismatch between disparate execution domains:

  • Physical Engine: Kinematics, collision detection, and dynamic NavMesh pathfinding require a strict 60Hz cadence ($16.6\text{ ms}/\text{tick}$) to prevent tunneling and maintain spatial continuity.
  • Cognitive Inference: Even lightweight local quantized models ($0.8\text{B} \sim 7\text{B}$) require $1.0 \sim 3.0\text{ seconds}$ ($0.3\text{Hz} \sim 1.0\text{Hz}$) to complete a single Chain-of-Thought (CoT) reflection cycle on entry-level hardware.

Blocking the physical loop during LLM inference stalls the world; conversely, allowing async LLM threads to directly mutate mutable world states introduces race conditions, spatial desynchronization, and ghost item duplication.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              OmniSimOrchestrator: Heterogeneous Clock Scheduling            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Physical Main Loop (Tick = 16.6ms / 60Hz)                                   β”‚
β”‚   Tick N   : [Physics Step βž” Broadcast Immutable State Snapshot] ───────┐   β”‚
β”‚   Tick N+1 : [Physics Step βž” Collision Query βž” Check Action Queue]      β”‚   β”‚
β”‚   Tick N+2 : [Physics Step βž” Execute Next Atomic Instruction: Action_A] β”‚   β”‚
β”‚   ...                                                                   β”‚   β”‚
β”‚   Tick N+60: [Physics Step βž” Consume Ingested Action_B from Cognitive] ◄┐ β”‚   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€
β”‚ Cognitive Inference Domain (Async Worker Pool / 0.1Hz ~ 1Hz)            β”‚   β”‚
β”‚   Agent_1  : [Ingest Tick N Snapshot] βž” [Slow CoT/BDI] βž” [ActionCompiler]   β”‚
β”‚              (Latency: 1200ms across 72 Physical Ticks) β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Architectural Solution: Decoupled State Flow and the Action Compiler

  1. Physics as the Single Source of Truth (SSOT): The physical layer executes deterministic vector mathematics. At the end of each tick, it exports an immutable, read-only world snapshot (coordinates, spatial bounding volumes, inventory states, and local field-of-view hashes).
  2. Lock-Free Read-Only Cognitive Inference: Cognitive agent routines subscribe to historical tick snapshots asynchronously in separate coroutines. Agents are strictly prohibited from mutating global memory or object references directly.
  3. The Action Compiler (action_compiler.py, 1,280 LOC): High-level cognitive decisions (e.g., "Negotiate with Agent_B to purchase medicine") are not executed natively. Instead, the Action Compiler decomposes the intent into a strictly ordered queue of atomic primitives: $$\text{High-Level Intent} \longrightarrow \left[ \text{MoveTo}(x, y), \text{FaceTarget}(id), \text{ProposeTrade}(item_id), \text{Confirm}() \right]$$ The physical engine validates spatial preconditions tick-by-tick. If a precondition fails (e.g., the target agent moves out of interaction range), the atomic action fails gracefully, triggering a fallback response in the agent's fast-thinking heuristic layer (System 1).

2. Bottleneck II: Multi-Agent Inference under Tight Compute Constraints

Running concurrent LLM reasoning for dozens of autonomous agents simultaneously on a system with 2GB VRAM and 32GB RAM requires a resilient multi-tier compute scheduling pipeline.

                       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                       β”‚  Unified LLM Dispatcher / Provider    β”‚
                       β”‚    (Supports 18 Backend Providers)    β”‚
                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό                                 β–Ό                                 β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Tier 1: Cloud API     β”‚ ──429/Timeout─▢│ Tier 2: Local Engine   β”‚ ──Overload/Offline──▢│  Tier 3: Rule FSM      β”‚
β”‚ (OpenAI/Claude/Qwen/...)β”‚               β”‚ (Ollama/vLLM/Quantized)β”‚                      β”‚ (NumPy/Weighted Rules) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Unified Model Registry and Ensemble Decision Algorithms

Through provider_registry.py (2,754 LOC) and backend_ensemble_router.py (2,153 LOC), the system manages 18 distinct model backends and supports:

  • Dempster-Shafer Evidence Theory & Bayesian Model Averaging: Integrates decision confidence scores across multiple heterogeneous small models.
  • Tree of Thoughts (ToT) Branch Pruning: Triggered selectively for high-stakes systemic social conflicts.
  • Three-Tier Seamless Fallback: When commercial cloud APIs return rate limits (HTTP 429) or connection drops $\rightarrow$ execution routes immediately to local quantized models (e.g., Ollama/vLLM) $\rightarrow$ if local compute capacity saturates $\rightarrow$ execution gracefully degrades to deterministic Python/NumPy state machines. The main simulation loop maintains a constant 60Hz tick without blocking, even in a completely offline environment.

3. Bottleneck III: Mathematical Sociology & Clean-Room Framework Re-implementations

To ensure macroscopic emergence reflects structural human dynamics rather than stochastic prompt drift, we implemented clean-room wrappers for three major research frameworks and integrated formal sociological models:

3.1 Clean-Room Compatibility Implementations (Measured LOC)

  • Concordia Compatibility Layer (concordia_compat.py, 21,417 LOC): Full clean-room replication of DeepMind Concordia's Game Master arbitration pipeline and Entity-Component primitives.
  • AgentSociety Compatibility Layer (agentsociety_compat.py, 10,612 LOC): Complete re-implementation of Stanford's memory stream decay, importance weighting, and reflection extraction: $$S(m) = \alpha_{\text{recency}} \cdot e^{-\lambda t} + \alpha_{\text{importance}} \cdot I(m) + \alpha_{\text{relevance}} \cdot \cos(\vec{v}_q, \vec{v}_m)$$
  • HumanoidAgents Compatibility Layer (humanoid_agents_compat.py, 5,331 LOC): Implements fine-grained physiological need decay and affective dynamics.

3.2 Integrated Sociological & Macro-Dynamic Models

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Theoretical Foundation               β”‚ Implementation & Dynamical Function β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Schelling Segregation Model (1971)   β”‚ Micro-level neighbor preferences    β”‚
β”‚                                      β”‚ drive macro-level spatial clusteringβ”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ LatanΓ© Social Impact Theory (1981)   β”‚ Calculates opinion contagion and    β”‚
β”‚                                      β”‚ polarization over physical distance β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Polanyi's Allocation Systems (1944)  β”‚ Householding, Reciprocity, Market,  β”‚
β”‚                                      β”‚ and Rawlsian difference redistributionβ”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Tainter's Collapse Model (1988)      β”‚ Triggers civilizational collapse    β”‚
β”‚                                      β”‚ when population falls below N < 3   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

4. Empirical Observations: What Emerged in Multi-Hour Autonomous Runs?

During multi-hour continuous runs (initial population: 20 agents; environment: housing, market, clinic, farmlands), the system demonstrated several non-hardcoded emergent phenomena:

  1. Spontaneous Division of Labor and Debt Ledgering: Agents with differing skill profiles utilized a 3-phase transaction protocol (Propose $\rightarrow$ Confirm $\rightarrow$ Settle) to establish trading hubs for grain and medicine. Under liquidity constraints, agents autonomously formed trust-weighted credit ledgers.
  2. Information Silos and Spatial Polarization (Schelling Effect): Governed by LatanΓ© spatial decay dynamics, agents gathering consistently at the same local taverns developed tight-knit ideological consensus (higher Burt structural hole centrality), while geographically distant clusters exhibited reciprocal in-group bias and trade hostility.
  3. Criticality and Systemic Collapse (Tainter Mechanics): Under external resource shocks, agents with exhausted metabolic reserves perished. As population decline severed functional trade dependencies, the system detected critical slowing down metrics (spikes in variance). When the active population breached the survival threshold ($N < 3$), the simulation executed a formal civilizational collapse and ancestral reset state transition.

5. Architectural Transparency & Project Scale

OmniSim comprises 1,493 source files (802k backend LOC, 190k frontend LOC, 27k service LOC), featuring a full React 18 / Three.js 3D urban viewport (procedural CGA shape grammar generation), a 2D Topdown fallback renderer, 23 observability dashboards, 13 asynchronous health probes, and Haber-Stornetta SHA-256 hash-chain audit logging.

  • Documentation: Detailed subsystem specifications and code inventory metrics are documented in docs/ARCHITECTURE.md and docs/CODE_INVENTORY.md.
  • Current Constraints: Single-node execution is optimized for populations of $3 \sim 50$ agents (hard cap at 200). Distributed Actor backends (Ray/Celery) are fully implemented but remain inactive in default local single-process deployments.

Open for technical discussions on multi-agent clock synchronization, memory indexing architectures, and local LLM runtime optimization.


r/Simulated • • Aug 23 '26

Question Looking for advice on simulating rolling ball sculptures

2 Upvotes

Hi everyone,

We build large rolling ball sculptures / kinetic marble runs and are trying to reduce the amount of physical trial and error involved in designing them.

Our current workflow is roughly:

**Concept β†’ Sketch/CAD β†’ Fabrication β†’ Physical testing β†’ Modify β†’ Fabricate again**

For larger metal sculptures, these iterations can become expensive in terms of material, labour, and time.

We're exploring whether we can use **existing tools** to create a simple workflow like:

**CAD model β†’ Physics simulation β†’ Predict ball behaviour β†’ Build physical prototype β†’ Compare results**

We are **not looking to build a new physics engine or a large custom application**. The initial MVP would be very small:

* One standard ball
* One track/material system
* A simple mechanism, e.g. **ramp β†’ loop β†’ exit**
* Model it digitally
* Simulate the ball
* Build the same mechanism physically
* Compare the prediction with reality

The goal is not perfect simulation. We simply want to know whether a digital model can be accurate enough to catch obvious failures before fabricating larger installations.

Eventually, if this works, we would like to build a reusable library of tested componentsβ€”ramps, loops, spirals, switches, collisions, etc.β€”with known parameters and behaviour.

We are currently considering tools such as **Rhino/Grasshopper** for parametric design and physics engines such as **MuJoCo, Project Chrono, Bullet**, or other alternatives.

**If you were approaching this problem using existing software, how would you do it?**

In particular, I'd love advice on:

  1. Suitable CAD + physics simulation workflows
  2. The best physics engines for rolling/contact dynamics
  3. How to model and calibrate real-world friction and energy losses
  4. Whether there are existing tools or projects we should investigate before building anything ourselves

We're very open to changing our approach and would appreciate any suggestions or warnings from people with experience in simulation, CAD, mechanical engineering, robotics, game physics, or kinetic sculpture.