Tutorial 2: Creating Design Variants¶
Overview¶
In this tutorial you compute the Athena hull with XPAN, create a design variant with the dry-transom option and compare it with the baseline design. You then run a speed series for the variant with an ensemble investigation and plot the wave resistance against speed.
Time required: 45 minutes
Difficulty: Intermediate
Prerequisites: Complete Tutorial 1 first
SHIPFLOW modules used: XPAN
Learning Objectives¶
By completing this tutorial, you will be able to:
- Create a design variant and switch between designs
- Compare the results of two designs
- Create a design variable and link it to a configuration parameter
- Create an evaluation parameter from a computed result
- Run a speed series with an ensemble investigation and plot the results
Ship Data¶
| Ship data | Value |
|---|---|
| Hull | Athena, offset file off_ath |
| Length between perpendiculars, Lpp | 50 m |
| Draught | 1.57 m |
| Design speed | 27 knots (Fn = 0.63), computed at full scale |
| Computation | Free surface, free sinkage and trim |
| Variants | With and without the dry-transom option |
| Investigation | Speed variation from 15 to 27 knots |
Tutorial Structure¶
- Part 1: baseline design and a design variant with the transom option
- Part 2: speed variation of the variant with an ensemble investigation
Tutorial Files¶
The offset file is in the examples\geometry folder of your SHIPFLOW installation:
Part 1: Design Variants With and Without Transom¶
The Athena has a transom stern. In the baseline design the hull is computed without the transom
option. In the variant you add the option tran to the
HULLTYPE command (keyword TRANSOM): the
hull is then cut at the last offset station that has a point below the wavy free surface, and a
transom panel group is generated on the free surface behind the transom.
1.1 Set Up the Baseline¶
The baseline is set up in the same way as the RoPax case in Tutorial 1, Part 4, starting from an offset file. The steps are summarised below.
Import the Offset File¶
-
Start SHIPFLOW Design5. On the Import tab, click Offsets (NAPA/SHIPFLOW).
-
Browse to the
examples\geometryfolder of your SHIPFLOW installation, selectoff_athand click Open. Keep the pre-selected offset groups and click OK. -
The imported offset
SHF_Import_off_athis listed in the Model tree and its stations are shown in the 3DView. -
Save the project, for example as
Tutorial_2_1.
Create the SHIPFLOW Configuration¶
-
Switch to the Connect workspace and click Shipflow on the Connection tab.
-
Select Configurations → configurationShf1 → xflow → program, choose
xpanin the drop-down list and click +.
Add the Offset File and the Main Dimensions¶
-
Select
xflow, chooseoffsetin the Object Editor and click +. -
Add the parameters
lppandzoritooffsetand set them to50and1.57. -
Add the parameter
filetooffset. Dragas_off_athfrom Model → CAD → SHF_Import_off_ath into its text box and complete the expression so that it readsThen click Evaluate.
| Parameter | Value | Meaning |
|---|---|---|
lpp |
50 |
Length between perpendiculars (m) |
zori |
1.57 |
Draught (m) |
Set the Hull and Speed Options¶
-
Select Configurations → configurationShf1 → xflow → hull, add
xmdensand set it tocoarse. -
Add
fsflowtohulland set it tofsflow.Set fsflow explicitly
The GUI default is
nofsfl(no free surface). Withoutfsflow, XPAN computes no waves and the wave resistance is zero. -
Select
vship, addvknotand set it to27. -
Select
hullagain, addh1grand set it toathena.h1grtells XPAN which offset group is the main hull.athenais the label of the offset group inoff_ath; the name must match it exactly.
Run the Baseline¶
- Select Computations → shfComputation1 and click the Run button
. -
Follow the progress in the TaskMonitor. With the coarse grid the computation takes about 1–2 minutes.
-
When the computation has finished, the results are shown in the TableViewer.
-
Save the project (Ctrl+S).
1.2 Create the Transom Variant¶
-
Switch to the Optimize workspace (left bar). On the Optimization tab, click New Design and name the new design
transom.The new design becomes the current design automatically. Its name is shown in the green bar at the top of the Object Tree; it can take a moment before the name is updated. All configuration changes you make from now on apply to
transomonly —baselineremains unchanged. -
In the Connect workspace, select Configurations → configurationShf1 → xflow → hull, choose
tranin the drop-down list and click +. -
Run
shfComputation1again (about 1–2 minutes) and save the project.
1.3 Compare the Designs¶
-
Make sure that
transomis the current design. Open Connect → Post-Processing; the 3DView shows the wave pattern of the transom design. -
Double-click
baselinein the list of designs at the bottom of the Object Tree panel. The 3DView now shows the wave pattern of the baseline.
Compare the Numbers¶
Open the TableViewer (View → New → Viewer → Table Viewer if it is not visible) and compare the results of the two designs:
| Result (TableViewer label) | Baseline | Transom |
|---|---|---|
Wave resistance coefficient (CW) |
0.332E-03 | 0.829E-03 |
Trim angle in degrees (TRIMAN) |
0.623 | 0.911 |
Sinkage at Lpp/2 as a fraction of Lpp (ZSINK) |
-0.118E-02 | -0.122E-02 |
With the transom option the computed wave resistance is clearly higher and the trim angle larger. The wave patterns also differ behind the stern: in the baseline, the region directly behind the transom is not covered by free-surface panels (highlighted box), while in the variant the transom group covers it.
Save an Image of the View¶
To save the current view as an image, click the camera icon in the toolbar at the bottom of the 3DView,
and save the file, for example as athena-wave-pattern.png.
Part 2: Speed Variation Using an Ensemble Investigation¶
In this part you run the transom design at seven speeds from 15 to 27 knots and collect the wave resistance coefficient of each case.
2.1 Prepare the Project¶
- Continue with the project from Part 1 and save it under a new name (Project → Save as), for
example
Tutorial_2_2. -
Make sure that
transomis the current design (green bar at the top of the Object Tree). If it is not, double-clicktransomin the list of designs to activate it.Check the current design
The ensemble investigation creates its cases from the current design. Make sure it is
transom.
2.2 Create a Design Variable for the Speed¶
-
In the Model workspace, on the CAD tab, click Design Variable (in the Parameters group).
-
Name the new design variable
speedand set its Value to27. -
Replace the fixed speed in Configurations → configurationShf1 → xflow → vship with the design variable: drag
speedfrom the Model tree into thevknotfield, or selectspeedin the drop-down list of the field. The field now showsspeed.
The speed in the configuration now follows the value of the design variable, which the ensemble investigation changes for each case.
2.3 Create an Evaluation Parameter for CW¶
- If the transom design has no results yet, run
shfComputation1once. - Open the TableViewer and find the table transom shfComputation1: XPAN.
-
Double-click the value of
CW— not the label in the left column. SHIPFLOW creates the parametereval_CW.
eval_CW is the result that the ensemble investigation records for each case.
2.4 Set Up the Ensemble Investigation¶
-
In the Optimize workspace, on the Optimization tab, click Ensemble Investigation (in the Design Space Exploration group).
-
Select the new
ensembleInvestigation1and set it up in the Object Editor:- Design Variables: select
speedin the Design Variable column and enter15,17..27in the Series column. - Evaluations: select
eval_CWin the Evaluation column.
- Design Variables: select
The series 15,17..27 starts at 15 knots and continues in steps of 2 knots (17 − 15) up to 27 knots.
This gives 7 cases: 15, 17, 19, 21, 23, 25 and 27 knots.
2.5 Run the Ensemble Investigation¶
- Select Design Engines → ensembleInvestigation1 and click the Run button
in its
Object Editor. -
The results window lists the cases (
ensembleInvestigation1_01_des0000to…_des0006). Cases that have not finished yet are marked pending; their values are filled in as they finish.
With the coarse grid each case takes about 1–2 minutes, so the whole series takes roughly 7–14 minutes.
2.6 Analyse the Results¶
When all cases have finished, the results window shows the speed and eval_CW of each case:
| Speed (knots) | Fn | CW |
|---|---|---|
| 15 | 0.35 | 3.649E-04 |
| 17 | 0.39 | 6.977E-04 |
| 19 | 0.44 | 9.768E-04 |
| 21 | 0.49 | 1.158E-03 |
| 23 | 0.53 | 1.142E-03 |
| 25 | 0.58 | 1.005E-03 |
| 27 | 0.63 | 8.294E-04 |
Plot the Results¶
-
In the results window, click the Generate interactive 3D-diagrams button.
-
In the diagram dialog, select
speedas the Data Source of the X-Axis andeval_CWas the Data Source of the Y-Axis, then click Ok.
CW rises steeply from 15 to 21 knots, reaches its maximum between 21 and 23 knots (Fn ≈ 0.49–0.53) and falls again towards 27 knots. This maximum is the wave-resistance hump; at the design speed of 27 knots (Fn ≈ 0.63) the Athena runs beyond it.
To process the values in another program, click the + button in the results window to export them to a file.
Inspect the Individual Cases¶
-
Click the Design Viewer button in the results window.
-
The Design Viewer shows the results of all cases side by side, one column per case: the pressure distribution on the hull, the wave pattern, and line plots of the wave profile and the wave cuts.
-
Save and close the project.
Troubleshooting¶
General troubleshooting
Problems that can occur in any SHIPFLOW case are collected on one page: Troubleshooting.
Directly relevant to this tutorial:
Summary¶
In this tutorial you:
- created a design variant (
transom) of the baseline design and compared the wave patterns and results of the two designs; - linked a design variable (
speed) tovship | vknotand created an evaluation parameter (eval_CW) from a result in the TableViewer; - ran a speed series with an ensemble investigation and plotted CW against speed.
Next Steps¶
- Tutorial 3: Automatic Generation of Offset Files — Twin-Skeg Example — let SHIPFLOW generate the offset file for a twin-skeg hull from IGES geometry.
- User manual: HULLTYPE (including
TRANSOM) and VSHIP.
Getting help: send questions to [email protected]. Product information: shipflow.se.
Tutorial updated: May 2026
SHIPFLOW version: 8.0.37
Document version: 2.0






























