Beam element stiffness (local coords):
$$[k_e] = \frac{EI}{L^3}\begin{bmatrix}12 & 6L \\ 6L & 4L^2\end{bmatrix}$$Global system: $\mathbf{K}\mathbf{U}=\mathbf{F}$
Analyze portal frames using the direct stiffness method. Real-time deformed shape, bending moment diagrams, and member forces including lateral sway.
Beam element stiffness (local coords):
$$[k_e] = \frac{EI}{L^3}\begin{bmatrix}12 & 6L \\ 6L & 4L^2\end{bmatrix}$$Global system: $\mathbf{K}\mathbf{U}=\mathbf{F}$
The core of the method is the stiffness matrix for a single beam element, relating its end forces to its end displacements. For a standard beam with flexural deformation considered, the matrix in local coordinates is:
$$[k_e] = \frac{EI}{L^3}\begin{bmatrix}12 & 6L & -12 & 6L \\ 6L & 4L^2 & -6L & 2L^2 \\ -12 & -6L & 12 & -6L \\ 6L & 2L^2 & -6L & 4L^2\end{bmatrix}$$Where:
$E$ is the material's Young's Modulus (inherent in `EI`),
$I$ is the cross-section's Moment of Inertia (the `I` in your `EI_beam`/`EI_column` sliders),
$L$ is the element length (`Span L` or `Column Height h`).
This matrix tells us how stiff the beam is against being bent and sheared.
All element matrices are transformed to a global coordinate system and assembled into the global stiffness matrix $\mathbf{K}$. The fundamental system equation solved by the simulator for every configuration you set is:
$$\mathbf{K}\mathbf{U}= \mathbf{F}$$Where:
$\mathbf{K}$ is the assembled global stiffness matrix (depends on geometry, `EI`, and `Support Conditions`).
$\mathbf{U}$ is the vector of unknown nodal displacements and rotations (the deformed shape you see).
$\mathbf{F}$ is the vector of applied nodal forces (from your `Beam UDL w` and `Lateral Load H`).
Solving this gives $\mathbf{U}$, and from that, we can back-calculate the internal forces and moments displayed in the diagrams.
Building Design: This exact analysis is used daily by structural engineers to design the steel or concrete frames for office buildings and apartments. Engineers check multiple load cases (like varying `w` and `H`) to ensure the columns and beams are strong enough under combined gravity and wind loads.
Industrial Warehouse & Factory Design: Large, single-story portal frames are common for warehouses. The simulator's model is a perfect starting point. The analysis determines the size of the roof girders and the critical bending moments in the columns, especially when considering crane loads or heavy equipment.
Bridge Piers and Bents: The frame formed by bridge piers and the cap beam is analyzed similarly. Lateral loads from braking vehicles, wind, or seismic activity (`H` in the simulator) are major design considerations, and the sway effect is crucial for stability.
Pre-fabricated Structural Systems: Manufacturers of pre-engineered metal buildings (like commercial garages) use this method to optimize member sizes for different spans (`L`) and heights (`h`). Automating this analysis allows them to generate safe, customized designs quickly.
First, do you think that "a larger EI (flexural rigidity) always means a larger bending moment"? This is actually a major misconception. EI represents "resistance to deformation." For example, try using this tool to make the 'EI_beam' extremely large, creating a stiffness ratio of about 10:1 with the column. You'll see that the beam hardly bends, and instead, a large bending moment concentrates at the base of the column. Conversely, if you make the beam more flexible (reduce its EI), the moment becomes larger at the beam's center. The key concept is "stiffness distribution": load paths flow through stiffer parts. In practice, you design members considering this balance.
Next, pay attention to the idealization of support conditions. While the simulator clearly distinguishes between "fixed," "pinned," and "roller" supports, real-world structures are neither perfectly fixed nor perfectly pinned. For instance, a concrete column base can sometimes exhibit intermediate behavior known as "semi-rigid." By comparing the results for "fixed" and "pinned" in the tool, you can experience how sensitive the overall structural stress and deformation are to these boundary conditions. Design includes a "margin" or factor of safety to account for this uncertainty.
Finally, make sure you correctly understand the meaning of the "Distributed Load" input value. Here, "w" is the load per unit length of a uniformly distributed load acting over the entire beam length. For example, if you apply w=10 kN/m to a beam with a span (length) L=5m, the total load the beam must support is 10 kN/m × 5m = 50kN. The core of the calculation is how this total load is distributed as reactions to the supports (columns) at both ends. A tip is to start with small values (around 1–5 kN/m), as excessively large values can lead to unrealistic results.