Skip to content

Introduction

This manual is the reference for the SHIPFLOW Basic and RANS modules. It describes in detail all the commands of the command file and the input files. This introduction summarizes what each module does, how a computation passes through the modules, how the manual is organized and which syntax rules apply to every command file.

About this manual

If you are new to SHIPFLOW, start with the tutorials and use this manual when you need more detailed information:

  • Basic tutorials: potential free-surface flow, design variants, offset file generation, boundary layers and grid generation.
  • Advanced tutorials: self-propulsion, forebody optimization and appendages with overlapping grids.
  • Examples Manual: the ready-made command files delivered with SHIPFLOW, listed by ship type and analysis approach.

The MOTIONS module has a user manual of its own; see User Manuals.

How the manual is organized

Chapter Contents
XFLOW Commands common to all modules: which modules to run, hull geometry and hull type, initial position and speed of the ship, onset flow, propeller, fluid properties and symmetry, and the parametric appendages and extra grids for XCHAP.
XMESH Panel generation for the potential-flow solver XPAN.
XPAN The potential-flow solver.
XBOUND The boundary-layer solver.
XGRID Generation of the volume grid for XCHAP.
XGR8 Generation of the hull surface mesh that XGRID builds its volume grid on.
XCHAP The RANS solver.
XPOST Automatic report generation.
Offset file format The file that describes the hull geometry.
System practicalities The files that SHIPFLOW reads and writes, the program and file structure, and memory utilization.
Remote computations Running a computation on a remote Linux host.
Standard Cases The Standard Case mode, the simplest way of using SHIPFLOW.

How a computation runs

A SHIPFLOW computation is controlled by a command file. Its name, id, is used as a prefix for all the files that SHIPFLOW creates. The command file is divided into sections, one for each module, and each section is placed between the module's delimiter command and END (see Module delimiter commands). The XFLOW section holds the commands that are common to all modules; its PROGRAM command selects the modules to run. The modules always run in the order below, regardless of the order in which they are given in PROGRAM:

  1. XMESH generates the panels for the potential-flow computation. The XPAN keyword of PROGRAM runs both XMESH and XPAN.
  2. XPAN computes the potential flow and writes the database file id_XPDB, which is used by XBOUND, XGRID and XCHAP.
  3. XBOUND computes the boundary layer along streamlines traced from the potential-flow solution and writes the database file id_XBDB, which is used by XCHAP in the zonal approach.
  4. XGRID generates the volume grid for XCHAP and writes it to id_XVGRID. When the XGR8 keyword is given in the XGRID CONTROL command, the hull surface is first meshed by XGR8, and XGRID creates the volume grid from that surface mesh.
  5. XCHAP solves the Reynolds averaged Navier-Stokes equations on the XGRID grid, on grids from external grid generators, or on both. In the zonal approach its inflow boundary conditions are generated from the XPAN and XBOUND results.
  6. XPOST generates a report with the integrated results and the most common pictures and graphs.

The information needed by the following modules is always saved, so it is also possible to run SHIPFLOW module by module and adjust the input for each module in between. Detailed output is written to id_OUTPUT, summarized output to id_SUMMARY, and the data for visualization of the results from all modules to id.cgns. The chapter System practicalities lists all files and shows the program and file structure.

Capabilities

In this section the various capabilities and options available in SHIPFLOW are summarized.

XMESH

XMESH is a panel generator for the potential flow module XPAN. XMESH can be executed as a separate program to check the panelization of the body and free-surface before the potential flow computation is executed. The XMESH module is also executed during the potential flow computation when sinkage/trim or non-linear iterations are performed and the panelization is updated in each iteration. XMESH generates the panels used for a sink-disk representation of a propeller in the potential flow. Off-body points can also be generated using the XMESH module. Off-body points are used in potential flow computations when the result is to be displayed at points in the flow field outside the hull surface.

XPAN

XPAN is the flow solver for the potential flow around three dimensional bodies based on a surface singularity panel method. A wide range of problems may be analysed. These include

  • Flows with or without a free surface
  • Ship flows with or without a transom stern
  • Ship flows with or without sinkage and trim
  • Multiple ship speeds
  • Multiple onset flow directions
  • Influence of the propeller (for more detailed studies XCHAP is recommended)
  • Lifting surfaces
  • Shallow water
  • Ship in a canal

With the following options

  • First or higher order panel method
  • Linear or non-linear free surface boundary condition
  • Neumann-Kelvin, double-model or single-model solution as base flow
  • Symmetry feature
  • Initial ship position specification
  • Velocity and pressure computations at specified off-body points

Using the XPAN program, the following features of the flow around the hull may be computed

  • Wave resistance from pressure integration and from transverse wave cuts
  • Wave pattern
  • Wave profile along the waterline
  • Wave profile along longitudinal and transverse wave cuts
  • Far-field waves in deep water
  • Potential streamlines (traced in XBOUND)
  • Pressure contours
  • Velocity vectors
  • Sinkage and trim
  • Lift and induced drag

XPAN creates a database file, id_XPDB, used by XBOUND, XGRID and XCHAP. The database file contains all the results from the potential flow computation that are needed for the execution of XBOUND and XCHAP (zonal approach).

XBOUND

XBOUND is a program for thin turbulent boundary layer computations. The momentum integral equations for boundary layers are solved along streamlines traced from a potential-flow computation. XBOUND is also capable of computing the laminar boundary layer and the transition to the turbulent boundary layer for simpler cases with a well defined stagnation point or line. The computations can be carried out for a smooth surface or for a specified surface roughness.

The following boundary layer quantities can be computed in XBOUND:

  • Boundary layer thickness
  • Displacement thickness
  • Momentum thickness
  • Shape factor
  • Cross-flow angle
  • Skin friction coefficient
  • Transition between laminar and turbulent flow
  • Limiting streamlines

The friction is integrated over a specified region of the hull.

XBOUND creates a database file, id_XBDB, used by XCHAP (zonal approach). The database file contains all the results from the boundary layer computation needed for the execution of XCHAP.

XGRID

XGRID generates the grid used for the viscous computations in XCHAP

  • around a ship or submarine hull
  • with constant x-surfaces
  • with proper concentration close to the hull surface regardless of humps and hollows
  • where the position of the parametric edges leaving the keel/water line can be specified to avoid singularity problems in the XCHAP module
  • with a concentration of x-planes in the stern region where it is needed the most
  • with a strong concentration of points close to the singularity lines (the parametric edges between the continuation of the hull surface, the wake plane, and the adjacent parametric surfaces)
  • which includes sinkage and trim

XGRID can also

  • create a transom grid for XCHAP
  • mirror the grid for unsymmetrical cases
  • handle twin skeg hulls
  • adapt the horizontal plane to a prescribed free surface from XPAN

XGRID cannot handle appendages.

XGR8

XGR8 is a surface mesh generator for the hull surface. The surface mesh is read by XGRID, which creates the volume grid from it. XGR8 can also create the starting guess for the XGRID volume grid, which XGRID otherwise creates by transfinite interpolation. The girthwise cell distribution is controlled by dividing the hull into strips; by default the strips are set up automatically from the offset file.

XCHAP

XCHAP is a finite volume code that solves the Reynolds averaged Navier-Stokes equations. It uses several turbulence models (EASM, k-ω BSL, k-ω SST). The solver can be used in a zonal or a global approach. The solver can handle overlapping grids. Several parametrised models of appendages are available in the system, e.g. rudder, shafts, brackets and vortex generators. Grids can also be imported from external grid generators. There are also two actuator disk models available, a simple force model and a lifting line model. The flow can be computed with a double model or with a free-surface.

The following quantities are computed

  • Velocity field
  • Pressure
  • Turbulent kinetic energy and specific turbulent kinetic energy
  • Local skin friction coefficient
  • Friction and pressure resistance coefficients for the hull part covered by the grid
  • Total resistance and its components using the results from XPAN, XBOUND and XCHAP

XCHAP can use the grid provided by XGRID. Inflow boundary conditions are generated from results provided by XPAN and XBOUND when the zonal approach is used.

XCHAP can also use block structured grids generated in an external grid generator. These grids can be either the entire hull so that no XGRID grid is needed or appendage grids that are added to the XGRID grid.

XPOST

The XPOST module generates a comprehensive report for the computed cases. It contains the integrated results as well as the most common pictures and graphs showing the flow fields, wave patterns and pressure distributions.

Overview of the commands

The information that governs the behavior of SHIPFLOW is given in the command file in the form of a series of commands.

Only a minority of the commands will be used by all modules of SHIPFLOW. They are described briefly in XFLOW commands below.

The vast majority of the commands however are only used by one of the SHIPFLOW modules. They are summarized in the other sections below. Each command name links to its full description.

Note that the commands must be grouped and placed between delimiters in the command file, e.g. all commands used by XGRID must be given between the commands XGRID and END.

In the following description a (M) indicates that the command is mandatory.

Module delimiter commands

In order to run a SHIPFLOW computation a command file must first be created. The command file tells SHIPFLOW which modules should be executed. Each module has a specific set of commands which are unique to its operation. When specifying these commands it is necessary to tell SHIPFLOW

  • Which module you have chosen
  • Where you are beginning to define the commands
  • Where you have ended your command definition

This is accomplished by the module delimiter commands (see MODULE SECTION DELIMITER COMMANDS). In the example below the delimiter commands are XPAN and END. The information found between the delimiters is the command definitions for the XPAN module.

xpan
    cont             ( free, nonl )
    iter             ( maxi=10 )
end

XFLOW commands

Delimiter commands

Command Description
XFLOW Marks the beginning of commands to the XFLOW level.
END Marks the end of commands to the XFLOW level.

Master commands

Command Description
TITLE Title.
PROGRAM Which modules of SHIPFLOW to run (M).
OFFSETFILE Name of the file containing hull offsets or iges, orientation and size of the hull in the offset file (M).
HULLTYPE Specify the type of ship and specify input for the Standard Case option (M).
IPOSITION Initial position of ship.
OSFLOW Onset flow direction.
TURN Turning radius and center for XCHAP.
FLUID Fluid properties.
FMREF Ship dimensions for nondimensionalised integrated forces and moments.
VSHIP Speed of ship (M).
PRTOPT Extra output files.
SYMMETRY Used to specify the symmetry plane, if any.
PROPELLER Geometry data and thrust coefficient for a propeller.
SELFPROPULSION Control self-propulsion.
SPAUTO Control full propulsion analysis.
ITTC78 Extrapolate XCHAP results from model scale to full scale.
ROUGHNESS Distribute the roughness parameter KS over the hull.
RUDDER A parametric rudder model for XCHAP.
ENDPLATE An endplate on a RUDDER object.
KNUCKLE A knuckle in the contour of an object, intended to adapt part of a rudder to the hull.
SHAFT A parametric shaft model for XCHAP.
OPENSHAFT A propeller shaft with a hull-shaft fairing.
BRACKET A parametric model of bracket for XCHAP.
INTERCEPTOR An interceptor appendage at the transom.
TUNNEL A thruster tunnel grid.
BOX A rectangular grid for XCHAP.
ENVBOX The XGRID grid will be embedded in a BOX grid.
CYLINDER A cylinder grid for XCHAP.
SPHERE A spherical grid for XCHAP.
FILE Overrides the name conventions for some of the files used by XPAN, XBOUND, XGRID and XCHAP.
OPTIM Output and input for optimization.
RESCALE Run the computation on the Rescale.com cluster.
HYPSURF Creates a 2D hyperbolic grid for XCHAP.
WSECTION Creates a 2D grid around a wing section for XCHAP.
ROTBODY Uses the 2D grids from HYPSURF and WSECTION to make 3D grids.
EXTRUSION Creates a volume grid by extruding a 2D grid in the z-direction.
SUBCURVE Defines a two-dimensional subdivision curve that other XFLOW commands can reference.
STRETCHING Defines a one-dimensional stretching function that changes the node distribution in a component grid.
SUBVOLUME Creates a smaller grid from a source grid by specifying a range in parameter space.
SPLVOLUME Splits a volume (component) grid at a point.
MCIRCLE Morphs a volume grid by transforming a line segment into a circular segment.
VORTEXGEN Creates a vortex generator for XCHAP.
APPENDAGE Adapts appendage grids to the hull surface for XCHAP.
ASSEMBLY Groups component grids for the integration of forces, and positions a group of grids.
RECESS Adapts hole cutting grids for XCHAP.

XMESH commands

Delimiter commands

Command Description
XMESH Marks the beginning of commands to XMESH.
END Marks the end of commands to XMESH.

Master commands

Command Description
PROPELLER This command is used to specify panels for the propeller.
ENVIRONMENT This command is used to specify panels on geometries that are not included in the description of the hull. A typical example is the bottom and the sides of a canal.
LIFT This command is used to specify panels for lifting surfaces.
BODY This command is used to specify panels for hull surfaces or other general body surfaces.
FREE This command is used to specify panels on the free-surface.
TRANSOM This command is used to specify panels for the free-surface downstream of a transom stern hull.
FSFAR This command is used to specify panels for far-field waves. Note that the command TWCUT on XPAN must be included as well.
STRIP This command is used to specify the dipole distribution on a lifting surface and its trailing wake.
OBPOINT This command is used to specify additional points in the flow field where velocity vectors and pressure contour lines are to be plotted.
PLOT This command is used to specify panels used for plotting purposes only. The panels are not active in the computations.

XPAN commands

Delimiter commands

Command Description
XPAN Marks the beginning of commands to XPAN.
END Marks the end of commands to XPAN.

Master commands

Command Description
CONTROL This command is used to specify the type of execution to be performed in XPAN. The command is also used to over-write default values for some numerical parameters.
CONVERGENCE Specify convergence criteria.
EXFORCE Specify external forces acting on the ship.
EXMOMENT Specify the towing point position and the position of external forces acting on the ship.
ITERATION Specify the maximum number of iterations in sinkage/trim and non-linear computations and to specify at which iterations the geometry is updated.
PARALLEL Control the parallel (multithreaded) execution of XPAN.
RELAXATION Specify relaxation factor.
TWCUT Input for wave resistance computations based on multiple transverse wave cuts. This command must be included in order to use FSFAR on XMESH.
WAVECUT Used to specify the positions of longitudinal and transverse wave cuts. The wave cuts are printed in the files id_LWAVECUT and id_TWAVECUT.

XBOUND commands

Delimiter commands

Command Description
XBOUND Marks the beginning of commands to XBOUND.
END Marks the end of commands to XBOUND.

Master commands

Command Description
CONTROL This command is used to specify the mode of execution of XBOUND.
TRACE Streamline tracing parameters.
INICON Specification of upstream boundary layer quantities for the integration of the boundary layer equations.
RESISTANCE Sets the limits for the skin friction integration.
LIMIT Parameters for limiting streamline tracing.
ROUGHNESS Parameters for surface roughness.

XGRID commands

Brief summary of steps taken

This brief summary of steps taken by XGRID is explained further in the "XGRID theoretical manual". Here it is used to illustrate the connection between different commands and events in the program.

  1. Start. XGRID takes control of SHIPFLOW.
  2. Distribution of points on the longitudinal boundary surfaces (all boundaries except the inflow and outflow planes).
  3. Generation of initial grid as needed for first sweep in Poisson solver.
  4. Generation of initial guess of source terms.
  5. One sweep in Poisson solver.
  6. Source term improvement.
  7. Boundary point movement.
  8. If "convergence" has not been achieved and we haven't run short of iterations, repeat steps 5-7.
  9. Copy wake planes and interpolate in radial direction to specified density.1
  10. Write to file(s).
  11. Return control to SHIPFLOW.

Notes

  1. Some of the information in the SHIPFLOW commands is passed to XGRID.
  2. The additional sinkage and trim as calculated by XPAN for a ship that is free to move is also used by XGRID if these programs are run in succession.
  3. Since this step in the grid generation process describes the size of the domain and the distribution of points on four out of six surfaces, it uses a lot of commands.
  4. This action is however fully automatic and only the information contained in the boundary point distribution (produced in step 2) is needed.
  5. The only information that we supply directly to the Poisson solver is the relaxation factors entered in POISSON and the iteration history output flag in OUTPUT.
  6. Boundary point movement is nothing else than an explicit implementation of the Neumann boundary condition, it is therefore controlled by the command NEUMANN.
  7. Convergence criteria and maximum number of sweeps in the Poisson solver are given in the POISSON command.
  8. Which type of grids should be written to which file (interpolated or not, id_XVGRID or id_XGPOST) is specified in the OUTPUT command.2

Steps 5-7 can be excluded from the execution if the Poisson solver is turned off by the keyword OFF in the POISSON command. This is extremely useful in the initial search for input parameters that give a good boundary point distribution.

Delimiter commands

Command Description
XGRID Marks the beginning of commands to XGRID.
END Marks the end of commands to XGRID.

Master commands

Command Description
COARSE The relation between the preliminary and the final (interpolated) grid.
CONTROL This command is used to specify the mode of execution of XGRID.
IMPROVE Extent of area of source change, direction of coordinate lines leaving the surfaces under treatment.
NEUMANN A Neumann boundary condition at the η-boundaries can be explicitly implemented by movement of the boundary points in between sweeps in the Poisson solver.
OFFSET Names of the offset groups used in the construction of the grid. They override the groups given in the XFLOW command HULLTYPE.
OUTPUT This command gives the user control over what grids will be written to files and if any iteration history should be given.
POISSON This command controls the Poisson solver.
RADIUS The location of the outermost boundary of the domain and the location of the center of the domain.
SINGUL Location of the singularity lines (parametric edges between the wake surface and the two η-boundaries).
SIZE Number of clusters in the final grid.
SKIN The distance between the first and second ζ plane is specified with this command.
YPLUS An alternative to SKIN. The program estimates the cell height closest to the hull based on the Reynolds number.
XDISTR Distribution of x-planes.
ETASMOOTH Smoothing of the longitudinal lines on the η-boundaries.
FEEDBACK This command allows the user to tune the improvement of the Poisson equation source terms.
TUNE Feedback amplification and saturation factors.

XGR8 commands

Delimiter commands

Command Description
XGR8 Marks the beginning of commands to XGR8.
END Marks the end of commands to XGR8.

Master commands

Command Description
CONTROL The overall hull shape, for instance mono or twin skeg, wet or dry transom.
OFFSET The offset groups used in the construction of the grid, one group per command.
STRIP The girthwise cell distribution within each strip.
SPLIT The position of the splits that form the lower and upper bounds of the strips.
RANGE A range that can be applied at a station with RPOS.
RPOS Where a range is applied.
IGUESS A starting guess for the volume grid generator in XGRID.
FTPT Known points on the hull that fine-tune the XGR8 DEFAULTS.

XCHAP commands

Delimiter commands

Command Description
XCHAP Marks the beginning of commands to XCHAP.
END Marks the end of commands to XCHAP.

Master commands

Command Description
ACTUATOR Manage the force actuator model (deprecated; use LLINE or PPROP instead).
CONTROL Specify execution mode and maximum number of iterations.
CONVERGENCE Control convergence criteria.
EXTPROPELLER Interface for external propeller programs.
EXTRACT Interpolate data to an external grid.
FREE Free sinkage and trim.
IMPORT Import of external grids.
KRYLOV Control the Krylov solver.
LLINE Manage the lifting line actuator model.
OVERLAP Tuning of the overlapping grid algorithm.
PARALLEL Control the number of threads XCHAP is run with.
POW Control the Propeller Open Water calculation.
PPROP Manage the panel method propeller model ESPPRO.
PRIORITY Control flagging of the non-fluid points in overlap regions.
REFINE Refine a region in the XGRID grid.
UNION Union of grids to extend computational domain.
VOLUME Volume grid from surface grid.
VOF Control Volume of Fluid (VOF) settings.
WAKE Wake integration.
WALL Control the wall-law treatment of the RANS solver.
XGREFINE Auto-refine XGRID grid.
XGRID Modify XGRID grid.

XPOST commands

Delimiter commands

Command Description
XPOST Marks the beginning of commands to XPOST.
END Marks the end of commands to XPOST.

Master commands

Command Description
CONTROL Specify execution mode.

Command file syntax

The following syntax rules apply to the SHIPFLOW command file.

The command file may consist of

  • blank lines
  • comments
  • commands

Blank lines are ignored.

Any line that begins with the character / will be treated as a comment and will be ignored.

The command syntax rules are explained below.

Command syntax rules

Since it is crucial to understand the syntax rules of the commands in order to avoid a lot of frustration in the beginning and irritating errors later on, the following description of the syntactic rules will be illuminated by a brief explanation of how SHIPFLOW reads a command and some examples of syntactically correct commands.

Command components

Note Part Description
(1) CONTROL WORD This is the label by which the command will be recognized by SHIPFLOW.
(2) ( If any additional information apart from the mere existence of the control word is to be given in the command, this information must be separated from the control word with (.
(3) KEYWORD Just as control words help SHIPFLOW identify different commands in the command file, keywords are used to help SHIPFLOW identify information given in the command.
(4) = An equal sign must separate the keyword and its associated information.
(5) INFORMATION The information following the = can be integers, real numbers, character strings or real vectors.
DELIMITER Keywords (with associated information) must be separated by commas.
) The command must end with a ).

Notes

  1. The control word will be identified correctly only if the command is used in the right section of the command file. An XCHAP command, for instance, will not be recognized if used in the XPAN section of the command file. Blanks preceding the control word on the line are ignored. Misspelled or undefined control words will be found and treated as such. Also, SHIPFLOW only uses the first four characters of any command. For example it is entirely legal to specify the command PROPELLER by simply entering PROP.
  2. Anything, except left brackets and line breaks, between the part of the control word that SHIPFLOW uses for its identification and the (, will be ignored.
  3. Keywords must be separated by a ,.
  4. Blanks may be used between keywords, the = sign and numerical values.
  5. The information is read with "free format" Fortran input statements. This allows some freedom:
    • The real number 0.0234 may be given as 0.0234 or 2.34E-02.
    • Integers are allowed to look like real numbers but the value used will be the truncated value of the real number. 3.75 will thus be interpreted as 3 by the program and -3.75 as -3. That is of course not useful for our needs and users interested in this are recommended to look in the Fortran manual of their computer.
    • Vectors must be enclosed by square brackets [ x, y, z ] and components separated by commas.
    • Character strings must be enclosed by quotation marks, e.g. "character string". The length of the character strings is usually limited (see detailed description of each command for the limit of the string in question).
    • In some cases, the keyword itself is the information. Take for instance the SHIPFLOW master command PROGRAM. The presence of the keyword XPAN in it tells SHIPFLOW that XPAN should be activated in that run of the system. Some commands use sets of mutually exclusive keywords to enable the user to choose between mutually exclusive options. The XPAN command CONTROL is a good example of this.

General rules

  • SHIPFLOW is not case sensitive except when dealing with file names.
  • Commands must be shorter than 800 characters.
  • A command may be continued on a new line by placing a comma , between the keywords. The , is the last character on the line.

Command examples

SINGUL (keel, xyzfwd = [123, 0.0, 1.2], xyzaft = [160.0, 0.0, 7.0])

This example illustrates that commas are required between keywords (together with their associated information) and between vector components. KEEL belongs to a set of mutually exclusive keywords.

/     TRAce( group = 4, stream = 18, istart = 1,
      TRAce     ( group = 4, stream = 8, istart = 7,
      IDISTR = 0, s1 = 0.1, sn = 0.9 ,
      p1 = 1.d-04, Station= 15, dp1 = 0.01,
      jdistr = 1, pn = 0.9)

This example shows what a command could look like in real life. The first line is a fragment that the user has chosen to save to remember what parameters he/she used in a previous but not quite satisfying run of XBOUND. Note also the disregard for the difference between upper/lower case letters. This command is legal but not that easy to read, compare it with this version of the same data:

trace (group = 4, stream = 8, station= 15, istart = 7,
       idistr = 0, s1 = 0.1, sn = 0.9,
       jdistr = 1, p1 = 1.d-04, dp1 = 0.01, pn = 0.9 )

Note that this command is structured by its information. Even if we don't know the exact meaning of all the keyword values it is easy to guess that IDISTR and JDISTR have similar function in SHIPFLOW. The same seems to hold true for the pairs S1-P1 and SN-PN. Note also that JDISTR can no longer be mistaken for a control word and STATION doesn't clutter the set JDISTR, P1, DP1 and PN that are related.

The following is an example of a typical command file that one would set up to execute a SHIPFLOW computation.

/
/ shipflow
/
xflow
    title     ( title="Ferry T = 5.0 m" )
    program   ( xmesh, xpan, xbound, xgrid, xchap )
    hulltype  ( mono, h1gr="xyzhull", fbgr="xyzbulb",fsflow )
    offset    ( file="off_ferry", lpp=100.00 )
    ipos      ( tm=5.0 )
    vship     ( fn=0.275, rn=0.1208e8 )
    prtopt    ( strl )
end

Syntax check

The program has a syntax check for the input commands before any actual computations are started. It is able to catch most errors and prints an error message for each error. An error message from the syntax check may look as follows:

*** Syntax ERROR: Unknown keyword
    Last: module XFLO ( 1), command OFFS ( 1), keyword FILE ( 1)
    Unknown keyword: LPPO

The output is printed after checking the command in the XFLOW section:

offs ( file="off_s60", lppoff=1.0 )

The last line in the error message informs us that the keyword LPPOFF is not a valid keyword for the command OFFS. The second line tells where to find the error in the command file. The last correctly interpreted module, command and keyword is printed. The numbers inside parenthesis are the number of times the module delimiter command has been found in the file so far (must not be more than one), the number of times the command has occurred, and the number of times the keyword has occurred in the command. The syntax check continues to check the following commands in the command file after an error is found. However when the end of the file is found or after 10 detected errors the program always stops the execution.

Manual conventions

This section explains how this manual displays SHIPFLOW commands. Each command description is typically broken up into the sections "General form of command", "Default values" and "Keywords", sometimes followed by "Notes".

General form of command

This section lists all the valid keywords of the command, e.g.:

COMMAND ( key1, key2 = n, key3 = v, key4 = c,
          key5 = [n1, .., nkey2],
                          key6,
                          key7,
                          key8 )

In this example, key1 .. key8 are the keywords that SHIPFLOW will look for in the command COMMAND. Additional information is associated with key2 .. key5 whereas key6 .. key8 and key1 control SHIPFLOW just by being found in the command.

  • key1 may be present or absent in the command and can thus trigger two different responses from SHIPFLOW.
  • n after key2 shows that key2 must be given an integer value.
  • v after key3 shows that key3 must be given a real value.
  • "c" after key4 shows that key4 must be given a character string.
  • key5 gives an example of input of vectors. In this case, key5 is an integer valued vector with key2 elements.
  • key6 .. key8 are three mutually exclusive keywords. By giving one of such a group of keywords, the user can for example choose between different numerical operators.

Default values

This section shows which default values exist for the keywords shown in the previous section of the command description. Keywords not shown in this section don't have any default values and must be given in the command.

If a set of keywords does not have a default listed, then one of the keywords in the set must appear on the command if the command is used. Unless otherwise noted, the default command listed is also the default if the command is not present in the command file.

Keywords

This section gives a detailed description of the meaning and use of each keyword of the command.

A name inside square brackets [ ] gives the group name in the SHIPFLOW GUI.

Where the keyword table has a Note column, the markers (1), (2) … refer to the numbered notes below the table.


  1. This interpolation is the step that makes a "final"/"fine" grid out of the "preliminary"/"coarse" grid. ↩

  2. As a matter of fact, this information also tells XGRID when and if to do the above substeps. ↩