Back

#statics

4 APIs with this tag

Center of Mass API

Centre-of-mass and barycentre mechanics as an API, computed locally and deterministically. The point-masses endpoint computes the centre of mass of a system of point masses in one, two or three dimensions, applying x_com = Σ(m_i·x_i)/Σm_i to each axis from a list of masses and their x (and optional y and z) coordinates — masses of 1, 2 and 3 at positions 0, 1 and 2 give a centre of mass at 1.333, and four equal masses at the corners of a square sit at its centre. The two-body endpoint computes the barycentre of two masses separated by a distance, r1 = d·m2/(m1+m2) from the first body, which always lies closer to the heavier one — for the Earth-Moon system the barycentre is about 4 670 km from Earth’s centre, still inside the planet. Lists may be passed as comma-separated values (masses=1,2,3&x=0,1,2) or as JSON arrays in a POST body, and units are consistent and unit-agnostic. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics, engineering-statics, astronomy, robotics, game-physics and mechanics-education app developers, balance-point and barycentre tools, and simulation software. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 2 endpoints. This is the centre of mass; for the rotational moment of inertia use a moment-of-inertia API.

api.oanor.com/centerofmass-api

Inclined Plane & Friction API

Inclined-plane and friction statics and dynamics as an API, computed locally and deterministically. The incline endpoint analyses a block on a ramp: from a mass, the slope angle and a coefficient of friction it returns the normal force N = m·g·cosθ, the gravity component along the slope m·g·sinθ, the maximum static friction μ·N, whether the block stays put or slides (it slides when tanθ > μ) and, if it slides, the net force and the acceleration a = g·(sinθ − μ·cosθ). The friction endpoint handles a flat surface: the friction force f = μ·N (the normal force given directly or from a mass), the angle of repose atan(μ), and — given an applied force — whether the object moves and its acceleration. The ramp endpoint gives the force needed to move a load up or down a ramp at constant velocity, F = m·g·(sinθ ± μ·cosθ), the frictionless force, the efficiency and whether the ramp is self-locking. Gravity defaults to 9.80665 m/s² and can be overridden. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics and mechanics-education tools, materials-handling, conveyor and ramp design, and engineering-statics apps. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is inclined-plane forces with friction; for the ideal (frictionless) mechanical advantage of simple machines use a lever API.

api.oanor.com/incline-api

Lever & Simple Machine API

Lever, moment-balance and simple-machine mechanical-advantage maths as an API, computed locally and deterministically. The lever endpoint applies the lever law, effort·effort_arm = load·load_arm, and solves for whichever of the effort, the load, the effort arm or the load arm you leave out, returning the mechanical advantage MA = effort_arm/load_arm = load/effort and whether the lever multiplies force or speed. The moment endpoint computes a single moment of force, M = F·d, or balances a seesaw about a pivot: from the force and distance on each side it tells you whether it is balanced, the net moment and which way it rotates, or solves the one value you omit to bring it into equilibrium. The machine endpoint gives the ideal mechanical advantage of a simple machine — an inclined plane (length/height), a screw (2πR/pitch), a wheel and axle (R/r), a wedge (length/thickness) or a pulley system (number of supporting strands) — and, given an efficiency and an effort, the actual mechanical advantage and the output force. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics and engineering-education tools, mechanics and statics apps, and machine-design and DIY calculators. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is levers and simple-machine mechanical advantage; for gear and belt drive ratios use a gear or belt-drive API.

api.oanor.com/lever-api

Beam Load API

Beam statics as an API, computed locally and deterministically. The simply-supported endpoint analyses a beam on two supports under a point load (anywhere along the span) or a uniformly distributed load: it returns the support reactions, the maximum shear and the maximum bending moment with its location, and — if you pass the Young's modulus E and second moment of area I — the maximum deflection. The cantilever endpoint does the same for a beam fixed at one end, returning the reaction force and fixing moment, the maximum bending moment and the free-end deflection. The section endpoint gives the cross-section properties that those deflections need: the second moment of area (moment of inertia) and the section modulus for a rectangle, a solid circle or a hollow circular pipe. Every result lists the formula used, so you can show your working. Use consistent units — in SI, load in newtons, distributed load in N/m, lengths in metres, E in pascals and I in m⁴ give moments in N·m and deflections in metres. Everything is computed locally and deterministically, so it is instant and private. Linear-elastic, small-deflection theory — a learning and estimating tool, not a substitute for a qualified structural engineer on a real design. Ideal for engineering and architecture tools, education and physics apps, maker and DIY calculators, and CAD helpers. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is structural beam statics; for bolt and fastener torque use a torque API.

api.oanor.com/beam-api