Skip to content

Standard Cases

The idea behind the Standard Case concept is to simplify the input for commonly used ship types and offset group configurations. The program will automatically choose suitable default values for numerical parameters and mesh generation based on ship speed, geometry etc. The default values for the mesh generation selected by the program must be considered as a starting point for a preliminary computation. The accuracy of the computed results can in most cases be improved further if the mesh is refined compared to the Standard Case. It is important to check carefully the computational model suggested by the Standard Case procedure since it cannot be guaranteed that the procedure will work for all possible cases.

Mono-hull

This Standard Case covers the most common case for a SHIPFLOW user. It can handle a mono-hull consisting of one to three offset groups for the main hull and one offset group each for the fore bulb, the stern bulb and the overhang. See the figure below.

Mono-hull offset groups: H1GR, H2GR and H3GR along the main hull from bow to stern, the fore bulb FBGR, the stern overhang OGRP and the aft bulb ABGR, numbered 1 to 6 in XMESH panel group order

A command file for the case above would typically look like:

XFLOW
    TITLE     ( TITLE="MONO-HULL CASE" )
    PROGRAM   ( XPAN, XBOUND, XGRID, XCHAP)
    HULLTYPE  ( MONO, FSFLOW, TRANSOM, WSING, BDENS= ,FDENS = ,
                H1GR="..." ,H2GR="..." ,H3GR="..." ,
                OGRP="..." , FBGR="..." ,ABGR="..." )
    OFFSET    ( FILE="..." )
    VSHIP     ( FN=[] , RN =[] )
END

XGRID
    SIZE      ( FINE )
END

XCHAP
    PARALLEL  ( NPROC= )
    CONTROL   ( MAXITER=300, KRYLOV )
END

HULLTYPE keywords

Comments on the keywords of the HULLTYPE command in the example:

Keyword Comment
H1GR, H2GR, H3GR Should be assigned the labels of the three offset groups in the offset file that describe the main hull. They must be in the order shown in the figure above. At least H1GR must be specified. The mono-hull Standard Case is triggered by the presence of H1GR.
OGRP Should be assigned the label of the offset group in the offset file that describes the stern overhang. Not mandatory.
FBGR Should be assigned the label of the offset group in the offset file that describes the fore bulb. Not mandatory.
ABGR Should be assigned the label of the offset group in the offset file that describes the aft bulb. Not mandatory.
FSFLOW Specifies that a free-surface is included in the potential flow computation.
TRANSOM Specifies that the free-surface panelization is generated for a transom stern case. A special TRANSOM group is attached behind the transom stern.
BDENS, FSDENS Affect the number of panels on the hull and free-surface, respectively.
WSING Specifies that the grid generated by XGRID has a grid singularity line in the water-line plane. The line leaves the hull at the point where the y-coordinate is 95% of the half-breadth. A singularity line in the vertical symmetry plane is always generated. The line starts near the first point of the last frame of panel groups H1GR, H2GR or H3GR.

Free-surface panelization

XMESH automatically generates panel groups for the specified offset groups as well as on the free-surface. The numbering of these panel groups starts with one for H1GR, then follows H2GR, H3GR, OGRD, FBGR, ABGR, free-surface and transom. Thus, if a hull consists of H1GR, OGRD, FBGR and ABGR, the corresponding panel group number (GRNO) in XMESH is 1, 2, 3 and 4, respectively. The number of panels on the free-surface is determined by the Froude number, Fn.

Standard Case free-surface panelization seen from above: panels uniformly distributed in the x-direction and stretched towards the hull in the transverse (y) direction

  • A uniform panel distribution is always used in the x-direction. The number of panels is a function of Fn.
  • The panels are stretched towards the hull in the transverse (y) direction. The number of panels is a function of Fn, but the number is maximized to 15 to reduce the total number of free-surface panels. The size of the first panel at the hull, Δy, is 0.02*Lpp.
  • The same free-surface panelization is used for linear and non-linear computations.
  • The hull is extended a small distance above the free-surface in non-linear computations. Two panels are used in the girthwise direction to represent the part above the free-surface.

The number of panels per wave length, the free-surface extension and the total number of free-surface panels are all functions of the Froude number.

The panel density can be changed individually for the hull and the free-surface.

XBOUND, XGRID and XCHAP

XBOUND starts a group of streamlines and computes the turbulent boundary layer on H1GR.

XGRID creates the grid for XCHAP. The keyword FINE in the SIZE command changes the default values in XGRID so that in many cases a sufficiently good grid is obtained. Keywords COARSE and MEDIUM can also be used.

XCHAP solves the viscous equations. For a fine grid XCHAP usually runs around 100 iterations when run with KRYLOV (a GMRES solver is used), but it is wise to set MAXIT to a higher number and let XCHAP automatically stop when the convergence criteria are reached. In order to speed up the calculation, multi-processing with MPI can be turned on with the PARALLEL command.

Note

Multi-processing or multi-threading is only possible on multi-core computers. Never use more processes or threads than there are cores in the computer, since this will only slow down XCHAP.

All default values may be changed by adding commands in the command file.