Skip to content

KCS in Waves

This tutorial adds regular incoming waves to the KCS setup from KCS in Calm Sea, and shows how to post-process the results in ParaView and read the response amplitude operators (RAOs) from the OUTPUT file.

Prerequisites: KCS in Calm Sea
SHIPFLOW modules used: MOTIONS


Configuration

Use either one of the following.

kcs_105_iges

xflow
  titl( titl="KCS"  )
  prog( motions )
  hull( mono )
  offs( iges="kcs.igs", lpp=230, zori=10.8 )
  mass( zcg=14.3, kyy=57.87 )
  vshi( vknot=24, reflen=230 )
  fixe( surge )
  waves( regu, length=[1.05], height=[0.0174624] )
end
xptd
  para( nthr=6 )
end

kcs_105

xflow
  titl( titl="KCS"  )
  prog( motions )
  hull( mono )
  offs( file="off_kcs", lpp=230, zori=10.8 )
  mass( zcg=14.3, kyy=57.87 )
  vshi( vknot=24, reflen=230 )
  fixe( surge )
  waves( regu, length=[1.05], height=[0.0174624] )
end
xmtd
  body( name="main", main )
  body( name="bulb", bulb )
  body( name="boss", boss )
  body( name="aft",  aft )
  body( name="tran", tran )
end
xptd
  para( nthr=6 )
end

The setup

The only new command in this configuration compared to the previous one is the XFLOW:WAVES command. With that command present the simulation will run with incoming waves.

Keyword Meaning
XFLOW:WAVES:REGU Regular 5th order Stokes wave
XFLOW:WAVES:LENGTH=1.05 Wave length is 1.05 × LPP
XFLOW:WAVES:HEIGHT=0.0174624 Wave height is 0.0174624 × LPP

Post-processing in ParaView

When you install SHIPFLOW, ParaView also gets installed. On Windows you will be able to find it on the Start menu. Start ParaView.

To import the computational results into ParaView, do File → Open and open both kcs_105_free_surface.pvd and kcs_105_body_001.pvd from the directory kcs_105_RUN_DIR. If HOS3 is enabled, also open kcs_105_hos3.pvd. This will import all the VTU files.

In the Pipeline Browser the imported PVD files can now be seen. To the left of each PVD file there is a closed eye. Click on both eyes to open them and thereby make the data visible in the View.

ParaView: The Pipeline Browser shows the two imported pvd files. The eyes to the left are clickable and will toggle data to be visible/invisible.

In the View you can hold down left mouse and drag with the mouse to rotate your view. Your ParaView should now resemble the figure below.

ParaView with the imported KCS results

Select one of the PVD files in the Pipeline Browser and, in the drop-down menu shown below, change from Surface to Surface With Edges. The View will show the panelization.

ParaView: the representation drop-down menu

ParaView: the KCS panelization shown with Surface With Edges

In a similar manner as showing the panelization, you can also view saved variables. Select one of the PVD files in the Pipeline Browser and, in the drop-down menu shown below, change from Solid Color to one of the variables. In order to save disk space only a few of the variables are saved by default, but this can be changed in XPTD:SAVE.

ParaView: the colour-by variable drop-down menu

So far we have just been looking at the initial solution. With the green buttons above the drop-down menu, you can play the entire simulation, step one iteration at a time, or step to the end. To the right of these buttons you can also select a certain iteration.

ParaView: an example of what your simulation in MOTIONS might look like


Results

Incident wave field:

 #######################################################################
 INCIDENT WAVE FIELD
 #######################################################################

  Regular waves                                         :       Stokes
  Order                                                 :    5th-order
  Number of wave components                             :            1

  Tabulated wave component parameters

  No.    : component number
  w      : component angular frequency [rad/s]
  T      : component period [s]
  L      : component length [m]
  A      : component amplitude [m]
  H      : component height [m]
  H/L    : component steepness [-]
  kA     : component slope [rad]

  No.   w            T(w)         L(w)         A(w)         H(w)
  H(w)/L(w)    k(w)A(w)
    1    5.05117E-01  1.24391E+01  2.41500E+02  2.00818E+00  4.01635E+00
    1.66309E-02  5.22474E-02

Post-processing summary:

 +++++++++++++++++++++++++++
  RIGID BODY NO. 1 (MASTER)
 +++++++++++++++++++++++++++

  Post-processing mode                                  :Regular sea

  Time at start of analysis [s]                         :       75.562
  Time at end of analysis [s]                           :      186.227
  Time sailed [s]                                       :      110.665
  Distance sailed [m]                                   :     2268.214
  Average tow spring extension [m]                      :          N/A
  Average tow force [N]                                 :          N/A
  Number of wave encounters (zero up-crossings)         :           14

Response amplitude operators:

 -----------------------------------------------------------------------
 RESPONSE AMPLITUDE OPERATORS AND HARMONIC AMPLITUDES
 -----------------------------------------------------------------------

  Response amplitude operators for the rigid body motions
  -------------------------------------------------------

  RAO1 ( Surge amplitude / wave amplitude )                      :0.000
  RAO2 ( Sway amplitude / wave amplitude )                       :0.000
  RAO3 ( Heave amplitude / wave amplitude )                      :0.670
  RAO4 ( Roll amplitude / ( wave number * wave amplitude ) )     :0.000
  RAO5 ( Pitch amplitude / ( wave number * wave amplitude ) )    :0.526
  RAO6 ( Yaw amplitude / ( wave number * wave amplitude ) )      :0.000

  PHASE1 ( Surge phase angle [deg] relative incident wave at CG ):  145.276
  PHASE2 ( Sway phase angle [deg] relative incident wave at CG ) : -124.861
  PHASE3 ( Heave phase angle [deg] relative incident wave at CG ):  -36.892
  PHASE4 ( Roll phase angle [deg] relative incident wave at CG ) : -124.861
  PHASE5 ( Pitch phase angle [deg] relative incident wave at CG ): -176.269
  PHASE6 ( Yaw phase angle [deg] relative incident wave at CG )  : -124.861
Harmonic amplitudes and phase angles
  Harmonic amplitudes of the rigid body motions (0th to 5th harmonic)
  -------------------------------------------------------------------

         A0 (mean)    A1           A2           A3           A4           A5
  Surge -5.53849E+00  9.87455E-05  9.83980E-06  2.80853E-06  1.16961E-06  5.94459E-07
  Sway   0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00
  Heave -3.39839E-01  1.34646E+00  2.25410E-02  8.09886E-04  1.38816E-03  6.43483E-04
  Roll   0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00
  Pitch  5.07146E-02  1.57578E+00  3.03722E-02  1.31982E-03  2.36508E-03  1.03799E-03
  Yaw    0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00  0.00000E+00
  Wave  -4.38130E-03  1.99844E+00  5.24531E-02  2.09413E-03  6.92585E-05  2.53555E-05


  Phase angles of the harmonic amplitudes
  (in degrees relative the incident wave at CG)
  -------------------------------------------------------------------------------------

                      Phase1       Phase2       Phase3       Phase4       Phase5
  Surge                   145.276       20.391     -103.138      131.339      -44.860
  Sway                   -124.861      110.475      -12.833     -138.135       46.245
  Heave                   -36.892      -68.979      -16.081      -23.931     -170.845
  Roll                   -124.861      110.475      -12.833     -138.135       46.245
  Pitch                  -176.269      107.075     -146.547      159.085        5.830
  Yaw                    -124.861      110.475      -12.833     -138.135       46.245

Resistance summary:

 -----------------------------------------------------------------------
 RESISTANCE SUMMARY
 -----------------------------------------------------------------------

  RW_std  (Standard deviation of RW [%])                :        0.057

  RT      (Total resistance [N])                        :  3327989.738
  RW      (Wave resistance [N])                         :  2039749.146
  RF      (Friction resistance [N])                     :  1288240.592

  RT_AP   (Total resistance [N])                        :  3393014.554
  RW_AP   (Wave resistance [N])                         :  2104773.962

  R0      (Calm water resistance [N])                   :          N/A
  RAW     (Added resistance [N])                        :          N/A

  S       (Wetted surface area [m^2])                   :     9565.233
  CF*1000 (Friction resistance coefficient [-])         :        1.378
  k       (Form factor [-])                             :        0.250

Exercise: added resistance

How large is the added resistance and added resistance coefficient for KCS in these regular waves?

\[ RAW = RT - RT_{calm} \]
\[ CAW = \frac{RAW}{\rho \, g \, B^2 H^2 / L_{PP}} \]

or

\[ CAW = \frac{RAW}{\rho \, g \, B^2 A^2 / L_{PP}} \]

where:

  • \( \rho \) — water density [kg/m³]
  • \( g \) — gravitational acceleration (9.81 m/s²)
  • \( B \) — beam [m]
  • \( H \) — wave height [m]
  • \( A \) — wave amplitude [m]

Note: \( RT \) and \( RT_{calm} \) must be computed with exactly the same configuration, except the incoming wave specification.


Next Steps

Continue to KVLCC2 in Waves