Skip to content

Advanced Tutorial 2: Bulb and Forebody Optimisation

Overview

In this tutorial you parametrise the bulbous bow and the forebody shoulder of a hull with delta shift transformations in CAESES. CAESES then runs SHIPFLOW XPAN automatically for every design variant, first to explore the design space with an ensemble investigation and Sobol sampling, then to optimise the hull for minimum wave resistance with the NSGA-II genetic algorithm.

The tutorial has four parts:

  1. Parametrise the bulb shape with two curve-based delta shifts (two design variables)
  2. Explore the bulb design space with an ensemble investigation and Sobol sampling
  3. Parametrise the forebody shoulder with a surface delta shift (two more design variables)
  4. Optimise all four design variables together with NSGA-II

Time required: 2–3 hours
Difficulty: Advanced
Prerequisites: XPAN computations (Basic Tutorial 1), design variables and ensemble investigations (Basic Tutorial 2); familiarity with the CAESES CAD workspace
SHIPFLOW modules used: XPAN

CAESES required

This tutorial needs the full CAESES environment from Friendship Systems together with SHIPFLOW. SHIPFLOW Design5 has an Optimize workspace, but the tutorial uses options and tools that only the full CAESES provides, so it cannot be done in SHIPFLOW Design4 or Design5.


Learning Objectives

By completing this tutorial, you will be able to:

  • Parametrise a bulbous bow with curve-based delta shift transformations
  • Parametrise a forebody shoulder with a surface delta shift transformation
  • Combine several transformations in a delta sum
  • Apply the transformations to the hull through image offset groups
  • Define constraints on LOA and displacement
  • Explore a design space with an ensemble investigation and Sobol sampling
  • Set up and run an NSGA-II optimisation with four design variables

Background: Parametric Hull Deformation

CAESES deforms geometry with transformation objects, without changing the original data. This tutorial builds the parametrisation in two stages:

Stage Region Deformation type Design variables
Part 1 Bulb Curve-based delta shifts delta_length, delta_height
Part 3 Forebody shoulder Surface delta shift lower, higher

The transformations of both stages are combined in one delta sum. The delta sum is applied to image offset groups: deformed copies of the original offset groups, which themselves are never modified.

Non-overlapping deformation regions

The bulb delta shifts act between x = 162 m and x = 169 m (the bulb), the surface delta shift between x = 96.5 m and x = 161.5 m (the forebody shoulder). Because the regions do not overlap, all transformations can be combined in one delta sum without interfering with each other.


What is a Delta Shift Transformation?

A curve-based delta shift uses a curve as a function that displaces geometry along a chosen axis:

  • the abscissa of the curve (here its x-coordinate) is the position along the hull, that is, where the geometry is displaced
  • the ordinate of the curve (here its z-coordinate) is the size of the displacement at that position
  • the Delta X, Delta Y or Delta Z check box sets the direction of the displacement

A surface delta shift works the same way with a surface instead of a curve, so the displacement can vary in two directions — here along the hull and with height.

In both cases the deformation is controlled by design variables linked to coordinates of the control points of the curve or surface.


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_2\source\
File Description
config_t2_1 SHIPFLOW configuration
off_t2_1 Offset file (hull geometry)

Part 1: Parametrising the Bulb Shape


1.1 Set Up the Project

  1. Start a new project.
  2. Go to Import → Configuration (SHIPFLOW) and select config_t2_1. When a second file dialog opens, select the offset file off_t2_1, which is in the same folder.
  3. Save the project as tut2.
  4. Check which SHIPFLOW executable CAESES starts: in the Connect workspace, select Computations → shfComputation1, click the pencil icon next to Application, and check that Executable points to shipflow.bat in the bin folder of your SHIPFLOW installation.

    Object Editor of shfComputation1: the pencil icon next to Application opens the application settings, where Executable points to shipflow.bat

  5. Turn off the automatic report: select Configurations → config_t2_1, add the command xpost → control and set onoff to off.

    The command xpost → control with onoff = off in the configuration config_t2_1

Why turn off the report?

By default, XPOST writes a report after every computation (see XPOST CONTROL). In an ensemble investigation or an optimisation every variant is a computation of its own, so turning the report off saves time on every variant.


1.2 Run the Baseline Computation

Select Computations → shfComputation1 and click the Run button Run button.

This computes the wave resistance of the original hull. Its results are needed in the next step, where the evaluation parameters are created from them.


1.3 Create Evaluation Parameters

CAESES must know which SHIPFLOW results to read after each computation. You tell it by creating evaluation parameters from the results table.

  1. Open the TableViewer.
  2. Double-click the values of V, CW and Sref. Double-click the boxes with the numbers in the second column, not the labels in the first column.

    TableViewer with the XPAN results of the baseline computation; double-clicking the Sref value has created the parameter eval_Sref

This creates the three parameters eval_V, eval_CW and eval_Sref, which the design engines read after each computation.


1.4 Inspect the Baseline Geometry

  1. Switch to the Model workspace and open the 3DView.
  2. View the hull from the side and zoom in on the bulb.

    3DView in the Model workspace: the XPAN pressure distribution and the offset stations of the bow and the bulb

    Offset file vs. CFD results

    The offsets and the XPAN results do not overlap exactly: the XPAN results are displaced by the computed dynamic sinkage and trim, while the offsets show the hull at rest.

  3. Hide the XPAN results so that only the offsets are shown: in the Connect workspace, open the Post-Processing tab, go to Results → shfComputation1 → XPAN, and click the visibility icon next to Body and next to Free Surface.

    The visibility icons of Body and Free Surface under Results → shfComputation1 → XPAN; the 3DView now shows only the offset stations


1.5 Create the Bulb Length Deformation

The deformation function is a parabolic spline defined by three points. A design variable sets the height of the last point. Applied through a delta shift (section 1.6), the spline lengthens or shortens the bulb.

Create a scope

CAESES organises the model in scopes, which work like folders.

  1. In the Model workspace, click CAD → Scope. The new scope appears at the same level as SHF_Import_off_t2_1.
  2. Rename it bulb_delta_length.
  3. Middle-click the scope to make it the working scope. Its icon turns green, and the prompt in the Console changes to |bulb_delta_length>. New objects are now created inside this scope.

    The Scope button of the CAD tab and the new scope bulb_delta_length, set as the working scope

Create the spline points

  1. Click CAD → Points → 3D Point three times and give the three points these coordinates:

    Point X Y Z
    point1 162 0 0
    point2 164 0 0
    point3 169 0 0

    The three points point1, point2 and point3 inside the scope bulb_delta_length

Pre-filled coordinates

If a point is selected when you create a new point, the coordinates of the new point contain references to the coordinates of the selected point. Select the scope bulb_delta_length before you create a point to avoid this, or edit the references away.

Create a B-spline from the points

  1. Select the three points in the Object Tree and click CAD → Curves → Point Based → B-Spline.

    The Point Based menu in the Curves group of the CAD tab, with B-Spline highlighted

  2. In the Object Editor of the new curve curve1, set General → Degree to 2, so that the curve becomes a parabola. The default is 3, but with only three points 2 is the highest possible degree.

    Object Editor of curve1 with the Degree field, shown with the default value 3 before it is changed to 2

Create the design variable

  1. Click CAD → Parameters → Design Variable.

    The Design Variable button in the Parameters group of the CAD tab

  2. Name the new variable delta_length and set its Value to 1.

    The design variable delta_length in the scope bulb_delta_length, with the value 1

  3. Link the Z coordinate of point3 to delta_length. Select point3, then either drag delta_length from the Object Tree onto the Z field, or open the drop-down list of the Z field and select |bulb_delta_length|delta_length.

    Dragging delta_length from the Object Tree onto the Z field of point3

    The drop-down list of the Z field of point3, with the entry |bulb_delta_length|delta_length

    The Z field now shows delta_length with its value 1, and the curve bends upwards towards point3:

    point3 with its Z coordinate linked to delta_length; in the 3DView the curve bends upwards at its forward end


1.6 Create the Delta Shift for Bulb Length

  1. Select curve1 in the Object Tree.
  2. Click Transformations → Shifts → Delta to create a delta shift, and name it length. The selected curve curve1 is filled in as the Deltacurve.

    The Delta button in the Shifts group of the Transformations tab, with curve1 selected

  3. In the Object Editor of length, check General → Delta X.

    Object Editor of the delta shift length: Delta X checked, Deltacurve curve1, Deltacurve Abscissa X and Deltacurve Ordinate Z

How the delta shift works

  • Deltacurve Abscissa: X — the x-coordinate of curve1 is the input: it says where along the hull the shift acts (x = 162–169 m).
  • Deltacurve Ordinate: Z — the z-coordinate of curve1 is the output: it gives the size of the shift at that position.
  • Delta X — the direction in which the geometry is shifted.
  • Factor — scales the shift; 1 leaves it unchanged.

With delta_length = 1 the bulb is lengthened by up to 1 m, following the shape of curve1.


1.7 Create the Delta Shift for Bulb Height

The second deformation moves the bulb up or down. It is built in the same way, so copy the first one.

  1. Leave the scope bulb_delta_length: middle-click its name again, or right-click it and select Working Scope. The prompt in the Console returns to |>.

    Before: bulb_delta_length is the working scope and the prompt shows |bulb_delta_length>

    After: no scope is active any more and the prompt is back at the root

  2. Copy the scope bulb_delta_length and paste it (Ctrl+C, Ctrl+V). All objects inside the scope are copied, with consistent internal references.

  3. Rename the copy bulb_delta_height. Inside it, rename the delta shift to height and the design variable to delta_height.
  4. In the Object Editor of bulb_delta_height | height, uncheck General → Delta X and check General → Delta Z.

    Object Editor of the delta shift height in the scope bulb_delta_height, with Delta Z checked


1.8 Combine the Transformations

Combine the two shifts in one transformation object, so that they are applied together.

  1. Click Transformations → Auxiliaries → Delta Sum and name the new object delta_bulb.

    The Delta Sum button in the Auxiliaries group of the Transformations tab

  2. In the Object Editor of delta_bulb, add bulb_delta_height | height and bulb_delta_length | length to the Transformations list. Drag and drop them, or pick them from the drop-down lists.

    Object Editor of the delta sum delta_bulb with the transformations height and length

The delta sum is extended later

In Part 3 you add the forebody transformation to this delta sum and rename it delta_forebody.


1.9 Connect the Transformation to the Bulb Geometry

The original offsets are never modified. Instead, an image offset group applies delta_bulb to a copy of the bulb offsets.

  1. In the Object Tree, select the offset group SHF_Import_off_t2_1 → offsets_bulb → bulb.
  2. Click Maritime → Sections → Image Offset Group.

    The Image Offset Group entry in the Sections menu of the Maritime tab, with the bulb offset group selected

  3. In the Object Editor of the new image offset group:

    • rename it bulb
    • check that General → Source is SHF_Import_off_t2_1 | offsets_bulb | bulb; it is filled in automatically because the bulb offset group was selected
    • set General → Image Transformation to delta_bulb

    Object Editor of the image offset group bulb: Source is the original bulb offset group, Image Transformation is delta_bulb

    Keep the name bulb

    The configuration refers to the bulb offset group by its name, with fbgr of the HULLTYPE command (xflow → hull in the GUI). If you give the image group another name, change fbgr to match.

  4. Select the offset group assembly SHF_Import_off_t2_1 → as_off_t2_1.

  5. In its Object Editor, replace offsets_bulb | bulb in General → Groups with the image group bulb. Drag and drop it, or use the drop-down list.

    Groups of as_off_t2_1 before the change: offsets_bulb|bulb, offsets_hull|hull and offsets_stern|stern

    Groups of as_off_t2_1 after the change: the first entry is now |bulb, the image group at the root level

Verify the deformation

  1. To tell the image bulb from the original, give it a colour: select the image group bulb, open Display Options, click the colour button next to Color and pick a colour.

    Display Options of the image group bulb with the Select Color dialog

  2. Change the values of delta_height and delta_length and check that the image bulb moves in the 3DView. If you select both scopes, bulb_delta_height and bulb_delta_length, you can edit both variables in one Object Editor.

    delta_height = 1 and delta_length = −0.5: the red image bulb is displaced relative to the original offsets


1.10 Define the LOA Parameter

The optimisation constrains the overall length (LOA), so CAESES needs the LOA of every variant. Instead of searching the deformed bulb offsets for their foremost point, you define one point at the bulb tip, move it with the same transformation, and measure the distance to the transom.

Create the bulb tip point

  1. Click CAD → Scope, name the new scope bulb_tip_position and make it the working scope (middle-click).
  2. Click CAD → Points → 3D Point to create a point, point1.
  3. Enter the coordinates of the undeformed bulb tip, (168.51, 0, -3.96). To read them yourself, click the bulb tip in the 3DView: it belongs to the offset offsets_bulb | os_000, and the Point Data of that offset in the Object Editor starts with the coordinates.

    Object Editor of the offset os_000: its Point Data starts at the bulb tip, x = 168.51, z = −3.96

    point1 with the bulb tip coordinates X = 168.51, Y = 0 and Z = −3.96

Create an image of the bulb tip

  1. With point1 selected, click CAD → Points → Image.

    The Image button in the Points group of the CAD tab, with point1 selected

  2. In the Object Editor of the new image point point2, set General → Image Transformation to delta_bulb.

    Object Editor of the image point point2: Source point1, Image Transformation delta_bulb

    point2 now follows the bulb tip for every design variant.

Define the transom position

  1. Create another 3D point in the same scope and rename it transom.
  2. Enter this expression as its X coordinate:

    |SHF_Import_off_t2_1|offsets_stern|stern.getMin(0)
    

    getMin(0) returns the smallest x-coordinate (index 0) of the stern offset group, which is the x-position of the transom.

    The point transom with the getMin expression in its X field; in the 3DView the point lies at the transom

Compute LOA

  1. With bulb_tip_position still the working scope, click CAD → Parameters → Parameter and name the new parameter LOA.
  2. Enter this expression as its value:

    point2:X - transom:X
    

    :X gives the x-coordinate of a point. While you type, press Ctrl+Space to see suggestions for completing the entry.

    The parameter LOA in the scope bulb_tip_position, with the expression point2:X - transom:X

    The value of LOA depends on the current value of delta_length, so yours may differ from the screenshot. LOA is updated for every variant.

  3. Leave the working scope: middle-click bulb_tip_position again.


1.11 Define Wave Resistance and Displacement Parameters

Wave resistance Rw

  1. Click CAD → Parameters → Parameter, name the new parameter Rw and enter this expression as its value:

    eval_CW * eval_Sref * (162 ^ 2) * 0.5 * 1000 * (0.28 ^ 2) * 9.81 * 162 / 1000
    

    The parameter Rw with the expression entered; its value is the wave resistance in kN

The expression converts the wave resistance coefficient into the wave resistance in kilonewtons:

\[ R_w = \frac{\rho}{2}\, C_W\, S\, V^2, \qquad S = S_{ref}\, L_{pp}^2, \qquad V = F_n \sqrt{g\, L_{pp}} \]

with \(L_{pp}\) = 162 m, \(F_n\) = 0.28, \(\rho\) = 1000 kg/m³ and \(g\) = 9.81 m/s². The final division by 1000 converts newtons to kilonewtons.

Displacement in cubic metres

  1. Select eval_V in the Object Tree and append * (162 ^ 3) to its expression, so that it gives the displacement volume in m³. Keep the expression that was created from the TableViewer and only add the multiplication at the end.

    The parameter eval_V with * (162 ^ 3) appended to its expression; the value is now in cubic metres


1.12 Set Up the Constraints

Two constraints apply to all investigations in this tutorial:

Constraint Monitor Comparator Limit
LOA_constraint bulb_tip_position | LOA < 174 (m)
Disp_constraint eval_V > 22500 (m³)
  1. Switch to the Optimize workspace and click Optimization → Constraints → Inequality. Name the new constraint LOA_constraint.
  2. Set Monitor to bulb_tip_position | LOA, Comparator to < and Limit to 174.

    Object Editor of LOA_constraint: Monitor bulb_tip_position|LOA, Comparator < and Limit 174

  3. Create a second inequality constraint named Disp_constraint, with Monitor eval_V, Comparator > and Limit 22500.

    The Inequality button in the Constraints group of the Optimization tab, and the Object Editor of Disp_constraint: Monitor eval_V, Comparator > and Limit 22500


Part 2: Bulb Design Space Exploration

With the two bulb design variables and the constraints in place, explore the design space: first with a regular 3 × 3 grid of variants (an ensemble investigation), then with 50 variants from a Sobol sequence.


2.1 Ensemble Investigation

The ensemble investigation computes nine variants (3 × 3) to show how the bulb length and height affect the wave resistance.

  1. In the Optimize workspace, click Optimization → Design Space Exploration → Ensemble Investigation.
  2. In the Object Editor of ensembleInvestigation1, set:

    Design variable Series
    delta_height -1,0,1
    delta_length -2,0,2
    • Evaluations: Rw, with Objective observer
    • Constraints: Disp_constraint and LOA_constraint

    Object Editor of ensembleInvestigation1 with the series of both design variables, the evaluation Rw and both constraints

  3. Save the project (Ctrl+S) and click Run, the green arrow next to the name of the design engine. The results table fills in as the variants are computed.

    The running ensemble investigation: results table of the nine variants, some of them still pending

  4. When all nine variants are finished, check the results table. Variants that violate a constraint are marked red, variants that satisfy both constraints green.

    The finished ensemble investigation: Rw, displacement and LOA of the nine variants, of which three satisfy both constraints

  5. Click Show Charts to see the results as a matrix of plots, in which every variable, evaluation and constraint is plotted against every other.

    Show Charts view of the ensemble investigation: a matrix of plots of delta_height, delta_length, Rw and the constraints


2.2 Sobol Design Space Sampling

A Sobol design engine creates its variants from a quasi-random Sobol sequence. With 50 variants it covers the design space much more densely than the 3 × 3 grid of the ensemble investigation.

  1. Click Optimization → Design Space Exploration → Sobol.
  2. In the Object Editor of sobol1, set:

    • Variants: 50
    • Design Variables: delta_height from -1 to 1 and delta_length from -2 to 2 (Lower and Upper), the same ranges as in the ensemble investigation
    • Evaluations: Rw, with Objective observer
    • Constraints: Disp_constraint and LOA_constraint

    Object Editor of sobol1: Variants 50, the bounds of delta_height and delta_length, the evaluation Rw and both constraints

  3. Save the project and click Run.

  4. The Result Pool dialog asks which earlier runs to use as a result pool for this run. Select the ensemble run ensembleInvestigation1_01 and click Run.

    The Result Pool dialog with the ensemble run ensembleInvestigation1_01 selected

  5. When the run has finished, click Show Charts.

    Sobol results as a matrix of plots: the 50 variants spread over delta_height and delta_length, and Rw plotted against each of the two variables

With 50 variants, the plots show much more clearly than the nine ensemble variants how Rw, the displacement and LOA vary with the bulb height and length.


Part 3: Parametrising the Forebody Shape

With the bulb explored, extend the parametrisation to the forebody shoulder (x = 96.5–161.5 m). The deformation function is now a planar B-spline surface instead of a curve, used by a surface delta shift. You add the new transformation to the existing delta sum, so that one transformation object contains all four design variables and can be applied to both the bulb and the hull image offset groups.


3.1 Create the Planar B-Spline Surface

The surface lies in the Y - (Z,X) plane: its first axis is z and its second axis is x, and its y-coordinate is the displacement of the hull in the y-direction.

  1. Click CAD → Surfaces → Point Based → Planar B-Spline.

    The Point Based menu in the Surfaces group of the CAD tab, with Planar B-Spline highlighted

  2. In the Create Feature dialog, set:

    Setting Value
    Plane Y - (Z,X)
    CP in U-Direction 7
    CP in V-Direction 6
    Start First Axis, Start Second Axis (lower corner) -8.18, 96.5
    End First Axis, End Second Axis (upper corner) 3, 161.5

    Keep Create Control Points checked. Under Display Options, select the option highlighted in the figure so that the control points are shown in the 3DView. Then click Execute.

    The Create Feature dialog of the planar B-spline surface with the plane, the numbers of control points and the corner positions

The surface is created in a new scope, SurfacePlanarBSpline1, and is referred to as SurfacePlanarBSpline1 | surface.


3.2 Assign Forebody Design Variables

Two design variables move two horizontal rows of control points sideways.

  1. Create a new scope named Parameters (CAD → Scope) and make it the working scope.
  2. Create two design variables, lower and higher (CAD → Parameters → Design Variable). Leave their values at 0.

    The scope Parameters with the design variables higher and lower, both 0

  3. In the 3DView, select the three control points shown in the next figure: in the second row from the bottom, at z = −5.944. Hold Ctrl to select several points, or drag a selection window.

  4. In the Object Editor, link the Y coordinate of the three points to lower.

    Three control points in the second row from the bottom selected, with their Y coordinate linked to |Parameters|lower

  5. Select the three control points two rows higher up, at z = −1.472, and link their Y coordinate to higher.

    The three control points two rows higher selected, with their Y coordinate linked to |Parameters|higher

Editing several points at once

With several points selected, the Object Editor changes all of them at once. Fields whose values differ between the points, such as X here, are shown empty.


3.3 Create the Surface Delta Shift

  1. Click Transformations → Shifts → Surface Delta and name the new transformation surface_transformation. Because Parameters is still the working scope, the transformation is created in that scope.

    The Surface Delta button in the Shifts group of the Transformations tab

  2. In the Object Editor of surface_transformation:

    • check General → Delta Y
    • set Delta Surface to SurfacePlanarBSpline1 | surface
    • set Coordinate to Y

    Object Editor of surface_transformation: Delta Y checked, Delta Surface SurfacePlanarBSpline1|surface and Coordinate Y

Coordinate and delta direction

Coordinate selects which coordinate of the surface is read as the size of the shift. Delta Y selects the direction in which the hull offsets are shifted. With both set to Y, the y-values of the surface are applied as y-displacements of the hull.


3.4 Extend the Delta Sum

  1. Select delta_bulb and rename it delta_forebody, since it now controls both the bulb and the forebody.
  2. Add Parameters | surface_transformation to its Transformations list, below height and length.

    Object Editor of delta_forebody with the three transformations height, length and surface_transformation

References are kept

Renaming delta_bulb to delta_forebody updates all objects that refer to it, including the image group bulb and the image point in bulb_tip_position from Part 1. You do not need to link them again.

The delta sum now contains three transformations:

Transformation Type Effect
length Delta shift (Delta X) Lengthens or shortens the bulb
height Delta shift (Delta Z) Raises or lowers the bulb
surface_transformation Surface delta shift (Delta Y) Widens or narrows the forebody shoulder

3.5 Create the Hull Image Offset Group

The hull needs its own image offset group, as the bulb did in Part 1.

  1. Select the offset group SHF_Import_off_t2_1 → offsets_hull → hull.
  2. Click Maritime → Sections → Image Offset Group and name the new image group hull.
  3. In its Object Editor, check that General → Source is SHF_Import_off_t2_1 | offsets_hull | hull, and set General → Image Transformation to delta_forebody.

    Object Editor of the image offset group hull: Source offsets_hull|hull and Image Transformation delta_forebody

  4. Select the offset group assembly SHF_Import_off_t2_1 → as_off_t2_1 and replace offsets_hull | hull in General → Groups with the image group hull.

    Groups of as_off_t2_1 after dragging the image group hull onto the second entry: |bulb, |hull and offsets_stern|stern


3.6 Visual Check

  1. Give the image group hull its own colour under Display Options → Color, so that you can tell it from the original.

    Display Options of the image group hull with the Select Color dialog

  2. Set lower and higher to non-zero values and check that the forebody shoulder deforms in the 3DView.

    higher = −1 and lower = 0.5: the deformed hull stations (green) differ from the original stations (grey) in the shoulder region

  3. Set lower and higher back to 0 before you continue.

Parameters and constraints from Part 1

The evaluation parameters eval_CW, eval_Sref and eval_V, the parameter Rw and the constraints LOA_constraint and Disp_constraint from Part 1 are used unchanged. No further set-up is needed.


Part 4: Combined NSGA-II Optimisation

With both the bulb and the forebody parametrised, the NSGA-II genetic algorithm searches for the lowest wave resistance with all four design variables at once.


4.1 Configure NSGA-II

  1. In the Optimize workspace, click Optimization → Multi Objective Optimization → NSGA-II.
  2. In the Object Editor of the new design engine, set:

    General setting Value
    Generations 20
    Population Size 4
    Mutation Probability 0.1
    Crossover Probability 0.9
    Design variable Lower Value Upper
    delta_height -1 0 1
    delta_length -2 0 2
    higher -0.5 0 0.5
    lower -0.5 0 0.5
    • Evaluations: Rw, with Objective min
    • Constraints: Disp_constraint and LOA_constraint

    General settings, design variables and evaluation of the NSGA-II design engine

  3. In the Constraints table, check Considered for both constraints.

    The Constraints table of the NSGA-II design engine with Considered checked for Disp_constraint and LOA_constraint


4.2 Run and Interpret the Results

  1. Save the project (Ctrl+S) and click Run. If the Result Pool dialog opens, select the earlier runs to use as a result pool (see 2.2) and click Run.
  2. Follow the progress in the results table, and click Show Charts to plot the results.

    NSGA-II results for the four design variables as a matrix of plots; the history of Rw over the computed designs is highlighted

Tutorial settings

The first column of the chart shows each quantity in the order in which the designs were computed. With only 4 individuals per generation and 20 generations (80 designs), this set-up shows how the design variables and Rw evolve during an optimisation, but it does not find a useful optimum. For that, the optimisation parameters must be tuned and many more generations computed.


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 have:

  • parametrised the bulb with two curve-based delta shifts and the forebody shoulder with a surface delta shift, combined them in one delta sum and applied it to the hull through image offset groups
  • defined LOA, the wave resistance Rw and the displacement as parameters, and constraints on LOA and displacement
  • explored the bulb design space with an ensemble investigation and Sobol sampling
  • run an NSGA-II optimisation over all four design variables

Key Objects

Object Type Purpose
bulb_delta_length Scope Length deformation: curve1, delta_length and the delta shift length
bulb_delta_height Scope Height deformation: curve1, delta_height and the delta shift height
bulb_tip_position Scope Bulb tip point, its image point2, the point transom and the parameter LOA
Parameters Scope Forebody design variables lower, higher and the transformation surface_transformation
SurfacePlanarBSpline1 Scope The planar B-spline surface, reference surface of the forebody deformation
delta_length, delta_height Design variables Bulb length and bulb height
lower, higher Design variables Y-displacement of the lower and the upper row of control points
length, height Delta shifts Bulb displacement in x (Delta X) and in z (Delta Z)
surface_transformation Surface delta shift Forebody displacement in y (Delta Y)
delta_forebody Delta sum Sum of the three transformations (delta_bulb before Part 3)
bulb, hull Image offset groups Deformed bulb and hull, used in as_off_t2_1
LOA Parameter Current overall length
Rw Parameter Wave resistance in kN
LOA_constraint Inequality constraint LOA < 174 m
Disp_constraint Inequality constraint Displacement > 22 500 m³

Next Steps

Getting help: send your questions to [email protected]. Product information is available at shipflow.se.


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