User Guide

Table of contents

Basics Installation Getting started Structure of a SHORTCUt case SHORTCUt commands The settingsDict Custom OpenFOAM solvers and library

Basics

SHORTCUt is a toolbox that provides a shortcut around the tedious work of setting up successful ship performance calculations in the open source CFD suite OpenFOAM. It also includes custom OpenFOAM libraries and solvers which greatly simplifies the task of accurately modeling self propulsion and propeller/hull-interaction.

This software is meant to be used together with an existing installation of OpenFOAM on a Unix-type system (Such as Ubuntu, CentOS etc.) Usage on Windows systems by emulating a Unix environment (through e.g. Docker or VirtualBox) is possible but not tested.

As with OpenFOAM, SHORTCUt has no user interface. User interaction is handled through:

  1. Shell commands in a Unix terminal
  2. Settings contained in text files

In contrast with OpenFOAM however, SHORTCUt has only a handful of shell commands and only one settings file. This replaces the dozens of settings files, in various folders, used by standard OpenFOAM.


Installation

Before installing SHORTCUt, make sure you have a working installation of OpenFOAM (compatible versions are indicated in the Downloads-page.) SHORTCut also requires gnuplot for plotting, averaging force histories and other post-processing tasks. gnuplot is shipped with most Linux operating systems.

SHORTCUt can be installed on any Unix-type system that supports shell scripting. It was written and tested in the bash shell. To install, run the provided install_all-script as follows:

bash install_all

The install_all script will do three things when executed:

You can test the installation using the wHelp-command


Getting started

After successful installation, the command newShip will be used to create a new SHORTCUt case. The command should be followed by the name you wish you give the case folder. Or the full folder path. If only a name is provided, the case will be created in the current working directory.

newShip myship

or

newShip /home/myname/OpenFOAM/run/ships/myship

Structure of a SHORTCUt case

A SHORTCUt case is a folder created by executing the newShip-command. It is copied from a template and contains two sub-folders and the file containing all SHORTCUt settings.

All SHORTCUt commands must be executed in either the doubleModel or VOF sub-directories. They will read the settingsDict of the parent case directory to determine how to set up the simulation.


SHORTCUt commands

This is a list of all new commands available after installing SHORTCUt. All relevant output from these commands are stored in log files in the root case directory (where settingsDict is.) For example, information about mesh quality, coefficients of resistance and self propulsion parameters will be stored in doubleModel.log when running SHORTCUt commands in the doubleModel directory.

The last five commands, run in the order specified above in the doubleModel folder, concludes the ship performance calculation. SHORTCUt also comes with a few auxiliary commands, namely:


The settingsDict

The settingsDict (together with any stl files used) is the only file needed to define a calculation using SHORTCUt. This means that it can be shared and copied freely into any SHORTCUt root case folder to yield the same calculation. By default, the settingsDict given when the newShip-command is run describes a calculation for the Japan Bulk Carrier (JBC) benchmark case with a fine mesh. This is the same calculation that is showcased in the validation section (using the Yamazaki propeller model.) Other benchmark cases are available. The default settingsDict should be well commented to let the user know what each setting does. Many of the settings can be left unchanged from the default. However, some key ones that probably needs to be changed are listed below.

Global settings

Common settings for both doubleModel and VOF

Settings for the propeller

This sub-dictionary contains the definition of the propeller geometry.

These should be changed to be representative of the propeller the user wants to use. common/propeller also specifies what model to use to represent this propeller and how to control the RPM.

Settings for the double model calculation

Settings for the double model mesh

Settings for the VOF calculation and mesh

These work similar to the double model settings.


Custom OpenFOAM solvers and library

SHORTCUt helps to set up the usage of the custom OpenFOAM utilities for propeller modeling. However, the self propulsion solver, utilities and propeller modeling library can also be used completely standalone after they have been compiled. This is useful for advanced users who want to make modifications to the propeller model, test different turbulence schemes, convection schemes or any other modifications that are not available through the SHORTCUt scripts.

When compiling the custom package (done automatically by the SHORTCUt install script) the following new OpenFOAM utilities will be available:

In addition to all the regular files required in an OpenFOAM case, the custom solvers use tow dictionaries to define the propeller and the hull. propellerDict and hullDict.