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¶
hos3on thewavescard activates HOS3.drafis the water depth in meters. Set this to the actual depth.nxandnymust be powers of two. Increase them if you need to resolve shorter waves.- For directional seas, increase
nyand enablescandnsprinwaves.
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
- This output is written automatically when HOS3 is enabled and is independent of the
XPTD:SAVEsettings.