Centroid & area centroid
About this app
Composite area of rectangles, triangles and circles: the area centroid (x_s, y_s) as the area-weighted mean of the part centroids, computed and marked.
The basics
The centroid is the geometric centre of a plane area. For composite cross-sections, which are everywhere in mechanical and structural engineering, you split the area into simple parts with known area Aᵢ and known centroid (xᵢ, yᵢ). The overall centroid is the area-weighted average: xₛ = ΣAᵢxᵢ / ΣAᵢ and yₛ = ΣAᵢyᵢ / ΣAᵢ. Holes and cutouts enter the sums with negative area. The centroid is needed, among other things, to locate the neutral axis in bending and to compute the second moment of area.
What the app shows
In the editor you combine rectangles, triangles, circles and semicircles into one area. Each part shows its own centroid Sᵢ, and the overall centroid S is highlighted. Any shape can be marked as a cutout and then counts negatively. The panel lists the parts, the total area A and the centroid coordinates. An L-section is available as a starting example.
Things to try
Load the L-section example and move one of the legs: the centroid follows and can even lie outside the material. Then place a circle as a hole inside a rectangle and watch S move away from the hole. Compare the result with a hand calculation using the summation formula. “Clear all” starts again from an empty area.
Frequently asked questions
- How do you find the centroid of a composite area?
- Split the area into simple parts whose area Aᵢ and centroid (xᵢ, yᵢ) are known. Then xₛ = ΣAᵢxᵢ / ΣAᵢ and yₛ = ΣAᵢyᵢ / ΣAᵢ. A table with the columns Aᵢ, xᵢ, yᵢ, Aᵢxᵢ and Aᵢyᵢ keeps the calculation tidy.
- How do you handle holes when calculating a centroid?
- A hole or cutout is treated as a part with negative area. You take the full area first and then subtract the cutout with its own centroid. The centroid shifts away from the hole as a result.
- Where is the centroid of a triangle and of a semicircle?
- The centroid of a triangle is where the medians intersect, one third of the height above each side. For a semicircle of radius r it lies on the axis of symmetry at a distance 4r/(3π) ≈ 0.42·r from the straight edge.
- Which shapes can I combine in the centroid app?
- You can add, move and delete rectangles, triangles, circles and semicircles and mark any shape as a cutout. The app shows the part centroids, the total area and the overall centroid live. An L-section is provided as an example.
Subject: Engineering mechanics
More from Engineering mechanics
- Bending stress & moment of inertia
- Düsenjet bis v_max (3D)
- Energy & oscillation
- Truss analysis (method of joints)
- Equilibrium & support reactions
- Kinematics
- Kinetics & Newton's second law
- Forces & vector addition
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps