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
appendcommand to fit an appendage grid to the hull or to the shaft - Determine
adirandasidefrom grid slices - Choose between the
shaftandopenshaftcommands - 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:
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¶
- Start a new project.
- Go to Import → Configuration (SHIPFLOW).
- Navigate to the
sourcefolder and selectconfig_t3_part1. - When the file selection dialog appears again, select the offset file
as_off_t3. - 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 |
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.
- Select Object Tree → Configurations → config_t3 → xchap → control.
- Make sure that
maxitis0. - 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):
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:
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:
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.
adir — The rudder is adapted in its spanwise direction, at the root where it meets 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.)
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.
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 |
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).
1.8 Re-run and Inspect the Adapted Grid¶
- Keep
maxitat0in xchap → control. - 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:
1.9 Exercise: Add the Inner Bracket¶
Add an inner bracket and adapt it to both the hull and the shaft:
- Add a
bracketcommand under xflow with its ownid, for exampleinner_bracket. - Give it the same parameters as the outer bracket, except for the
topoint, which is[5, 2.5, 4.85]. - Add two
appendcommands for it — one to["Xgrid"]and one to["shaft"]— with the sameadirandasidevalues as for the outer bracket. - Run the computation with
maxit = 0and 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
appendcommand 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:
2.1 Import the Part 2 Configuration¶
- Start a new project.
- Go to Import → Configuration (SHIPFLOW) and select
config_t3_part2. - When the file selection dialog appears again, select the offset file
as_off_t3. - Save the project.
The configuration contains a rudder, two brackets, five append commands and the open shaft (opensh):
2.2 Inspect the Configuration¶
Rudder — the same geometry 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:
Open shaft (opensh, with id = shaft):
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:
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¶
- Select Object Tree → Configurations → config_t3_part2 → xchap → control.
- Set
maxitto0. - 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:
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:
Troubleshooting¶
General troubleshooting
Problems that can occur in any SHIPFLOW case are collected on one page: Troubleshooting.
Directly relevant to this tutorial:
- "Error: Leak or thin interpolation detected" — the open end of an appendage grid is not inside the hull
- An
idmismatch between related commands —append | idmust match theidof the appendage - The solver does not start when you click Run
Summary¶
- Appendage grids are embedded in the XGRID hull grid; their open ends must lie inside the hull or the shaft.
- The
appendcommand fits an end face of an appendage grid to the hull (Xgrid) or to another appendage grid (shaft).adiris the index direction towards that surface andasideselects its low (1) or high (2) end; grid slices in the post-processor show both. - A bracket needs one
appendcommand per end. openshaftgives a more detailed shaft that is positioned from the propeller and adapted to the hull without anappendcommand.
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¶
- Advanced Tutorial 4: Complex Appendage Modelling — build a component grid around an imported duct, attach it with rudder-type struts and
appendcommands, and run a self-propulsion ensemble investigation. - User manual: APPENDAGE, RUDDER, BRACKET, SHAFT, OPENSHAFT and BOX.
- The Examples Manual lists the examples delivered with SHIPFLOW, including
ropax_selfpropulsion(open shaft, brackets, rudder) andheadbox_rudder_xchap(rudder in a box grid).
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
![Object Editor for the rudder command: id rudder, span 6, origin [0, 3.5, 6], chords [4, 3]](../../images/advanced/tutorial-3/tutorial-3-rudder-parameters.png)
![Object Editor for the bracket command: id outer_bracket, from [5, 3.5, 3], to [5, 4.5, 4.85]](../../images/advanced/tutorial-3/tutorial-3-bracket-parameters.png)
![Object Editor for the shaft command: id shaft, length 12, dir [-1, 0, -0.06], origin [14, 3.5, 3.5], r 0.2](../../images/advanced/tutorial-3/tutorial-3-shaft-parameters.png)







![append command for the rudder: id rudder, adapt ["Xgrid"], adir 3, aside 1](../../images/advanced/tutorial-3/tutorial-3-rudder-xgrid.png)
![append command for the bracket end at the hull: id outer_bracket, adapt ["Xgrid"], adir 3, aside 2](../../images/advanced/tutorial-3/tutorial-3-outer-bracket-xgrid.png)
![append command for the bracket end at the shaft: id outer_bracket, adapt ["shaft"], adir 3, aside 1, cosvmin 0.2](../../images/advanced/tutorial-3/tutorial-3-outer-bracket-shaft.png)



![Object Editor for outer_bracket: from [4.5, 3.5, 2.85], to [4.5, 4.6, 5]](../../images/advanced/tutorial-3/tutorial-3-part2-bracket-outer.png)
![Object Editor for inner_bracket: from [4.5, 3.5, 2.85], to [4.5, 2.5, 4.85]](../../images/advanced/tutorial-3/tutorial-3-part2-bracket-inner.png)
![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]](../../images/advanced/tutorial-3/tutorial-3-part2-openshaft.png)


