$
$ This set of commands will setup and check fenders for a tanker moored
$ with a barge alongside
$
$*********************************************      set basics
$
&device -g_default screen -oecho no
&dimen -DIMEN METERS M-TONS
&TITLE TANKER & barge moored side by side
$
$*********************************************      read model
$
inmodel
$
$*********************************************      set init. conditions
$
&INSTATE -LOCATE  tanker     0     0 -21.95 \
         -LOCATE  barge    180  45.2  -4.3
$
$*********************************************      set weights
$
&WEIGHT -COMPUTE TANKER 14.5 1 1 1 \
        -COMPUTE barge   5.5 1 1 1
$
$*********************************************      define connectors
$
MEDIT
$
$*********************************************      tanker
$
   &describe body tanker
$
$ NOTE:
$ Remember, when defining locations for fenders (compression only
$ gsprs), no force will be generated until the 2 nodes are touching
$
$ Fenders should be located at the waterline alongside the ship, so the
$ point defined should be outboard the vessel by the diameter of the
$ fender
$
$ Assume the fender is 2.05 meter in diameter, and B/2 is 27.3 so the
$ location of the fender point will be 27.3+2.05=29.35
$
$ For demonstration, I'm making a simple assumption that the tanker is
$ wall-sided. This may not be true.
$
   *fent1  190  29.35  21.95
   *fent2  220  29.35  21.95
   *fent3  250  29.35  21.95
   *fent4  280  29.35  21.95
$
$*********************************************      barge
$
   &describe body barge
$
$ NOTE:
$ Here we are assuming the fenders are on the tanker so we don't need
$ to account for the diameter.  We only need to define points at the
$ locations that the fenders will touch.  B/2 = 15.85.
$
$ Of course we need to verify that the x & z components are good also.
$ We don't do that here.
$
   *fenb1  10 -15.85 4.3
   *fenb2  40 -15.85 4.3
   *fenb3  70 -15.85 4.3
   *fenb4 100 -15.85 4.3
$
$ Fender properties
$
$ Here the y, z values are set very small so they don't contribute to
$ the analysis. Fenders also tend to be nonlinear, so you should check
$ the fender data book for the correct values to use.
$
   ~fend gspr compression x 100 2000 y 1   2000 z 1   2000
$
$ NOTE:
$ The gspr coordinate system is the same as the body system of the 1st
$ node - in this case the tanker.  Since the "working" end the the gspr
$ X-axis, the -euler option points this end in the direction required -
$ in this case +90deg (from tanker to barge). You can also use
$ "-euler +y"
$
   connector f1 ~fend *fent1 *fenb1 -euler 0 0 90
   connector f2 ~fend *fent2 *fenb2 -euler 0 0 90
   connector f3 ~fend *fent3 *fenb3 -euler 0 0 90
   connector f4 ~fend *fent4 *fenb4 -euler 0 0 90
END_medit
$
$ Check fenders
$
$ Check connections of fenders to make sure they are defined as we
$ want them
$
&type
&type connector geometry
&status g_connector
$
$ Now we check to make sure the fenders react the way we want.
$
$ In the initial position the fender points should be located at the
$ same x, y, z; but there should be no compression, so F=0
$
&type
&type connector initial force
&status f_connector
$
$ Move barge 1m (-y direction) towards tanker
$ check connector force
$
&type
&type connector force - barge 1m towards tanker
&instate -move barge  0 -1 0
&status f_connector
$
$ move barge towards tanker again, check force
$
&type
&type connector force - barge 2m towards tanker
&instate -move barge  0 -1 0
&status f_connector
$
$ move barge away from tanker (+y direction), check force
$
&type
&type connector force - barge 1m towards tanker
&instate -move barge  0  1 0
&status f_connector
$
$ move barge away from tanker again, check force
$
&type
&type connector force - barge back to intial position
&instate -move barge  0  1 0
&status f_connector
$
$ check to make sure no tension is generated.
$ move barge away from tanker again, check force
$
&type
&type connector force - barge 1m away from tanker
&instate -move barge  0  1 0
&status f_connector
$
&fini
