Skip to content

HOS3 Quick Start

This short example demonstrates how to enable the Higher-Order Spectral (HOS3) incident wave solver for irregular waves, and how to post-process the HOS3 surface output.

Prerequisites: KCS in Waves
SHIPFLOW modules used: MOTIONS


Configuration

xflow
  titl( titl="KCS" )
  prog( motions )
  hull( mono )
  offs( file="off_kcs", lpp=230, zori=10.8 )
  vshi( vknot=24, reflen=230 )
  mass( zcg=14.3, kyy=57.87 )
  fixe( surge )
  waves( irre, ss=5, hos3 )
end
xmtd
  body( name="main", main )
  body( name="bulb", bulb )
  body( name="boss", boss )
  body( name="aft",  aft )
  body( name="tran", tran )
end
xptd
  hos3( nx=1024, ny=4, draf=40, tmin=6 )
  para( nthr=6 )
end

Notes

  • hos3 on the waves card activates HOS3.
  • draf is the water depth in meters. Set this to the actual depth.
  • nx and ny must be powers of two. Increase them if you need to resolve shorter waves.
  • For directional seas, increase ny and enable sc and nspr in waves.

The full parameter list is under XPTD:HOS3, and the solver itself is described under HOS3 waves.


Post-processing

When HOS3 is enabled, MOTIONS writes COMMAND_FILE_hos3.pvd and VTU files in a hos3/ subdirectory. Open the .pvd file in ParaView to view the HOS3 free surface over time.

Notes

  1. This output is written automatically when HOS3 is enabled and is independent of the XPTD:SAVE settings.