This returns 'buoyancy' in kg, as is the convention of storage in this package (and is quite common in practical work). It must be multiplied by the acceleration due to gravity, g=9.81m/s^2, to get an actual buoyancy force, in Newtons. This multiplication is done in knockdown() and tension().

buoyancy(m, debug = 0L)

Arguments

m

either a mooring object, created by mooring(), or a mooring-element object, created with anchor(), chain(), connector(), instrument(), misc(), release(), or wire().

debug

an integer value (or a numeric that can be converted to an integer) that controls debugging. If this is positive, then some debugging information may be printed by the function.

Value

buoyancy returns a numeric vector of buoyancy, expressed in kg or N, depending on the value of unit.

Details

Note that the present version of this function does not account for depth variations in seawater density, for those tend to be well under 1 percent.

Author

Dan Kelley

Examples

library(mooring)
m <- mooring(anchor(), wire(length = 100), float("HMB 20"), waterDepth = 120)
buoyancy(m)
#> [1]   34.5  -13.0 -350.0