Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created September 2, 2011 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckunte/1188233 to your computer and use it in GitHub Desktop.
Save ckunte/1188233 to your computer and use it in GitHub Desktop.
Mooring analysis checklist
#!/bin/sh
# ---------------------------------------------
# Usage:
# From the results folder, run the following:
#
# $ sh ./mchklst.sh > checklist.txt
#
# (checklist.txt would be saved in the results
# folder.)
# ---------------------------------------------
echo "Mooring output checklist using grep:"
echo "From static output:"
grep -a 'Draft' ?*.STA
grep -a 'Pretension' ?*.STA
grep -a 'Waterdepth' ?*.STA
grep -a 'Z coordinate' ?*.STA
echo ""
echo "From full dynamic output:"
grep -a '.HYD' *.OUT
grep -a 'area above waterline' ?*.OUT
grep -a 'CDN' ?*.OUT
grep -a 'CDT' ?*.OUT
grep -a 'CIN' ?*.OUT
grep -a 'CIT' ?*.OUT
grep -a 'Design draft' ?*.OUT
grep -a 'Displaced moulded volume' ?*.OUT
grep -a 'Elasticity' ?*.OUT
grep -a 'Full dynamic' ?*.OUT
grep -a 'Gamma' ?*.OUT
grep -a 'gust spectrum' ?*.OUT
grep -a 'hydrodynamic data' ?*.OUT
grep -a 'hydrodynamic file' ?*.OUT
grep -a '(Kxx)' *.OUT
grep -a 'Kxx' ?*.OUT
grep -a '(Kyy)' *.OUT
grep -a 'Kyy' ?*.OUT
grep -a 'Kzz' ?*.OUT
grep -a 'Length between perpendiculars' ?*.OUT
grep -a 'Loading condition' ?*.OUT
grep -a 'Mean wave period' ?*.OUT
grep -a 'Projected front' ?*.OUT
grep -a 'Projected side' ?*.OUT
grep -a 'Significant wave' ?*.OUT
grep -a 'Water depth' ?*.OUT
grep -a 'Water depth' *.OUT
grep -a 'wave spectrum' ?*.OUT
grep -a 'Weight (sub' ?*.OUT
grep -a 'Wind direction' ?*.OUT
grep -a 'Wind velocity' ?*.OUT
grep -a '(Xcog)' *.OUT
grep -a 'Xcog' ?*.OUT
grep -a 'X - coordinate' ?*.OUT
grep -a '(Ycog)' *.OUT
grep -a 'Ycog' ?*.OUT
grep -a '(Zcog)' *.OUT
grep -a 'Zcog' ?*.OUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment