Air Density Calculator
Calculate air density from pressure, temperature, and humidity using the ideal gas law. Includes altitude reference table and moist air corrections.
Generate element stiffness matrices for spring, truss, and beam elements in FEA. Visualizes the matrix with DOF labels and material properties.
| v₁ | θ₁ | v₂ | θ₂ | |
|---|---|---|---|---|
| v₁ | 24.99k | 24.99k | -24.99k | 24.99k |
| θ₁ | 24.99k | 33.32k | -24.99k | 16.66k |
| v₂ | -24.99k | -24.99k | 24.99k | -24.99k |
| θ₂ | 24.99k | 16.66k | -24.99k | 33.32k |
The stiffness matrix is the cornerstone of the finite element method (FEM). It relates forces (or moments) to displacements (or rotations) at element nodes through [K]{u} = {F}. Each element type has a characteristic stiffness matrix derived from its governing equations and displacement interpolation functions.
For a spring element, the 2×2 matrix is simply k and −k — force is proportional to elongation. Truss elements extend this to 2D with a 4×4 matrix that includes coordinate transformation (angle θ). Beam elements add rotational degrees of freedom, producing a 4×4 matrix from the Euler-Bernoulli beam theory with 12EI/L³ and related coupling terms.
Understanding these matrices is fundamental for structural engineering students and practicing engineers using FEA software. This calculator generates the stiffness matrix for spring, truss, and beam elements with arbitrary material and geometric properties, complete with labeled rows/columns and property verification.
FEA software generates these matrices automatically, but understanding them is essential for debugging models, hand-checking results, and developing intuition for structural behavior. This calculator is invaluable for engineering students and anyone learning the finite element method.
Spring: [K] = [[k, -k], [-k, k]]. Truss: [K] = (EA/L)[[c²,cs,-c²,-cs],[cs,s²,-cs,-s²],...]. Beam (Euler-Bernoulli): [K] = [[12EI/L³, 6EI/L², -12EI/L³, 6EI/L²], [6EI/L², 4EI/L, -6EI/L², 2EI/L], ...].Result: 4×4 beam stiffness matrix
For a 200 GPa steel beam with I = 8.33×10⁻⁸ m⁴ (roughly a 50×20 mm rectangle) and L = 2 m: EI = 16,660 N·m², K₁₁ = 12EI/L³ = 24,990 N/m.
Generate element stiffness matrices for spring, truss, and beam elements in FEA. Visualizes the matrix with DOF labels and material properties. Use it when you need a repeatable calculation in the physics / general category and want the setup, result, and supporting values kept together. This is especially helpful when small input changes, unit choices, or rounding decisions can change the final number.
Start by confirming that the inputs match the formula shown on the page. Then compare the main output with the worked example and any secondary values shown by the calculator. If the result will be used in another calculation, keep extra precision until the final step and record the assumptions beside the number.
Treat the result as a calculation aid rather than a substitute for context. For schoolwork, include the formula and substitution steps. For planning, technical, financial, or health-related decisions, verify important numbers against primary records, current rules, or a qualified professional before acting on them.
Last updated:
Maxwell's reciprocal theorem guarantees symmetry: the force at node i due to unit displacement at j equals the force at j due to unit displacement at i.
Degrees of freedom. Springs: 1 per node (axial). Trusses: 2 per node (u, v). Beams: 2 per node (transverse v, rotation θ). 3D beam: 6 per node.
Map each element's local DOFs to global DOFs, then add corresponding entries. This is the assembly process in FEA.
Plane sections remain plane and perpendicular to the neutral axis (no shear deformation). Valid for slender beams (L/d > 10). For thick beams, use Timoshenko beam theory.
The global stiffness matrix transforms local (axial) stiffness into global (x, y) coordinates. The transformation uses cos and sin of the element angle.
Be consistent: if E is in GPa and A in m², then K is in N/m. Mixing units is the most common source of errors in FEA.
Calculate air density from pressure, temperature, and humidity using the ideal gas law. Includes altitude reference table and moist air corrections.
Calculate the angle of repose for granular materials. Find pile height, volume, slope ratio, and stability from friction coefficient and density.
Calculate angle of twist, shear stress, and torsional stiffness for solid or hollow shafts under torque. Compare materials side by side.