Back

#archimedes

1 APIs with this tag

Buoyancy & Flotation API

Archimedes buoyancy and flotation maths as an API, computed locally and deterministically. The buoyancy endpoint computes the buoyant force on a submerged or floating body, Fb = ρ_fluid·g·V_displaced — the upthrust equals the weight of the displaced fluid — from a displaced volume and a fluid (water, seawater, oil, mercury and more, or a custom density), and also gives the mass of displaced fluid; it solves the volume from a known force too. The float endpoint decides whether an object floats, sinks or is neutrally buoyant by comparing its density (given directly, from a built-in material, or as mass divided by volume) with the fluid density, and for a floating object returns the fraction submerged f = ρ_object/ρ_fluid (so 90 % of an iceberg sits below the waterline), or for a sinking object its apparent (underwater) weight. The payload endpoint sizes flotation: the displaced volume needed to float a given load, V = W/(ρ_fluid·g), or the maximum extra payload a floating body of a given volume and density can carry before it submerges, Wmax = (ρ_fluid − ρ_body)·V·g. Everything is computed locally and deterministically, so it is instant and private. Ideal for naval-architecture and marine tools, diving, ROV and ballast apps, raft and pontoon design, and physics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is buoyancy and flotation; for pressure at depth and hydrostatic force on a wall use a hydrostatics API.

api.oanor.com/buoyancy-api