Interactive Console
Bridge the gap between parameters, scripts, and the running model. Define variables, sweep values, and inspect results without breaking flow.
Outcomes
- Set and get parameters programmatically while the model is open
- Perform quick calculations and sanity checks alongside your graph
- Run parameter sweeps and record responses
Common tasks
- Bind variables: link
k,c,mto block parameters for live control - Calculate derived values: e.g.,
omega_n = sqrt(k/m),zeta = c/(2*sqrt(k*m)) - Quick experiments: loop over a set of
kvalues and log peak displacement
Typical flow
- Declare variables
- Example:
m = 1.0,k = 50.0,c = 0.8
- Example:
- Bind variables to parameters
- Select blocks and set parameter fields to variable names
- Run and inspect
- Start simulation; watch variables and plots update in real time
- Sweep and compare
- Change a variable or run a short loop; export results if needed