Windows Installation¶
This guide describes the distribution material and how to install, license and verify SHIPFLOW — the flow solver, the SHIPFLOW GUI and the post-processor — on workstations and computers running Microsoft Windows 10 or 11. For Linux, see Linux Installation.
Distribution material¶
SHIPFLOW is delivered as one installation program that contains the flow solver, the GUI and the post-processor, together with the documentation and the Release Notes for all versions.
Download from the FLOWTECH Support page¶
Download the installation program from the FLOWTECH Support page at flowtech.se. To get a user id and a password for the Support page, contact [email protected]. The Support page explains how to download the software. Then continue with Install SHIPFLOW.
Distribution on CD-ROM¶
The installation program can also be supplied on a CD-ROM.
Documentation¶
The documentation is installed as PDF files in the doc directory: the SHIPFLOW
User's Manual, Examples Manual, Release Notes, Installation Notes and the XCHAP Theoretical Manual.
The User's Manual and the Examples Manual are also available on this site, see
User Manuals and Examples Manual.
Installation directory¶
The installation program installs SHIPFLOW and the licensing tools in separate folders under the
FLOWTECH folder. The flow solver and the post-processor are in the same SHIPFLOW folder:
FLOWTECH\
SHIPFLOW<version>-x86_64\
bin\
data\
Framework\
paraview\
doc\
examples\
examples_motions\
tutorials\
npp\
lic\
In this guide, shipflow\ stands for the SHIPFLOW folder, for example
C:\FLOWTECH\SHIPFLOW8.0.37-x86_64\.
bin directory¶
| File | Description |
|---|---|
Release |
Release information. |
shipflow.bat |
Starts SHIPFLOW. |
shipflow_motions.env |
Environment overrides that apply only to the MOTIONS solver process, one NAME=VALUE entry per line; NAME= unsets a variable. As delivered it sets OMP_WAIT_POLICY=active and unsets KMP_BLOCKTIME. Leave the file empty to run MOTIONS with the unchanged SHIPFLOW environment. |
shipflow_gui.bat |
Starts the SHIPFLOW GUI. |
notepad++.bat |
Starts the Notepad++ editor included with SHIPFLOW. |
shipflow_pause.bat |
Used by Notepad++ to start SHIPFLOW. |
rshipflow.bat |
Script for remote computations. |
data directory¶
| File | Description |
|---|---|
non_bf_vg.fmt |
Data for the vortex generator object. |
report.tmpl |
Template file for the report generation. |
propellers\ |
Propeller geometry files. SHIPFLOW looks here for a GEOFILE that is not in your working directory. |
python_post_scripts\ |
Python scripts for the customisable automatic post-processing: scriptable plots with Python and ParaView. |
Framework directory¶
This directory contains the user interface for SHIPFLOW with the Design/GUI add-ons.
paraview directory¶
This directory contains ParaView, which is used for some of the post-processing. See ParaView.
doc directory¶
This directory contains the documentation for SHIPFLOW as PDF files.
| File | Description |
|---|---|
InstallationNotesWindows.pdf |
SHIPFLOW Installation Notes for Windows — the PDF version of this guide. |
ReleaseNotes.pdf |
SHIPFLOW Release Notes. |
XchapTheoreticalManual.pdf |
XCHAP Theoretical Manual. |
ExamplesManual.pdf |
SHIPFLOW Examples Manual, also on this site as the Examples Manual. |
UsersManual.pdf |
SHIPFLOW User's Manual, also on this site as the User Manual — Basic & RANS. |
examples directory¶
This directory contains all the input files, and some of the output files, for XPAN, XBOUND and XCHAP for the examples in the SHIPFLOW Examples Manual. It also contains the test examples used to verify the installation.
examples_motions directory¶
This directory contains all the input files for MOTIONS.
tutorials directory¶
This directory contains tutorials. The SHIPFLOW tutorials are also available on this site, starting with Basic Tutorial 1 and Advanced Tutorial 1.
npp directory¶
This directory contains the Notepad++ editor customised for SHIPFLOW, see The Notepad++ editor.
FLOWTECH\lic directory¶
This directory contains the licensing tools, see Licensing. It is next to the SHIPFLOW folder, not inside it.
Install SHIPFLOW¶
- Download the installation program from the FLOWTECH Support page at flowtech.se. Contact [email protected] for a user id and a password for the Support page.
- Run the installation program with full administrative privileges and follow the on-screen instructions.
- Install SHIPFLOW and the SHIPFLOW licensing software in the
FLOWTECHfolder directly under the root folder, as suggested by the installer. This makes it easier to have several SHIPFLOW versions installed in parallel. Do not install SHIPFLOW in a folder whose path contains spaces (blank characters), such asProgram Files. - Set up your license, see Licensing.
Licensing¶
The licensing system described here has been used since SHIPFLOW 6.4. The licensing tools are
installed in FLOWTECH\lic, and the licensing programs are in the Windows Start menu under
FLOWTECH → lic. Follow the instructions for your license type:
| License type | What you set up |
|---|---|
| Node-locked | Registration and activation on the computer that runs SHIPFLOW, see Node-locked license. |
| Network | A license server, and on each client computer the SG_LICENSE_FILE variable and a license file network.lic. |
| Floating | A license server, and on each client computer the SG_LICENSE_FILE variable. |
If you are not sure which type of license you have, contact [email protected]. The license manager programs are described in Appendix A: License manager applications.
Node-locked license¶
First installation on a computer¶
-
Register the computer. Do one of the following:
- When the licensing tools are being installed, choose to run the licensing. This starts the registration.
- Run Start → FLOWTECH → lic → License Manager.
When you register, make sure that you enter the correct email address: this is how we contact you when your license is ready for activation.
-
Wait until you receive our email.
- Activate your license: run Start → FLOWTECH → lic → License Manager.
Note
In some situations your computer is already registered as active by us. You can then skip steps 2 and 3.
Reinstalling or upgrading SHIPFLOW¶
If SHIPFLOW has been installed on the computer before:
- If the computer is connected to the internet, activation is automatic. Continue with Verify the installation.
- If the computer has no internet connection and you need a new license file, send an email to [email protected].
Manual commands¶
You will normally not need these commands. They are all in the Start menu under FLOWTECH → lic.
| To | Run |
|---|---|
| Activate a new license over the internet (this also starts or restarts the license server) | License Manager |
| Start the license server, for example after the computer has been rebooted | Start License Server |
Network and floating licenses¶
Network and floating licenses both use a license server. In addition, a network license needs a license file on each client computer.
Floating and classroom licenses that were locked to a range of IP addresses in earlier versions are now called network licenses.
License server¶
Do the following on the computer that runs the license server for a network or floating license.
Install the licensing tools¶
Install the licensing tools by running SetupShipflowLicense.exe.
Activate the license¶
By default, the license server uses port 29750. If you want it to use a different port, tell us by email to [email protected].
On a computer with internet access
- Run Start → FLOWTECH → lic → License Manager. We receive a notification that you have registered, and we get back to you once we have confirmed that you should have a license.
- When you have received our email that your SHIPFLOW license is activated on that computer, run
License Manager again. This downloads your license to the file
shipflow.licand starts the license server.
On a computer without internet access (or if our product activation server cannot be reached)
- Run Start → FLOWTECH → lic → License Manager. This creates the file
shipflow_lic.log. - Send
shipflow_lic.logto [email protected]. We reply with the license file. - Save the license file as
shipflow.licin theFLOWTECH\licfolder and run License Manager.
Start the license server again¶
If you reboot the computer, or if the license server is stopped for some other reason, start it again with Start → FLOWTECH → lic → Start License Server.
Obtain a new license file¶
You need a new license file when your license file expires or when you upgrade to a newer SHIPFLOW version.
- With internet access: run Start → FLOWTECH → lic → License Manager. This downloads your
license to the file
shipflow.licand starts or restarts the license server. - Without internet access (or if our product activation server cannot be reached):
- Request the license file from [email protected].
- Save it as
shipflow.licin theFLOWTECH\licfolder. - If the license server is already running, run
restart_server.batin the same folder. If it is not running, run License Manager.
Client computers¶
Do the following on each computer that will run SHIPFLOW with a network or floating license.
- Install SHIPFLOW. Let the installer install the licensing tools, but do not choose to start the licensing when you are asked at the end of that process.
- Set the environment variable
SG_LICENSE_FILEto<port>@<host>, where<host>is the address of the computer that runs the license server and<port>is the port number that the license server uses (29750 by default). - Network license only:
- Send the range of IP addresses of the client computers to [email protected]. Use one or
two wildcards, for example
192.168.1.*or194.185.*.*. We reply with the license file. - Save the license file as
network.licinFLOWTECH\lic. To keepnetwork.licin a different folder, set the environment variableSG_LICENSE_FILE_PATHto that folder, for exampleC:\licenses\.
- Send the range of IP addresses of the client computers to [email protected]. Use one or
two wildcards, for example
Environment variables¶
All required environment variables are set automatically when you start SHIPFLOW with
shipflow.bat. The variables below are the ones you might want to change for a particular
installation.
To set or change a variable, open Control Panel → System, go to the Advanced tab and click Environment Variables. By default, the SHIPFLOW variables are set for all users of the computer, so you find them under System variables.
Path¶
The installation adds shipflow\bin and shipflow\runtime\bin\pc to the Path variable.
SHIPFLOWMEM¶
SHIPFLOW uses dynamic memory allocation: storage for all vectors and arrays is allocated during
execution in one global storage vector. SHIPFLOWMEM sets the size of this vector as a number of
4-byte words; for example, 64,000,000 corresponds to 256 MB of memory.
If SHIPFLOWMEM is too small, SHIPFLOW stops and prints the required value in the id_OUTPUT file.
Increase SHIPFLOWMEM to at least that value, either as an environment variable or directly in the
start-up scripts shipflow.bat and shipflow_pause.bat. See
Memory errors for the upper limit and for what to
check before you increase the value.
SG_LICENSE_FILE¶
Needed when the license server does not run on the same computer as SHIPFLOW. Set it to
<port>@<host> of the license server, see Client computers.
SG_LICENSE_FILE_PATH¶
Optional, for network licenses: the folder that contains network.lic, if you keep it somewhere
other than FLOWTECH\lic. See Client computers.
ParaView¶
ParaView is included with SHIPFLOW and is used to produce some of the plots in the automatic reporting. ParaView needs a graphical environment on the computer where SHIPFLOW runs. When you run SHIPFLOW locally on your workstation, this is always available.
In shipflow\bin\pvpost you can add your own ParaView Python scripts to be used in the automatic
reporting.
Verify the installation¶
- Start the user interface by selecting Shipflow Design in the Start menu, then exit the user interface again.
- Open a SHIPFLOW command prompt: Start → FLOWTECH → Shipflow → SHIPFLOW Command prompt.
-
Create a test folder and change to it:
-
Copy the test examples from the
examplesfolder of your installation. The test command files read the offset filegeometry/off_test, so copy that file into ageometrysubfolder:copy C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\test1 . copy C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\test2 . copy C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\test3 . mkdir geometry copy C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples\geometry\off_test geometryReplace
C:\FLOWTECH\SHIPFLOW<version>-x86_64with the path of your SHIPFLOW folder. -
Run the first test example, which tests the modules XMESH and XPAN:
SHIPFLOW writes the output file
test1_OUTPUTand the database filetest1.cgns. The database file is used by the SHIPFLOW post-processing, or by a third-party post-processor such as Tecplot or ParaView. -
Look through
test1_OUTPUTfor warnings or error messages. If yourexamplesfolder contains atest1_OUTPUTfile, compare your output with it. -
Run the second test example, which also runs the modules XBOUND, XGRID and XCHAP:
Compare
test2_OUTPUTin the same way. The computing time and memory requirements oftest1andtest2are moderate; each should complete within a few minutes. -
Run the third test example, a self-propulsion computation:
Tip
The Notepad++ editor included with SHIPFLOW is a convenient alternative for running SHIPFLOW computations.
If a test does not run, check the following:
| Problem | What to do |
|---|---|
| No valid SHIPFLOW license can be checked out | Check your license set-up, see Licensing. |
| Not enough memory | Increase SHIPFLOWMEM to at least the value printed in the output file, see SHIPFLOWMEM. |
More problems and solutions are collected in Troubleshooting.
The Notepad++ editor¶
Notepad++ is a free source-code editor. The version included with SHIPFLOW is customised for running SHIPFLOW computations on Windows: you can start the SHIPFLOW solver from it, and it provides syntax highlighting and automatic completion of SHIPFLOW commands.
Set up Notepad++¶
SHIPFLOW includes a compiled version of Notepad++ in the shipflow\npp directory. It is the regular
zipped binary distribution from notepad-plus-plus.org, with
predefined shortcuts and the SHIPFLOW language extension added in the files shortcuts.xml,
userDefineLang.xml and SHIPFLOW.api. To add SHIPFLOW support to an existing Notepad++
installation, add these files to it.
To make Windows offer Notepad++ for opening files:
- In File Explorer, open a text file, for example the SHIPFLOW example file
test1. - Choose to browse for an application, and select
shipflow\npp\notepad++.exe.
From then on, Notepad++ is available as a program to open files with.
To open SHIPFLOW command files in Notepad++ automatically, give them the extension .sfl, for
example test.sfl. The first time you open such a file from File Explorer, select Notepad++ as the
default application for .sfl files.
Edit command files¶
You open and edit a command file like any other text file. A file without a specific extension opens without syntax highlighting:
To highlight the command file sections and keywords, select Language → SHIPFLOW. Files with the
extension .sfl are recognised as SHIPFLOW command files and highlighted automatically.
The editor can also complete keywords for you. Type the first letters of a keyword and press Ctrl+Space. If several keywords match, choose one with the up and down arrow keys and press Enter.
Run SHIPFLOW from Notepad++¶
You can run a computation directly from the editor with the commands in the Run menu. The command file must be in the active tab, that is, visible on the screen.
| Menu command | Shortcut | What it does |
|---|---|---|
| Run → Shipflow | Alt+S | Runs SHIPFLOW with the command file. The progress is shown in a terminal window that opens automatically. |
| Run → id_OUTPUT | Alt+O | Opens the OUTPUT file of the computation in a separate tab. |
| Run → SPOST | Alt+P | Starts the SPOST post-processor. Since SHIPFLOW 5.0, SPOST has been replaced by post-processing that is fully integrated in the SHIPFLOW GUI. |
Appendix A: License manager applications¶
Applications¶
sglmserver— the actual license server. The client software communicates with it over the TCP/IP network protocol, whether the client runs on the same computer, on a local area network (LAN) or over the internet. The license server keeps track of the total number of licenses and how many remain for each licensed component. It uses a license file to control which components are valid, for how long, and how many licenses there are for each component.sglmd— the license daemon (a Service on Windows). The license server can run on its own, but if the license daemon runs it, the daemon detects if anything happens to the license server and tries to restart it. This minimises the impact of an uncontrolled termination of the license server. On Windows, this daemon is also used if you want to run the license manager as a Windows Service.sglmutil— the license manager utility. It can shut down the license server, show which licenses the server has available, and on Windows install and remove the license manager service.
The license manager applications are installed with the licensing tools.
Running the license server¶
The license server can be run in a terminal or cmd window, for testing or on a regular basis. On
UNIX and Linux systems it can run in the background from a terminal window with the optional -b
flag. On Windows, it is best to run it as a Service. Because it can be useful to track the activity
of the license server, you can specify a log file for all output from the server, both when it runs
from a terminal window and when it runs as a Service. On Linux, the log file can also be /dev/null
if you do not want any output.
Limits¶
The license server supports a maximum of 64 components, 64 checked-out components per user, and 256 concurrent users, unless these limits are overridden at startup.
Command reference¶
sglmutil
sglmutil -c shutdown -f <license_file>
sglmutil -c restart -f <license_file>
sglmutil -c show -f <license_file>
sglmutil -c install -s <service_name> -f <license_file> -d <debug_log> -p <path_to_sglmd> -v <path_to_sglmserver> -m <max_connections> {-x <csv_log_file>}
sglmutil -c remove -s <service_name>
| Command | Description |
|---|---|
shutdown |
Shuts down the license server that runs the specified license file. |
restart |
Restarts the license server that runs the specified license file. |
show |
Shows which licenses are served by the license server of the specified file. |
install |
Installs the license service on Windows. If an argument contains spaces, enclose it in double quotes, for example -s "my license manager". |
remove |
Uninstalls the license service on Windows. Stop the service first. |
sglmd
sglmd {-b} -v <license_server> -f <license_file> {-d <debug_log_file>} {-m <max_connections>} {-x <csv_log_file>}
Uses the license daemon to start the license server with the licenses in the license file, and optionally writes the output to a log file.
-m <max_connections>overrides the default of 256 separate client applications that can connect to the license server. Each connection is a thread, so the practical maximum depends on your system configuration.-brunssglmdandsglmserverin the background. This option is only for non-Windows platforms.-x <csv_log_file>writes a CSV log file that you can use to graph license usage over time — by user, component, version or any other criterion — with any graphing tool, for example Google Sheets.
sglmserver
Starts the license server on its own, without automatic restart. Always use sglmd to control and
start sglmserver, because sglmd makes sure that the server keeps running.
- To specify
max_connectionswithout a debug log file, pass the stringnullas the second argument. - To specify
csv_log_filewithoutmax_connections, pass the stringnullas the third argument.
The server license file¶
The license file contains a SERVER line with the computer name, the id that the license server is
locked to, and the TCP/IP port number that client applications use to communicate with the server.
It also contains a license count for each component. Example of a server license file:
SERVER=localhost ID=001f5bf5b08f IDTYPE=ethernet PORT=29750
NAME=tree VERS=4.0 ID=001f5bf5b08f IDTYPE=ethernet COUNT=12 EXPIRES=never CERT=e7fdb38c0e90c925c28368decf979e19
NAME=monkey VERS=4.0 ID=001f5bf5b08f IDTYPE=ethernet COUNT=12 EXPIRES=never CERT=e6fcad8c0e95a357d5f57accc1ee9c11
NAME=banana VERS=4.0 ID=001f5bf5b08f IDTYPE=ethernet COUNT=12 EXPIRES=never CERT=a287a6e27791de5cb88077a9d4eb87
This file locks the entire license file to the computer with this ethernet address. It serves three
components, tree, banana and monkey, with twelve licenses each that can be checked out at the
same time; a thirteenth checkout fails.
Once the license file has been generated for the computer, start the license manager with that file. Example:
$ sglmd -v sglmserver -f float.lic
2016/01/07 07:35:57 Server starting on localhost, port 29750, max components 64, max connections 256
Action Component Version Count Expires
Enabling tree 4.0 10 never
Enabling monkey 4.0 10 never
Enabling banana 4.0 10 never
Ready...
Serving several versions of a component¶
One license server can serve different versions of the same component. List the lines for the same
component in numerical order of version, from lowest to highest. A version 4.0 application then
checks out the VERS=4.0 licenses first, before it spills over to the 5.0 licenses; in reverse order,
a version 4.0 application would check out the VERS=5.0 licenses first. When version 5.0 of the
software requests a 5.0 license, only 5.0 licenses are used. Example of a license file with the same
component in two versions:
SERVER=localhost ID=001f5bf5b09f IDTYPE=ethernet PORT=29750
NAME=monkey VERS=4.0 ID=001f5bf5b09f IDTYPE=ethernet COUNT=12 EXPIRES=never CERT=c6bf634c55dff68e3417eeaa6abd36dfcb
NAME=monkey VERS=5.0 ID=001f5bf5b09f IDTYPE=ethernet COUNT=12 EXPIRES=never CERT=c0d918435bbfee94227888c772c948d8d3
Expired licenses¶
If a license expires while the license manager is running, that license is disabled. The license
server checks for expired licenses once every hour, counted from the minute it was started. For
each expired license, the server logs a DISABLING message; if a license was disabled for another
reason, the message gives that reason.





