This document outlines the key parameters used in the simulation of a Physarum system. Each parameter plays a critical role in shaping both the behavior and the visual aesthetics of the simulation. Below is an overview of these parameters along with helpful explanations.
- Constraint: Never higher than 2048²
- Explanation:
The domain resolution determines the grid size on which the simulation runs. A higher resolution provides more detail but also requires more computational resources. Limiting the resolution to a maximum of 2048² helps ensure that the simulation remains efficient and manageable.
- Typical Value: 4,194,304
- Requirements:
- The value must always be a power of two.
- The aesthetic is developed using the value 4,194,304.
- Explanation:
This parameter specifies the number of agents (or particles) participating in the simulation. Using a power of two is often important for optimization in memory allocation and computational efficiency. Altering the agent count can lead to significantly different visual outcomes, making it a critical factor in achieving the desired aesthetic.
- Typical Value: 1
- Explanation:
SubFrame Iteration defines the number of internal updates executed within a single frame of the simulation. A value of 1 is typically used to develop the intended visual effects. Adjusting this parameter can dramatically change the simulation’s dynamics and the resulting patterns.
These parameters control how agents leave and interact with trails in the simulation, which are essential for the emergent behavior typical of Physarum systems.
-
trailDiffuseSpeed
- Role: Controls the speed at which the trail signal diffuses across the grid.
- Explanation: A higher diffusion speed causes the signal to spread more quickly, influencing how agents perceive and follow the trail gradients.
-
trailDecayRate
- Role: Determines how quickly the trail signal fades over time.
- Explanation: A higher decay rate means trails disappear faster, which can affect the persistence and evolution of the patterns formed.
-
trailThreshold
- Role: Sets the intensity threshold for the trail signal.
- Explanation: This parameter filters out low-intensity trails, ensuring that only stronger signals affect agent behavior. This helps in emphasizing more prominent paths within the simulation.
These parameters influence how agents are introduced or reintroduced into the simulation, affecting overall system dynamics.
These parameters directly affect individual agent behavior within the simulation. Tuning these settings can lead to variations in the movement patterns and interactions of agents, thereby influencing the emergent structure of the system.
-
rotation_angle
- Role: Specifies the angle by which an agent rotates when adjusting its direction.
- Explanation:
A critical parameter for controlling the curvature and direction changes in an agent’s trajectory. Small adjustments can significantly alter the overall pattern formation.
-
sensor_angle
- Role: Determines the angular offset of the sensors relative to the agent’s forward direction.
- Explanation:
This parameter is used by agents to detect environmental cues. Altering the sensor angle can change how effectively an agent perceives and reacts to nearby trail signals.
-
sensor_offset
- Role: Defines the distance from the agent’s center at which its sensors are placed.
- Explanation:
A larger sensor offset can allow an agent to detect signals from further away, influencing its movement decisions and the overall flow of the system.
-
agent_step
- Role: Controls the distance an agent moves in a single step.
- Explanation:
This parameter directly affects the speed and smoothness of the agents’ motion. Modifying the step size can lead to a more dynamic or more stable movement pattern.
-
pullToCenter_step
- Role: Specifies the magnitude of the force that draws an agent toward the center of the simulation space.
- Explanation:
This parameter helps in maintaining coherence within the system by preventing agents from straying too far. It can balance the otherwise random motion, contributing to the overall structure of the emergent pattern.
By carefully adjusting these parameters, users can explore a wide range of behaviors and aesthetics in the Physarum simulation. Experimentation with values—especially those affecting agent count, iteration rates, and local agent behavior—can yield dramatically different visual outputs and system dynamics, enabling both artistic expression and scientific inquiry into emergent phenomena.