Skip to content

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:

C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\geometry\off_ath

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

  1. Start SHIPFLOW Design5. On the Import tab, click Offsets (NAPA/SHIPFLOW).

    Import tab with Offsets (NAPA/SHIPFLOW) highlighted

  2. Browse to the examples\geometry folder of your SHIPFLOW installation, select off_ath and click Open. Keep the pre-selected offset groups and click OK.

  3. The imported offset SHF_Import_off_ath is listed in the Model tree and its stations are shown in the 3DView.

    Model tree with SHF_Import_off_ath and the Athena stations in the 3DView

  4. Save the project, for example as Tutorial_2_1.

Create the SHIPFLOW Configuration

  1. Switch to the Connect workspace and click Shipflow on the Connection tab.

    Connect workspace with the Shipflow button on the Connection tab

  2. Select Configurations → configurationShf1 → xflow → program, choose xpan in the drop-down list and click +.

    program command with xpan added

Add the Offset File and the Main Dimensions

  1. Select xflow, choose offset in the Object Editor and click +.

    xflow selected and offset chosen in the Object Editor

  2. Add the parameters lpp and zori to offset and set them to 50 and 1.57.

    offset command with lpp = 50 and zori = 1.57

  3. Add the parameter file to offset. Drag as_off_ath from Model → CAD → SHF_Import_off_ath into its text box and complete the expression so that it reads

    SHF_Import_off_ath|as_off_ath.exportSHF("off_ath")
    

    Then click Evaluate.

    offset command with the file expression for off_ath, lpp = 50 and zori = 1.57

Parameter Value Meaning
lpp 50 Length between perpendiculars (m)
zori 1.57 Draught (m)

Set the Hull and Speed Options

  1. Select Configurations → configurationShf1 → xflow → hull, add xmdens and set it to coarse.

    hull command with xmdens = coarse

  2. Add fsflow to hull and set it to fsflow.

    hull command with fsflow = fsflow and xmdens = coarse

    Set fsflow explicitly

    The GUI default is nofsfl (no free surface). Without fsflow, XPAN computes no waves and the wave resistance is zero.

  3. Select vship, add vknot and set it to 27.

    vship command with Vknot = 27

  4. Select hull again, add h1gr and set it to athena.

    hull command with h1gr = athena, fsflow and xmdens

    h1gr tells XPAN which offset group is the main hull. athena is the label of the offset group in off_ath; the name must match it exactly.

Run the Baseline

  1. Select Computations → shfComputation1 and click the Run button Run button.
  2. Follow the progress in the TaskMonitor. With the coarse grid the computation takes about 1–2 minutes.

    TaskMonitor with the running XPAN computation of the baseline design

  3. When the computation has finished, the results are shown in the TableViewer.

    TableViewer with the baseline results; CW, TRIMAN and ZSINK are highlighted

  4. Save the project (Ctrl+S).


1.2 Create the Transom Variant

  1. Switch to the Optimize workspace (left bar). On the Optimization tab, click New Design and name the new design transom.

    Optimization tab with New Design; the new design transom is listed under baseline

    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 transom only — baseline remains unchanged.

  2. In the Connect workspace, select Configurations → configurationShf1 → xflow → hull, choose tran in the drop-down list and click +.

    hull command of the transom design with the tran option added

  3. Run shfComputation1 again (about 1–2 minutes) and save the project.


1.3 Compare the Designs

  1. Make sure that transom is the current design. Open Connect → Post-Processing; the 3DView shows the wave pattern of the transom design.

    Wave pattern of the transom design in the 3DView

  2. Double-click baseline in the list of designs at the bottom of the Object Tree panel. The 3DView now shows the wave pattern of the baseline.

    Wave pattern of the baseline design; the region behind the transom is highlighted

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.

3DView toolbar with the camera icon highlighted


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

  1. Continue with the project from Part 1 and save it under a new name (Project → Save as), for example Tutorial_2_2.
  2. Make sure that transom is the current design (green bar at the top of the Object Tree). If it is not, double-click transom in the list of designs to activate it.

    Optimize workspace with transom as the current design

    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

  1. In the Model workspace, on the CAD tab, click Design Variable (in the Parameters group).

    CAD tab with the Design Variable button highlighted

  2. Name the new design variable speed and set its Value to 27.

    Design variable speed with Value = 27

  3. Replace the fixed speed in Configurations → configurationShf1 → xflow → vship with the design variable: drag speed from the Model tree into the vknot field, or select speed in the drop-down list of the field. The field now shows speed.

    vship command with Vknot linked to the design variable speed

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

  1. If the transom design has no results yet, run shfComputation1 once.
  2. Open the TableViewer and find the table transom shfComputation1: XPAN.
  3. Double-click the value of CW — not the label in the left column. SHIPFLOW creates the parameter eval_CW.

    TableViewer with the CW value of the transom design selected and the new parameter eval_CW in the Object Tree

eval_CW is the result that the ensemble investigation records for each case.


2.4 Set Up the Ensemble Investigation

  1. In the Optimize workspace, on the Optimization tab, click Ensemble Investigation (in the Design Space Exploration group).

    Optimization tab with the Ensemble Investigation button highlighted

  2. Select the new ensembleInvestigation1 and set it up in the Object Editor:

    • Design Variables: select speed in the Design Variable column and enter 15,17..27 in the Series column.
    • Evaluations: select eval_CW in the Evaluation column.

    Object Editor of ensembleInvestigation1 with the design variable speed, the series 15,17..27 and the evaluation eval_CW

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

  1. Select Design Engines → ensembleInvestigation1 and click the Run button Run button in its Object Editor.
  2. The results window lists the cases (ensembleInvestigation1_01_des0000 to …_des0006). Cases that have not finished yet are marked pending; their values are filled in as they finish.

    Ensemble results window with two finished cases and five pending ones

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:

Ensemble results table with speed and eval_CW for the seven cases

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

  1. In the results window, click the Generate interactive 3D-diagrams button.

    Results window toolbar with the Generate interactive 3D-diagrams button highlighted

  2. In the diagram dialog, select speed as the Data Source of the X-Axis and eval_CW as the Data Source of the Y-Axis, then click Ok.

    Diagram dialog with speed on the X-Axis and eval_CW on the Y-Axis

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

  1. Click the Design Viewer button in the results window.

    Results window toolbar with the Design Viewer button highlighted

  2. 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.

    Design Viewer with one column of result images per case

  3. 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) to vship | vknot and 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

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


Tutorial updated: May 2026
SHIPFLOW version: 8.0.37
Document version: 2.0