$
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$
$
$
$d.section Automatic Tanker Mooring Analysis
$.in
$d    This comi file is a template which can be used for analysis of
$d tanker moorings.  In essence, there are two commands which are used:
$d TKR_GEN and TKR_SIM. The first of these defines the tanker
$d mooring system, and the second performs a mooring simulation. One
$d can use as many TKR_SIM command as he wants in one run to investigate
$d different environments and/or pretensions. The tanker model is
$d defined in the data file AUTO_TKR.DAT.
$d    All inputs here are in the "current units".  Lengths
$d are in either feet or meters, and forces are in the current
$d "big force" unit. Except for the line diameters which are
$d in either inches or millimeters.
$d    The TKR_GEN command defines a mooring system, sets the initial
$d condition, and optionally, performs frequency domain analyses or
$d hydrostatics.  The form of this command
$d is:
$d.out
$d      TKR_GEN -OPTIONS
$d
$d where the available options are:
$d
$d     -DRAFT DRAFT                                      \
$d
$d     -FRQDOM                                           \
$d
$d     -HYDROSTATICS                                     \
$d
$d     -BUOY BDIA BHEI HTYPE HDIA HLEN                   \
$d
$d     -TURRET X Y Z                                     \
$d
$d     -LINES NUMLINE DEPTH TYPE1 DIAM1 LEN1 CLUMP1 ...  \
$d                          TYPEn DIAn  LENn
$d
$d     -MLANG MLANG(1) MLANG(2) ... MLANG(numline)       \
$d
$d.in
$d    The draft of the tanker is defined by the -DRAFT option.
$d If the data following -DRAFT is "HEAVY", then the summer draft
$d will be used, If it is "LIGHT", then the light draft will be
$d used. Anything else is assumed to be a number and it will be
$d used as the draft.
$d    The -FRQDOM option tells the macro to plot the unrestrained
$d vessel RAOs for this draft, and -HYDROSTATICS tells it to
$d compute curves of form and stability at this draft.
$d    The type of mooring system generated is controlled by the
$d options -BUOY, -TURRET, and -LINES. If one specifies -BUOY,
$d they a calm system will be defined.
$d For -BUOY, BDIA is the buoy diameter, BHEI is the buoy
$d height, HTYPE the hawser type, and HLEN the hawser length.
$d The last three values define the hawser and are the same
$d as when defining a line, as discussed below.  Alternatively,
$d if -TURRET is specified, then a turret moor will be established
$d with the turret at the x, y, and z vessel location.
$d    The -LINES option defines the mooring lines which connect
$d either the tanker or the buoy to the sea floor.
$d Here, NUMLINE is the number of lines which will be deployed.
$d They will be at equal angles with a line at 0 degrees.
$d DEPTH defines the water depth at the anchors, and the
$d remainder of the data defines each segment of line. One
$d needs four pieces of data per segment. First is the segment
$d type. This can be either: WIRE, FIBER, POLY, NYLON, DACRON or
$d CHAIN. This is followed by the diameter in either inches or
$d millimeters, and the length in feet or meters. Finally, one
$d can specify a "clump weight" at the end of the segment.
$d    The -MLANG option defines the angles to fromt the global x-axis
$d to each mooring line. Here MLANG(1) is the angle to the first
$d mooring line and MLANG(numline) is the angle for the last mooring
$d line deployed.  Please note that the number of entries for -MLANG
$d must equal NUMLINE.
$d   The -DETAIL option tells the macro to use a detailed tanker
$d model. If the -DETAIL option is not used a coarser model will
$d will be used.
$d    The TKR_SIM command performs a frequency domain and/or a
$d time domain simulation of a moored tanker. The form of this
$d command is:
$d.out
$d        TKR_SIM -OPTIONS
$d
$d where the available options are:
$d
$d        -TIME TOBSERV DTIME
$d
$d        -NO_FREQ
$d
$d        -PRETENSION PRETEN
$d
$d        -SEA SNAME THET HS PERIOD GAMMA
$d
$d        -WIND WSPEED WDIR
$d
$d        -CURRENT PNAME CURD
$d
$d.in
$d    The two options -TIME and -NO_FREQ control the type of simulation
$d which will be performed. If both options are omitted, then only
$d a frequency domain will be done. If only -TIME is specified,
$d then both time and frequency will be done. Finally, if both options
$d are specified, only a time domain will be investigated. With the
$d -TIME option, TOBSERV is the length of the simulation in seconds,
$d and DTIME is the time step in seconds.
$d    The -PRETENSION option defines the pretension in "big force
$d units" which will be applied to all mooring lines at the basicsning
$d of the simulation. The environment will then be applied, and an
$d equilibrium position estimated. Once equilibrium has been found,
$d properties of this position are reported. Finally, the indicated
$d simulation will be preformed and reports written.
$d    The remainder of the options define the environment which
$d will be used for the simulation. These options are exactly the
$d same as those of the same name on the &ENV command and hence
$d will not be documented here.
$d
$
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$
$
$*********************************************      set basics
$
&device   -g_default device -oecho no
$&dimen   -dimen meters m-tons
&dimen    -dimen feet kips
$
$*********************************************      read model
$
inmodel
$
$*********************************************      connect, etc.
$
tkr_gen 240  -turret  22 0 0                 \
             -draft heavy                   \
             -line 8 131 chain 6 800
$
$*********************************************      define env.
$
tkr_sim    \
     -preten 200 \
     -sea    issc 180 3.68*3.28 9.19 \
     -wind   26.8 180 \
     -curr   .7*3.28   180  -time 400 2
$
$*********************************************      all done
$
&fini
