Skip to content

    Under active development. New calculators and features ship every week. Everything currently runs free while the site matures — pricing pages are a preview, checkout is not open yet.

    Engineering / Multi Degree of Freedom Structural Dynamics Solver

    MDOF Structural Dynamics Calculator — Modal & Newmark

    Analyze a multi-story shear building: natural frequencies, mode shapes, and seismic response by Newmark-β integration and modal superposition.

    ToolCalculatorExecutionIn browserCategoryEngineering
    ZorvLabs Structural Dynamics LabMDOF / Modal / Newmark-β

    Multi-degree-of-freedom structural dynamics calculator

    First Frequency
    0.343 Hz
    ω1=2.156 rad/s
    Top Frequency
    3.600 Hz
    ωN=22.619 rad/s
    Peak Roof Disp
    0.10520
    modal gap 0.06929 m
    Peak Base Shear
    683.029 kN
    support reaction surrogate
    Orthogonality
    <1e-12
    ΦᵀMΦ ≈ I
    Modal Participation
    47.01%
    top 3 modes
    2D Elevation
    direct vs modal drift overlay
    2D elevation model · Time = 20.00 s0.0008 m0.0016 m0.0024 m0.0031 m0.0037 m0.0042 m0.0046 m0.0048 m-0.0005 m0.0014 m0.0021 m0.0026 m-0.0027 m0.0025 m0.0021 m0.0019 mrelative displacement r(z,t)directmodal
    3D Isometric
    lateral deformation in projection
    3D isometric model · Time = 20.00 sisometric frame with lateral drift visualizationdirectmodal
    Roof Displacement History
    direct vs modal relative roof response
    0.411.62.433.64.455.66.477.68.499.710.611.512.413.414.415.416.417.318.219.120-0.11-0.05500.0550.11
    • Direct Newmark
    • Modal Superposition
    Base Shear History
    support reaction surrogate from inertia balance
    0.411.62.433.64.455.66.477.68.499.710.611.512.413.414.415.416.417.318.219.120-3000-1500015003000
    • Direct Newmark
    • Modal Superposition
    Acceleration / Excitation
    roof absolute acceleration and input ground motion
    0.411.62.433.64.455.66.477.68.499.710.611.512.413.414.415.416.417.318.219.120-0.800.81.62.4
    • Ground accel
    Mode Shapes
    normalized eigenvectors and effective mass participation
    123456-1-0.500.51
    • normalized shape
    Modal Spectrum / Participation
    frequencies, damping ratios, and effective modal mass
    12345608162432
    • Effective mass %
    Benchmark Sheet
    modal accuracy and direct/modal gap
    Peak roof disp direct0.105204 m
    Peak roof disp modal0.036938 m
    Max roof gap0.069288 m
    Roof gap %65.86%
    Residual error1.16e+0
    Orthogonality error<1e-12
    RMS gap all DOFs0.016676 m
    Energy snapshot2.356 kJ
    Equation set
    M u¨ + C u˙ + K u = −M r ag(t)
    Modal form: q¨ + 2ζω q˙ + ω²q = −Γ ag(t)
    Newmark-β average acceleration: β = 1/4, γ = 1/2
    Layer / Floor Response Table
    selected floor snapshot at the inspection time
    Flooru_direct (m)u_modal (m)Gap (m)v_direct (m/s)a_abs_direct (m/s²)
    10.000796-0.0004910.0012870.002569-0.003962
    20.0015910.0013900.0002010.005201-0.008002
    30.0023580.0021140.0002430.007868-0.012060
    40.0030690.0025690.0005000.010499-0.016024
    50.003694-0.0027020.0063960.012973-0.019712
    60.0042040.0025100.0016940.015118-0.022883
    70.0045690.0020900.0024790.016732-0.025253
    80.0047620.0018870.0028750.017616-0.026545
    Modal Summary
    first modes with participation and damping
    Modef (Hz)ω (rad/s)ζΓEff. Mass %Residual
    10.34322.15635.000%-745.17594331.5509.91e-1
    20.99346.24155.000%80.5891810.3699.39e-1
    31.614510.14446.830%-515.41446515.0947.36e-1
    42.181113.70458.744%163.1871141.5135.87e-1
    52.673116.795510.477%678.26983126.1397.09e-1
    63.072919.307411.910%137.2849491.0716.38e-1
    ●Multi-degree-of-freedom structural dynamics//dt = 0.00833 s//T = 20.00 s//Newmark β = 1/4//γ = 1/2//Direct vs Modal gap 0.069288 m
    engineering methodology

    A clear path from inputs to results.

    Model a multi-story shear building as a chain of masses and springs and find how it vibrates and how it responds to shaking at its base. The solver extracts the natural frequencies and mode shapes, then integrates the full equations of motion two independent ways — direct Newmark-β time stepping and modal superposition — so you can compare roof drift, floor accelerations, and base shear.

    Step-by-step methodWorked exampleAssumptions explained

    How to use

    1. Set the number of floors (degrees of freedom), the mass per floor, and the base story stiffness.
    2. Set the stiffness gradient, which tapers the story stiffness linearly from the base toward the top to mimic a real building.
    3. Set the target damping ratio; the tool builds a Rayleigh damping matrix tuned to the first two modes so each mode is damped close to that target.
    4. Choose the ground-motion input (Ricker wavelet, sine burst, half-sine, or a custom series) and its amplitude in g, frequency, and envelope.
    5. Set the analysis duration, the number of time steps, and how many modes to keep in the modal superposition.
    6. Read the natural frequencies and mode shapes, then compare the direct and modal roof-displacement, acceleration, and base-shear histories, along with orthogonality and residual diagnostics.

    The formula

    Mu¨+Cu˙+Ku=−Mr ag(t),(K−ωi2M)ϕi=0\mathbf{M}\ddot{\mathbf{u}} + \mathbf{C}\dot{\mathbf{u}} + \mathbf{K}\mathbf{u} = -\mathbf{M}\mathbf{r}\,a_g(t), \qquad (\mathbf{K} - \omega_i^2 \mathbf{M})\boldsymbol{\phi}_i = \mathbf{0}

    Reference: Modal analysis and Newmark-β direct integration of MDOF systems; Chopra, Dynamics of Structures; Bathe, Finite Element Procedures (Newmark average-acceleration method, β = 1/4, γ = 1/2); shear-building closed-form frequencies ω_i = 2√(k/m)·sin((2i−1)π/(2(2n+1))).

    Worked example

    Eight-story shear building — natural frequencies

    Inputs
    • Floors n = 8; floor mass m = 220,000 kg each; base story stiffness k = 32 MN/m; stiffness gradient = 0.2 (story stiffness tapers linearly to 25.6 MN/m at the top); target damping 5%.
    Calculation path
    1. 1

      The tool assembles a tridiagonal shear-building stiffness matrix K from the eight story stiffnesses (32.0, 31.09, 30.17, 29.26, 28.34, 27.43, 26.51, 25.60 MN/m) and a diagonal mass matrix M with 220,000 kg on each floor. Because all floor masses are equal, the generalized eigenproblem (K − ω²M)φ = 0 reduces to ω² = eig(K)/m, solved here with a mass-normalized Jacobi rotation sweep. The eight eigenvalues give natural frequencies f = ω/2π of 0.343, 0.993, 1.614, 2.181, 2.673, 3.073, 3.370, and 3.600 Hz. The fundamental mode has ω₁ = 2.156 rad/s, so f₁ = 0.343 Hz and the fundamental period is T₁ = 1/f₁ = 2.91 s. As a check, setting the gradient to zero reproduces the exact uniform-shear-building formula ω₁ = 2√(k/m)·sin(π/34) = 2.226 rad/s.

    Result

    Eight natural frequencies from 0.343 Hz (fundamental, period 2.91 s) up to 3.600 Hz for the highest mode. The mode shapes are mass-orthonormal (ΦᵀMΦ ≈ I to machine precision), and the direct and modal time histories agree closely when enough modes are retained.

    Interpreting the result

    The fundamental frequency and period characterise how the building sways; a taller or heavier structure has a lower frequency and longer period. The mode shapes show the deflected pattern of each mode — the first mode leans the whole building one way, higher modes introduce reversals up the height. Keeping only the lowest few modes usually captures most of the response because they carry the bulk of the effective mass; the direct-vs-modal gap shown by the solver tells you whether your modal truncation is adequate. The base shear and roof drift from a given excitation scale with how close the input frequency content is to these natural frequencies.

    Assumptions & limitations

    • The structure is idealised as a lumped-mass shear building: rigid floor diaphragms, mass concentrated at floor levels, and lateral stiffness provided by story springs (one translational DOF per floor).
    • Behaviour is linear elastic; stiffness and mass are constant and there is no yielding, geometric nonlinearity, or soil-structure interaction.
    • Damping is classical Rayleigh damping (C = αM + βK) calibrated to the target ratio at the first two modes, so other modes are damped somewhat more or less than the target.
    • The ground motions provided are synthetic analytic wavelets (Ricker, sine burst, half-sine) or a user series for demonstration, not recorded earthquake accelerograms; peak time-history responses depend on the chosen input.
    • The Newmark average-acceleration scheme (β = 1/4, γ = 1/2) is unconditionally stable but still needs a time step fine enough to resolve the highest retained mode.
    • Base shear is computed as the inertial-force surrogate Σ m_i(a_i + a_g), consistent with the lumped-mass idealisation.

    Frequently asked questions

    What is the fundamental period and why does it matter?

    The fundamental period T₁ is the time for one full sway of the lowest vibration mode; for the example building it is about 2.91 s (f₁ = 0.343 Hz). It matters because seismic and wind demand depend strongly on how the building’s period compares with the dominant period of the loading — responses amplify when they coincide. It also sets the scale for the whole modal spectrum.

    How are the natural frequencies found?

    The tool assembles the stiffness matrix K and mass matrix M, forms the symmetric matrix M^(-1/2)KM^(-1/2), and extracts its eigenvalues with Jacobi rotations; the square roots of those eigenvalues are the circular frequencies ω_i, and f_i = ω_i/2π. For a uniform shear building this matches the closed-form result ω_i = 2√(k/m)·sin((2i−1)π/(2(2n+1))) exactly.

    What is Rayleigh damping and why only two modes?

    Rayleigh damping writes the damping matrix as C = αM + βK, a convenient classical form that keeps the modes decoupled. Two coefficients can match the target damping ratio exactly at only two frequencies — here the first two modes — so modes between them are slightly underdamped and modes far above are overdamped. The solver reports the actual damping ratio of every mode so you can see the spread.

    What is the difference between direct integration and modal superposition?

    Direct integration (Newmark-β here) steps the coupled equations of motion forward in time without decomposing them, capturing all modes. Modal superposition first solves the eigenproblem, then integrates each decoupled modal equation and recombines a chosen number of modes. The two should agree closely; the solver reports the roof and all-DOF gaps so you can see the error from truncating modes.

    What does the stiffness gradient do?

    It tapers the story stiffness linearly from the base to the top, so upper stories are more flexible than lower ones — a gradient of 0.2 makes the top story 80% as stiff as the base. This lowers the natural frequencies slightly compared with a uniform building and shifts the mode shapes, better representing buildings whose columns reduce in size with height.

    Methodology last reviewed 2026-10-06. Results are informational and not financial or engineering advice — see our disclaimer.