Create an object that describes mooring chain elements such as shackles, either by looking up a known object from the database, or by defining a new type. Area is formulated as length*width, for consistency with Dewey's Matlab code.
chain(
model = "1in buoy chain",
buoyancyPerMeter = NULL,
areaPerMeter = NULL,
CD = NULL,
length = NULL,
source = NULL,
originalName = NULL
)
character value indicating the type of chain.
There are three possibilities for model
.
(1) If this is "?"
, then the function returns a vector of permitted
character values. (2) If this is "?X"
, where X is a set of
characters, then findElement()
is called to do a fuzzy search,
with the search
argument set to "chain"
.
(3) If it is recognized, i.e. if that type is
stored in data(mooringElements)
, then the that stored value
is used, and all other arguments to this function are ignored.
(4) Otherwise, a new chain object is created, using
values specified in the other arguments (all of which must
be supplied).
numeric value indicating buoyancy per meter
of length, expressed as kg/m.
Note that buoyancyPerMeter
is ignored if model
is recognized.
numeric value indicating the frontal area per meter
of length, expressed as m^2. (This is equivalent to the width, or diameter, of
the wire.)
Note that areaPerMeter
is ignored if model
is recognized.
numeric value (unitless) for the drag coefficient.
Note that CD
is ignored if model
is recognized.
(mandatory) numeric value indicating the length (in m) of the wire.
character value indicating the source of the data.
character value indicating the original model name.
chain
returns an object of the "mooringElement"
class and "chain"
subclass.