2nd Order System
ContinuousThe SecondOrderSystem block implements a standard second-order continuous-time linear dynamic system. Parameterized intuitively by natural frequency (), damping ratio () or quality factor (), and DC gain (), it models canonical damped oscillatory phenomena across engineering domains—including mechanical mass-spring-damper vibratory assemblies, RLC resonant electrical circuits, pneumatic actuator balances, and vehicle suspensions. The Property Editor features a live Transfer Function Insights dashboard that displays the Step Response (including DC gain, percent overshoot, and 2% settling time), Bode Plot, and Pole-Zero Map in real time as you adjust , , or .
Mathematical Model
In the Laplace domain (), the continuous transfer function relating input to output is:
where represents DC gain, is the undamped naturalFrequency, and is the dampingRatio.
When parameterized via the quality factor (qFactor), the damping relationship is:
The system poles are the roots of the characteristic polynomial :
- Underdamped (): Complex conjugate poles , where is the damped natural frequency. Transient response oscillates with percentage overshoot .
- Critically Damped (): Repeated real pole at . Fastest monotonic settling without oscillatory overshoot.
- Overdamped (): Two distinct negative real poles. System response is non-oscillatory and sluggish, dominated by the slower pole.
In controllable canonical state-space form with continuous state vector :
with initial conditions configured via initialCondition.
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in |
Input | number | Required |
| ← Out | out |
Output | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
gain |
Gain (K) | number | 1 |
DC Gain of the system |
naturalFrequency |
Frequency | number | 10 |
Undamped natural frequency |
frequencyUnit |
Frequency Unit | select | rad/s |
|
parameterMode |
Damping Parameter | select | dampingRatio |
|
dampingRatio |
Damping Ratio ζ | number | 0.7 |
Damping ratio: ζ < 1 underdamped, ζ = 1 critically damped, ζ > 1 overdamped |
qFactor |
Q-Factor | number | 0.707 |
Quality factor Q = 1 / (2ζ) |
initialCondition |
Initial Condition [y, dy] | vector | 0,0 |
Usage Examples
Example 1: Quarter-Car Automotive Suspension Modeling
Modeling the vertical dynamics of a passenger vehicle wheel assembly over a road step bump. Setting naturalFrequency = 1.2 with frequencyUnit = "Hz" (), dampingRatio = 0.35 (underdamped shock absorber), and gain = 1.0. A unit step road displacement excites an initial bounce of approximately overshoot before decaying smoothly within .
Example 2: Precision Galvanometer Mirror Positioning
Synthesizing a laser galvanometer beam steering positioner requiring maximum speed without overshoot. Configuring naturalFrequency = 500.0 rad/s and dampingRatio = 1.0 (critically damped) with initialCondition = "0,0". The mirror reaches of target setpoint in with zero transient overshoot, preventing optical mechanical ringing.
Remarks & Best Practices
- Live Step Response, Bode & Pole-Zero Dashboard: Dragging the
naturalFrequency,dampingRatio, orqFactorsliders in the Property Editor updates the step response curve, overshoot readout, Bode magnitude/phase, and -plane conjugate pole markers instantaneously. - Key Analytical Transient Metrics:
- Peak time:
- Settling time ( criterion):
- Peak overshoot percentage:
- Automatic Frequency Unit Conversion: Selecting
Hzautomatically multiplies the input frequency by before assembling internal ODE matrices, eliminating manual conversion errors. - Continuous Two-State Integration: Implemented as two continuous dynamic ODE states in the WASM engine, integrating accurately across explicit Runge-Kutta (RK4, RK45) and implicit stiff TR-BDF2 solvers.
- Free Vibration Decay: The
initialConditionvector allows modeling natural unforced decay from initial physical offsets () or impact momentum () with zero input force ().
Frequently Asked Questions (FAQ)
Q: What damping ratio ζ produces fastest settling time without excessive overshoot?
A damping ratio (, Butterworth characteristic) provides the optimal trade-off: approximately overshoot, rapid rise time, and minimum settling time for a or error tolerance band. Critical damping () eliminates overshoot entirely at the cost of a slightly slower rise time.
Related Components
- TransferFunction: General continuous-time transfer function in polynomial fraction form .
- Integrator: Continuous single-state accumulator.
- LeadLag: First-order dynamic phase lead/lag compensator.
- StateSpace: Multi-input multi-output state-space continuous plant model .