Skip to content

Troubleshooting

General problems that can occur in any SHIPFLOW case, with the checks that usually resolve them. Case-specific advice stays in the tutorial where it belongs — this page collects the issues that are independent of the vessel, module or workflow you are running.

Where to look first

Almost every failed computation reports its reason in one of three places:

  1. TaskMonitor — solver progress and the message that stopped it
  2. FileViewer → <configuration>_OUTPUT — the full solver log, including warnings
  3. Console — GUI-side messages (import, geometry conversion, expression errors)

Check these before changing settings.


Startup and licensing

The solver does not start when you click Run

The computation is queued but nothing happens, or it terminates immediately without a solver log.

Checks:

  1. Click the pencil/edit icon next to the computation and verify that the executable path points to the SHIPFLOW launcher in the bin folder of your installation, for example:

    C:\FLOWTECH\SHIPFLOW<version>-x86_64\bin\shipflow.bat
    

    On Linux the launcher is bin/shipflow in the installation folder.

  2. If the path is wrong, browse to the correct location and click OK.

  3. Verify that the SHIPFLOW license is valid and reachable — see Installation.

GUI and display problems

The 3DView or 3DOverView windows cannot be opened

SHIPFLOW Design5 stops showing the 3D windows, and they cannot be created or reopened from the menus.

Fix: delete the CAESES/Friendship Systems settings folder.

  1. Close SHIPFLOW Design5.
  2. Type %appdata% in the Windows Explorer address bar and press Enter.
  3. Delete the Friendship Systems folder.
  4. Restart SHIPFLOW Design5.

This resets your GUI preferences

Deleting the folder clears window layouts, recent-file lists and other interface settings. Project data (.cdb files and project folders) is not affected.

Results are computed but nothing appears in the 3D view

SHIPFLOW uses two separate 3D windows, and results are directed to different ones depending on the solver:

Window Shows
3DView XPAN and XBOUND results — wave pattern, panels, streamlines
3DOverView XCHAP results — pressure coefficient, volume grid, VoF free surface

If a viscous result seems missing, open Main menu → View → Windows → 3DOverView. If a potential flow result seems missing, check 3DView.

Other checks:

  • Confirm the computation actually completed successfully.
  • In Connect → Post-Processing → Results, check the visibility (eye) icon on the object.
  • Try a different visualisation preset.

Only one side of the geometry or grid is visible

Grids and panel meshes are generated for one side when the case is symmetric. Enable mirroring (F5 in SHIPFLOW Design5, or the mirror symbol in the post-processing toolbar) to display both sides.

Cannot compare two designs side by side

  • Verify that the current design is locked: the lock icon at the bottom of the 3DView must be activated (highlighted).
  • Check that the Mirror box in the top left corner is ticked.
  • Make sure two different designs are selected.
  • Press F10 (Zoom Extent) to fit both views.

Geometry import and offset generation

"Unsupported entities" warning during IGES import

The warning appears in the Console for many IGES files, and in the tutorials it can be ignored: the hull surfaces are still imported. If the geometry looks incomplete in the 3D view, check the IGES file itself, for example by exporting it again from your CAD system.

Imported geometry is not visible

  1. Press F10 (Zoom Extent).
  2. Check in the Object Tree of the Model workspace that the imported surfaces are not hidden.
  3. Try a different view orientation.

"Cannot find geometry file"

  • Verify the file path is correct and accessible.
  • Avoid spaces and special characters anywhere in the path.

IGES to STL conversion fails

  • Check the IGES file for gaps and overlapping surfaces.
  • Re-export the IGES from your CAD system with a different tolerance.
  • Read the Console for the specific entity that failed.

Offset generation produces a poor mesh

  • Check the geometry for degenerate surfaces (zero area).
  • Verify that all surfaces are grouped before the conversion is started.
  • Confirm the hull type matches the geometry: for a twin-skeg hull, set xflow | hull | shiptype to twin (keyword TWINSKEG of HULLTYPE).

The generated offset file cannot be found

The offset file is written to the computation folder:

<project>\manual_results\<design>\<computation>\

If it is not there, the conversion failed — check the TaskMonitor for the error.


Project files and directories

"ERROR in xkw5: cgio_write_all_data:ADF 14: Invalid argument"

A read/write error on the CGNS results file, caused by a corrupted CGNS file left over from an earlier run.

Fix: delete the old CGNS file and the <configuration>_RUN_DIR folder before re-running. If that is not possible, rename the configuration so SHIPFLOW writes to a fresh set of files.

Importing a configuration does not give the expected result

Two versions of every configuration exist after a run, both in the computation folder:

Location Contents
<computation>\<configuration> The configuration as created in the GUI — original geometry reference, fewer warnings
<computation>\<configuration>_RUN_DIR\<configuration> The final augmented configuration — includes generated offset groups and solver-added parameters

Import from the _RUN_DIR version when you want the offset group mapping included. Import the GUI version when you want a clean starting point.

Also check: the offset file still exists at the path referenced by the imported configuration.

File management rules

  • Never delete the .cdb project database — without it the project cannot be reopened.
  • Keep the .cdb file and its project folder together.
  • Do not manually edit files inside a _RUN_DIR folder; they are regenerated on every run.

Memory errors

"Not enough memory for XPAN execution"

*** ERROR -  Not enough memory for XPAN execution
Increase SHIPFLOWMEM from 500000000 to at least <required value>

SHIPFLOW prints the value of SHIPFLOWMEM it was started with and, where <required value> stands above, the value the computation needs.

The most common cause is not memory at all — it is missing or incomplete geometric specifications. When the geometry is underdefined, SHIPFLOW cannot determine the problem size, the mesh generator cannot calculate cell counts, and an excessive allocation is requested as a safety margin.

First, verify the input is complete:

  • Length (lpp, LOA)
  • Draught / vertical origin (zori)
  • Hull geometry and offset data

Only if the input is correct, increase the allocation to at least the value given in the message. On Windows:

  1. Open C:\FLOWTECH\SHIPFLOW<version>-x86_64\bin\shipflow.bat in a text editor.
  2. Change set SHIPFLOWMEM=500000000 to a larger value, for example set SHIPFLOWMEM=2000000000.
  3. Save. Update shipflow_pause.bat as well if you use it.

Alternatively, set it temporarily for one session:

set SHIPFLOWMEM=2000000000

then start SHIPFLOW from that same command prompt.

On Linux, set the environment variable before starting SHIPFLOW, for example export SHIPFLOWMEM=2000000000 (bash) or setenv SHIPFLOWMEM 2000000000 (C shell).

Upper limit: 2147483647

SHIPFLOW uses 32-bit signed integers for memory allocation. Values above 2147483647 overflow and crash the solver with an input conversion error.

Setting Value
Default on Windows (shipflow.bat) 500000000
Default on Linux (shipflow script) 950000000
Absolute maximum 2147483647

This is a software architecture limit, not a hardware one. More RAM will not raise it.

"input conversion error, unit -5"

forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read

Causes and fixes:

  1. SHIPFLOWMEM exceeds the 32-bit limit. Values such as 3000000000 or 5000000000 overflow. Set it to 2147483647 or less, for example 2000000000.
  2. Input file formatting. Decimal separators must be periods (.), not commas (,) — check your Windows regional settings. File encoding must be ASCII or UTF-8.
  3. File paths. Avoid spaces, special characters and non-ASCII characters in directory and file names.

"WARNING: the solver may not fit into the memory" and "KILLED BY SIGNAL: 9"

Before an XCHAP run starts, SHIPFLOW estimates the memory the solver will need from the grid size and the number of processes, and prints a warning when it may not fit into the memory of a computer. After the first iteration the solver prints the measured peak. If the computer runs out of memory anyway, the operating system ends the solver processes: SHIPFLOW then reports that the solver ran out of memory, or prints KILLED BY SIGNAL: 9 without an error message from the solver, and stops with exit status 3.

Fix: use a coarser grid, run on more computers or with fewer processes per computer, or make sure that the Krylov solver uses its compact storage, krylov ( storage="compact" ), which is the default (KRYLOV). As a rule of thumb the solver needs about 5 kB per cell with compact storage and about 7 kB per cell with full storage.


Configuration errors

Syntax error in a command or expression

  • Check the spelling of the parameter name.
  • Confirm the parameter was added under the correct parent command.
  • Click the Evaluate button (checkmark) after entering an expression — an unevaluated expression is not applied.

Several SHIPFLOW commands are linked by a matching id string. If they do not match exactly, the second command cannot find the object it refers to and the run fails or silently ignores the setting:

Command Must match
xchap | lline | id (LLINE) xflow | prop | id (PROPELLER)
xchap | pprop | id (PPROP) xflow | prop | id
xflow | append | id (APPENDAGE) the id of the appendage object (for example a rudder) that is adapted to the grids

A design variable does not update the configuration

  • Verify the variable is actually linked to the configuration parameter (the field should show the variable name, not a number).
  • Check that Evaluate was clicked after linking.
  • Confirm the correct variable is selected in the ensemble or optimisation setup.

Wave resistance is zero when you expected waves

The GUI defaults to nofsfl (no free surface flow). Free surface effects must be enabled explicitly by setting fsflow under xflow | hull (HULLTYPE). With nofsfl, XPAN computes the flow without a free surface, so the wave resistance CW is zero.

Hull group names are not recognised

The hull group names given in the configuration (h1gr, fbgr, and similar, see HULLTYPE) must match the group names present in the offset file exactly.


Computation failures and convergence

The computation fails immediately

  1. Open the FileViewer and read the error message in the OUTPUT file.
  2. Common causes:
    • Geometry has gaps or overlapping surfaces
    • Invalid parameter values (negative lpp, and similar)
    • Insufficient memory — see Memory errors above
    • Missing geometric specifications

Convergence is very slow, or does not converge

  • Check that the geometry is clean — no gaps, no overlaps.
  • Verify that speed and scale are physically reasonable.
  • Review the OUTPUT file for warnings issued during the early iterations.

"Error: Leak or thin interpolation detected"

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

An appendage grid overlaps the hull grid incorrectly. The open end of an appendage grid must lie completely inside the hull. If it crosses the hull surface and partially exits the other side, the overlapping grid interpolation cannot be built.

Fix: correct the appendage geometry or its position so the open end is fully contained inside the hull, then re-run.

XBOUND does not start

  • Verify XPAN ran successfully first — XBOUND traces its streamlines in the potential flow solution.
  • Confirm a potential flow solution exists in the database.
  • Check the speed and scale (VSHIP) and the fluid (FLUID): XBOUND computes the Reynolds number from the velocity, the scale factor (or reference length) and the viscosity of the fluid.

"XFLOW WARNING: XZ-SYMMETRY IS ENFORCED FOR STANDARD CASES"

XPAN and XBOUND ignore the nosym keyword of SYMMETRY in automatic (standard case) mode. Asymmetric cases must be set up in Manual Mode for those modules. The inflow required by XCHAP at the zonal inlet is mirrored automatically, so this warning is expected when running a zonal nosym case.

The zonal approach produces poor or unexpected results

  • The zonal approach needs XPAN and XBOUND results: the inlet conditions of XCHAP are derived from them (the database files id_XPDB and id_XBDB). Run XPAN and XBOUND at least once, or include them in the program list; when only XCHAP settings change, later runs can use xchap alone.
  • The zonal approach is not recommended at full scale: the inflow computed by XPAN + XBOUND is not suitable for full-scale conditions. Use the global approach instead.

Self-propulsion does not converge

  • Check that the advance ratio range (pow | j) covers the expected self-propulsion operating point.
  • Check pow | maxit, the number of XCHAP iterations for each advance ratio. The tutorials limit it to keep run times short; when it is not given, the default applies (500, or 150 with the KRYLOV solver, see POW).
  • Verify lline | id (or pprop | id) matches prop | id exactly.
  • With pprop, the self-propulsion run control is set from the case and nothing has to be given on the command. If it has been overridden by hand, check it against the defaults in PPROP.

The computation stops saying the propeller model failed

The external propeller program refused the case and the computation stopped rather than carrying the previous propeller run's forces forward. The reason is at the end of <ID>_out<n>.log in the propeller directory, and <ID>_err<n>.log beside it is not empty. The common cause is a blade the panel method will not mesh, which is reported as a warped trailing edge along a Kutta element; mesh it with fewer chordwise panels, or with a milder spanwise stretching if pprop | stretch has been changed from the default. A missing geometry file, or a license that could not be reached from the compute node, gives the same stop with its own message.

An ensemble or optimisation run fails part-way through

  • Read the TaskMonitor for the message from the variant that failed.
  • Verify that all values in the series are physically reasonable.
  • Confirm sufficient memory is available for the largest variant.
  • Check that the active design variant's configuration is valid on its own.

The computation takes much longer than expected

  • Remove modules that do not need to re-run. Once XPAN has produced a solution, subsequent XBOUND runs can read it from the database — remove xpan from the program list. The same applies when only XCHAP settings change.
  • Reduce the resolution while setting a case up: use a coarse grid and low iteration counts, then refine once the setup is verified.
  • Disable automatic post-processing report generation with xpost | control | onoff = off (XPOST CONTROL). This is significant in ensemble runs, where a full HTML report would otherwise be produced per variant.
  • Reduce the number of traced streamlines and stations for boundary layer studies.
  • Stop a run that is converged enough instead of waiting for MAXITER: create an empty file named STOP in the run directory <configuration>_RUN_DIR. XCHAP and MOTIONS finish the current iteration, save the solution and write the report as usual (CONTROL).

Warnings on coarse grids

Warnings during grid generation are common at coarse resolutions and can generally be ignored while a case is being set up. They should not be ignored in a production run.


Results that look wrong

Results are unrealistic or differ from expectation

Work through the inputs in this order:

  1. Units — lengths in metres, speed in knots for vknot.
  2. Geometry — lpp and zori match the actual geometry.
  3. Speed and scale — the scale factor determines whether results are model or full scale.
  4. Free surface setting — fsflow vs nofsfl.
  5. Initial position — trim and sinkage from the IPOSITION command (ipos).
  6. Fluid properties — type and temperature, which set the Reynolds number.
  7. OUTPUT file — review it for warnings issued during the run.

Friction coefficient looks wrong

Compare CF with the ITTC-1957 correlation line at the same Reynolds number:

\[ C_f = \frac{0.075}{(\log_{10} Rn - 2)^2} \]

If the value is far off, the Reynolds number is usually the cause — check the speed, the scale factor and the fluid viscosity.

Tutorial settings are too coarse for engineering work

Coarse grids and low iteration counts are used throughout the tutorials to keep computation times short. They are not suitable for engineering work:

Setting Tutorial value Production value
Grid density (xgrid | size | xgdens) coarse / vcoarse medium or fine
XCHAP iterations (xchap | control | maxit) limited, often 0 to check the grid only the default, which depends on the grid size (CONTROL)
POW iterations per advance ratio (pow | maxit) 10 the default, 500 (150 with KRYLOV) (POW)

Streamlines do not cover the whole hull

  • Increase the number of streamlines (stream).
  • Move the starting station (istart) — starting at midship traces both upstream and downstream and gives more even coverage than starting at the bow.
  • Lower pn to move the uppermost streamline away from the waterline (Basic Tutorial 4 changes it from 0.95 to 0.85).
  • Verify the panel group specification is correct.

All three are keywords of the XBOUND TRACE command.


Still stuck?

Include the following when contacting support — it usually removes a full round trip:

  • The SHIPFLOW version (shown in the OUTPUT file header)
  • The complete <configuration>_OUTPUT file
  • The configuration file itself
  • The exact error message, copied as text

Support: [email protected] · product information at shipflow.se