Skip to content

Advanced Tutorial 3: Appendage Modelling with Overlapping Grids

Overview

This tutorial introduces appendage modelling in SHIPFLOW with overlapping (chimera) grids. You examine a hull with a rudder, a propeller shaft and a shaft bracket, and use the append command to fit the ends of the appendage grids to the hull and the shaft. Part 1 uses the basic rudder, bracket and shaft commands. Part 2 uses the more detailed openshaft command together with a V-bracket made of two brackets.

Time required: 45–60 minutes
Difficulty: Advanced
Prerequisites: Advanced Tutorial 1; familiarity with XGRID and XCHAP grid generation (Basic Tutorial 5)
SHIPFLOW modules used: XPAN, XGRID, XCHAP

Grid resolution

The examples in this tutorial use coarse grids to keep computation times short. Production cases must be run with a much finer grid resolution.


Learning Objectives

By completing this tutorial, you will be able to:

  • Set up rudder, shaft and bracket appendages in SHIPFLOW
  • Explain how appendage grids are embedded in the hull grid with overlapping grids
  • Recognise the open ends of appendage grids in the 3DView
  • Use the append command to fit an appendage grid to the hull or to the shaft
  • Determine adir and aside from grid slices
  • Choose between the shaft and openshaft commands
  • Check that the adapted appendage grids fit the hull

Background: Overlapping Grids for Appendages

Appendage grids are not used on their own. They are embedded in the grid for the computational domain around the clean hull — usually the grid generated by XGRID — and exchange flow data with it by interpolation where the grids overlap. This overlapping grid approach (also called chimera or overset) gives each appendage its own body-fitted grid.

An appendage grid is open where the appendage meets the hull (a bracket is open at both ends: one end meets the hull, the other the shaft). The open end must lie completely inside the solid body, outside the fluid domain. If part of it lies in the fluid — for example because it crosses the hull surface, or passes through the hull and out the other side — XCHAP detects a leak and stops (see the warning in step 1.4).

The append command (APPENDAGE in the user manual) fits an end face of an appendage grid to a solid boundary, such as the hull or the shaft, by moving the grid points along the grid lines. The appendage grid then ends on that surface instead of passing through it, which lets it resolve the corner flow at the junction.


Appendage Commands

The appendage commands belong in the xflow section of the configuration. Each command can be repeated to add several appendages of the same type. This tutorial uses:

Appendage Command Geometry Used in
Rudder rudder Wing sections along a span; open at the root, which must be inside the hull Parts 1 and 2
Shaft bracket (strut) bracket Wing sections between a from point and a to point; open at both ends, typically one end in the hull and the other in the shaft Parts 1 and 2
Propeller shaft shaft Circular cylinder closed by a hemisphere, placed with origin and dir; the open end must be inside the hull Part 1
Open shaft openshaft (shown as opensh in the Object Tree) Shaft shape defined by a contour, optionally with a hull–shaft fairing; positioned from a propeller and adapted to the hull by the command itself Part 2

The append commands also belong in the xflow section — one command for each appendage end that is adapted.

Appendages in a box grid

Instead of the XGRID hull grid, appendage grids can also be embedded in a rectilinear grid created with the BOX command, so that an appendage can be simulated without the hull. The example headbox_rudder_xchap — a rudder and a headbox in a box grid — is in the examples folder of the SHIPFLOW installation:

C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\headbox_rudder_xchap

Tutorial Files

The configuration and offset files for this tutorial are located in your SHIPFLOW installation:

C:\FLOWTECH\SHIPFLOW<version>-x86_64\tutorials\tutorial-files\AdvancedTraining\Tutorials-v5\Tutorial_3\source\
File Description
config_t3_part1 Basic appendage configuration (rudder, shaft, bracket)
config_t3_part2 Open shaft configuration (rudder, V-bracket, open shaft)
as_off_t3 Offset file (RoPax hull geometry), shared by both parts

Part 1: Basic Appendage Configuration


1.1 Set Up the Project

  1. Start a new project.
  2. Go to Import → Configuration (SHIPFLOW).
  3. Navigate to the source folder and select config_t3_part1.
  4. When the file selection dialog appears again, select the offset file as_off_t3.
  5. Save the project.

1.2 Examine the Appendage Parameters

The imported configuration appears in the Object Tree as config_t3, as in the screenshots. It already contains a rudder, a bracket and a shaft. Select each command under Object Tree → Configurations → config_t3 → xflow and review its parameters in the Object Editor:

Command Parameters
rudder id = rudder, span = 6, angle = 0, rmax = 0.5, origin = [0, 3.5, 6], s = [0, 1], c = [4, 3], xle = [1.5, 0.5]
bracket id = outer_bracket, from = [5, 3.5, 3], to = [5, 4.5, 4.85], rmax = 0.8, station = [0, 1], c = [1, 1], xle = [0.5, 0.5]
shaft id = shaft, length = 12, dir = [-1, 0, -0.06], origin = [14, 3.5, 3.5], r = 0.2

Object Editor for the rudder command: id rudder, span 6, origin [0, 3.5, 6], chords [4, 3]

Object Editor for the bracket command: id outer_bracket, from [5, 3.5, 3], to [5, 4.5, 4.85]

Object Editor for the shaft command: id shaft, length 12, dir [-1, 0, -0.06], origin [14, 3.5, 3.5], r 0.2

The bracket starts inside the shaft (from) and ends inside the hull (to). The configuration also contains one append command, which you set up in step 1.6.

All parameters are described in the user manual under RUDDER, BRACKET and SHAFT.


1.3 Check the Grid Resolution

Make sure that both the panel mesh for XPAN and the XGRID volume grid are set to coarse:

  • Panel mesh density: xflow → hull → xmdens (see HULLTYPE)
  • Volume grid density: xgrid → size → xgdens (see SIZE)

1.4 Run the Initial Grid Generation

Run XCHAP with zero iterations. This generates the grids and the overlap information without computing the flow.

  1. Select Object Tree → Configurations → config_t3 → xchap → control.
  2. Make sure that maxit is 0.
  3. Run the computation.

When the computation has finished, go to Connect → Post-Processing and display the component grids listed under Results → shfComputation1 → XCHAP → Component Grids (rudder_1, outer_bracket_1 and shaft_1):

Side view of the hull with the rudder, bracket and shaft grids; the three component grids are marked in the Post-Processing tree

Then look at the grid from inside the hull. The appendage grids pass through the hull surface, and their open ends lie inside the hull:

Grid seen from inside the hull: the open ends of the rudder, bracket and shaft grids (green boxes) lie inside the hull

No append command has been set up yet, so the appendage grids simply pass through the hull and shaft surfaces.

Leak error

If the open end of an appendage grid is not completely inside the hull, XCHAP stops with:

****************************************************************
Error: Leak or thin interpolation detected
****************************************************************

Move or resize the appendage so that its open end lies completely inside the hull, then run again. The OVERLAP command has options for locating a leak.


1.5 Choose the append Parameters

Each append command adapts one end face of one appendage grid. To adapt more than one end of the same grid, use one append command per end. The parameters are:

Parameter Meaning
id The id of the appendage whose grid is adapted
adapt The grid(s) to adapt to, as a list of names, for example ["Xgrid"] for the hull grid
adir The index direction of the appendage grid in which it is adapted: 1 = L, 2 = M, 3 = N
aside The end of that direction that is adapted: 1 = low end, 2 = high end

The rest of this step shows how to find the values for the rudder.

id — Use exactly the id given in the appendage command under xflow, here rudder:

The id of the rudder command and the id of the append command must match

adapt — The names of the component grids from the first run are listed under Connect → Post-Processing → Results → shfComputation1 → XCHAP → Component Grids. Use the name without the trailing _1: the hull grid Xgrid_1 is entered as Xgrid.

Component Grids in the Post-Processing tree, with rudder_1 and Xgrid_1 marked

adir — The rudder is adapted in its spanwise direction, at the root where it meets the hull:

Rudder grid seen from below, with an arrow along the span pointing to the root at the hull

To find which index direction runs along the span, add a grid-slice visualisation (gridSlices1) to the rudder grid rudder_1 and move the L, M and N sliders. The N slices cut the rudder at constant span, so N is the spanwise direction and adir = 3. (In rudder and bracket grids the third direction is the axial, or spanwise, one — compare DIMENSION in RUDDER and BRACKET.)

Grid slice N = 44 of the rudder grid: an N slice cuts the rudder at constant span

aside — Move the N slider to 0. The slice now lies at the root of the rudder, where it meets the hull, so the root is the low end of the N direction and aside = 1. If the face to adapt were at the high end of N, aside would be 2.

Grid slice N = 0 lies at the rudder root, next to the hull


1.6 Append the Rudder to the Hull

Use the append command under Object Tree → Configurations → config_t3 → xflow and set:

Parameter Value Reason
id rudder The id of the rudder command
adapt ["Xgrid"] The hull grid
adir 3 Spanwise (N) direction of the rudder grid
aside 1 Low end of N: the root of the rudder

append command for the rudder: id rudder, adapt ["Xgrid"], adir 3, aside 1


1.7 Append the Bracket to the Hull and the Shaft

The bracket is open at both ends, so it gets two append commands with the same id. Its spanwise direction is also N (adir = 3) and runs from the from point (low end, inside the shaft) to the to point (high end, inside the hull). Add two append commands under xflow and set:

Parameter Bracket to hull Bracket to shaft
id outer_bracket outer_bracket
adapt ["Xgrid"] ["shaft"]
adir 3 3
aside 2 (the to end, at the hull) 1 (the from end, at the shaft)
cosvmin — 0.2

cosvmin is the minimum cosine between the grid line and the surface normal where the adaptation takes place (see APPENDAGE).

append command for the bracket end at the hull: id outer_bracket, adapt ["Xgrid"], adir 3, aside 2

append command for the bracket end at the shaft: id outer_bracket, adapt ["shaft"], adir 3, aside 1, cosvmin 0.2


1.8 Re-run and Inspect the Adapted Grid

  1. Keep maxit at 0 in xchap → control.
  2. Run the computation again.

When the computation has finished, examine the grid again. The rudder grid now ends on the hull surface, and the bracket grid ends on the hull at one end and on the shaft at the other:

Side view after adaptation: the rudder root and both ends of the bracket are fitted to the hull and the shaft (green boxes)


1.9 Exercise: Add the Inner Bracket

Add an inner bracket and adapt it to both the hull and the shaft:

  1. Add a bracket command under xflow with its own id, for example inner_bracket.
  2. Give it the same parameters as the outer bracket, except for the to point, which is [5, 2.5, 4.85].
  3. Add two append commands for it — one to ["Xgrid"] and one to ["shaft"] — with the same adir and aside values as for the outer bracket.
  4. Run the computation with maxit = 0 and check the grid.

The configuration in Part 2 contains a complete inner and outer bracket that you can compare with.


Part 2: Detailed Open Shaft Configuration

The OPENSHAFT command models a propeller shaft in more detail than shaft:

  • The shaft shape is defined by a contour instead of a plain cylinder, and a hull–shaft fairing can be added.
  • The position and direction of the shaft are taken from an associated propeller (prop).
  • The shaft grid is split in two, and the second part is adapted to the hull by the command itself, so no append command is needed for the shaft.

Open shaft with a fairing

The example ropax_selfpropulsion in the examples folder of the SHIPFLOW installation uses openshaft with a fairing:

C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\ropax_selfpropulsion

2.1 Import the Part 2 Configuration

  1. Start a new project.
  2. Go to Import → Configuration (SHIPFLOW) and select config_t3_part2.
  3. When the file selection dialog appears again, select the offset file as_off_t3.
  4. Save the project.

The configuration contains a rudder, two brackets, five append commands and the open shaft (opensh):

Object Tree of config_t3_part2: rudder, two bracket commands, five append commands and opensh under xflow


2.2 Inspect the Configuration

Rudder — the same geometry as in Part 1:

Object Editor for the rudder in config_t3_part2: same values as in Part 1

V-bracket — two brackets, outer_bracket and inner_bracket, that start from the same point at the shaft, [4.5, 3.5, 2.85], and end at different points in the hull:

Object Editor for outer_bracket: from [4.5, 3.5, 2.85], to [4.5, 4.6, 5]

Object Editor for inner_bracket: from [4.5, 3.5, 2.85], to [4.5, 2.5, 4.85]

Open shaft (opensh, with id = shaft):

Object Editor for opensh: id shaft, prop ID1, xpos -1.5, xsplit 4.9, ytshaft 0.5, dis1 [30, 20, 21], dis2 [60, 20, 21]

The main parameters are:

Parameter Value Meaning
prop ID1 The propeller that gives the position and direction of the shaft
xpos -1.5 Translation of the shaft along its axis (positive towards the bow)
xsplit 4.9 Position where the shaft grid is split in two; only the second shaft grid is adapted to the hull
ytshaft 0.5 y+ target for the shaft grids
dis1, dis2 [30, 20, 21], [60, 20, 21] Dimensions of the first and second shaft grids (along the shaft, out from the shaft, around the shaft)
grs1, grs2 1.02 Growth factors of the cell thickness in the two shaft grids

The shaft contour is edited with the pencil buttons (xs1, ys1, pts1). The diagram shows the open shaft parameters, including the fairing parameters that this tutorial does not use:

OPENSHAFT parameters: XSPLIT divides the shaft into the first and second shaft grids, -XPOS shifts the shaft along its axis from the propeller position (XSH, YSH, ZSH) and direction (XDIR, YDIR, ZDIR); the fairing is adapted to the hull and the collar grids to the shaft

See OPENSHAFT in the user manual for all parameters.


2.3 Review the Append Commands

All appendages in this configuration are already connected to their neighbouring surfaces:

Appendage Adapted to Number of append commands
Rudder Hull 1
Outer bracket Hull and shaft 2
Inner bracket Hull and shaft 2
Open shaft Hull 0 (adapted by openshaft itself)

This gives five append commands in total. The open shaft needs none: openshaft adapts its second shaft grid (and a fairing, if one is defined) to the grid named in its hull parameter, which is Xgrid by default.

To adapt a bracket to an open shaft, name the open shaft grid that the bracket meets in adapt, using the component grid name without the trailing _1. In this configuration the bracket ends at the shaft are adapted to the first shaft grid of the open shaft shaft, so their append commands use adapt = ["shaft_shaft1"] — as the ropax_selfpropulsion example does for its brackets.


2.4 Run and Inspect the Results

  1. Select Object Tree → Configurations → config_t3_part2 → xchap → control.
  2. Set maxit to 0.
  3. Run the computation.

When the computation has finished, examine the grid. The rudder, both brackets and the shaft are adapted to the hull, and the brackets are also adapted to the shaft. The open shaft appears as two component grids, shaft_shaft1_1 and shaft_shaft2_1:

Adapted rudder, V-bracket and open shaft seen from below the hull; the two open shaft grids are marked in the Component Grids list

Look at the grid from inside the hull to check that no appendage grid passes through the hull surface. Only the intersection curves of the rudder, the two brackets and the shaft with the hull are visible:

Grid seen from inside the hull: only the intersection curves of the rudder, brackets and shaft are visible (green boxes)


Troubleshooting

General troubleshooting

Problems that can occur in any SHIPFLOW case are collected on one page: Troubleshooting.

Directly relevant to this tutorial:


Summary

  • Appendage grids are embedded in the XGRID hull grid; their open ends must lie inside the hull or the shaft.
  • The append command fits an end face of an appendage grid to the hull (Xgrid) or to another appendage grid (shaft). adir is the index direction towards that surface and aside selects its low (1) or high (2) end; grid slices in the post-processor show both.
  • A bracket needs one append command per end.
  • openshaft gives a more detailed shaft that is positioned from the propeller and adapted to the hull without an append command.

The append commands used in Part 1:

id adapt adir aside Other
rudder ["Xgrid"] 3 1 —
outer_bracket ["Xgrid"] 3 2 —
outer_bracket ["shaft"] 3 1 cosvmin = 0.2

Next Steps

Getting help: send questions about this tutorial to [email protected]. Product information: shipflow.se.


Tutorial updated: June 2026
SHIPFLOW version: 8.0.37
Document version: 1.0