Tutorial 1#
The download holds the folder tutorial_1 with a skeleton tutorial_1.nav and an includes folder with define.inc and events.inc, which you fill in as you go. Unzip it where you want to work. An example solution is at the bottom of this page.
Why are you doing this tutorial?
This tutorial gives you an introduction into how Navigate works, and a walk-through of how to build the necessary input files. This should help you understand the main concepts of Navigate and introduce how to build a Navigate simulation model using assumptions about the fleet, technologies, and fuels.
How does it work?
In this document, you have several action points. Mostly, these action points involve writing instructions to define nodes and their attributes, which you do by writing/copying the Navigate instructions from this document into your own working file. The input files created in this tutorial reflect the minimum input that you need to get Navigate to run a simulation and receive output.
The DEFINE Input File#
Now you will build the define.inc file that you referred to in your tutorial_1.nav file.
Open the define.inc file located under tutorial/include/define.inc
Create a
ModelDefinitionwhich is a formal requirement for the file. Define a start date for the model, for which we use01/01/2025. Later, you will define intermediate annual time steps until 2050.
ModelDefinition {
StartDate = "01/01/2025"
}
Definition of a Node#
You will now learn what a node is. In this example, the node is a fuel node and is called "low_sulfur_fuel_oil". A node consists of attributes to which you can assign values or other relevant assumptions for an overview of a node’s components.

In the instructions, everything within the brackets {} are assignments on the Fuel node low_sulfur_fuel_oil. Everything left of an equal sign is an attribute to the specific node. Everything on the right side of an equal sign is the value assigned to the attribute – values can be an ID, a separate node, or a number dependent on the specific attribute being assigned to. If the value of an attribute is another node then that node needs to be defined separately. We e.g., assign a node of the type Variable to the Fuel attribute LowerHeatingValue. In the defaults made by Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping, and found in Navigate/assumptions/defaults/* variables such as the Lower heating value of fuel oil are defined. For simplicity these are not imported in this tutorial modeling, where you will be defining such values yourself. The node ModelDefinition you previously defined belongs to a group of unique nodes called General Nodes. Assignment of attributes to these works similar to other nodes but the difference is that general nodes do not have names. This is because only one can be defined per simulation.
Time to define your first node
Define the node
"fleet"with the node typeFleet.
Fleet "fleet" {
}
Save your edits.
Definition of a Fleet#
We are going to define a vessel node "vessel_ice_oil".
A Fleet needs vessels, so the node Vessel needs to be defined. Define Vessel with the node called
"vessel_ice_oil".
Vessel "vessel_ice_oil" {
}
Update
"Fleet": You have already defined the node"fleet"with the node typeFleet. Insert Vessel with the node called"vessel_ice_oil"between the curly brackets of the fleet node definition. In this example, you only have one type of vessel which is a “vessel_ice_oil”. More vessel types can be included, as long as each of them is defined in the DEFINE section. “vessel” is in place of the specific vessel type that you will want to simulate. The"ice"is an abbreviation for “internal combustion engine”, which is the engine type that extract the energy from fuel"oil". The naming is therefore"vessel type"_"engine type"_"fuel type". This is a naming convention we use but is not required; a node can be named anything.
The FuelSensitivity and VariantSensitivity attributes calibrate the discrete choice model, i.e., the model that predicts what percentage of newbuilds will be of fuel type A or B or C, in combination with engine technology X, Y or Z.
The
FuelSensitivityattribute controls how strongly the choice between fuel types responds to the levelized cost of transport (LCOT) of each vessel option. Its value is an odds ratio: a value of0.5means a fuel whose LCOT is 10% higher receives half the odds of an otherwise identical fuel (lower cost is better, so use a value below1).The
VariantSensitivityattribute does the same for the choice between engine technologies within a single fuel type (different engine technologies are for example combustion engines vs. fuel cells). A value of0.5likewise means a 10% higher LCOT halves the odds.InitialVesselsdescribes the number of vessels present at the defined start date. LikeVessels, which the error message you saw earlier named,InitialVesselsis a mandatory attribute for the node “fleet”.
Fleet "fleet" {
Vessels = [Vessel("vessel_ice_oil")]
FuelSensitivity = 0.5
VariantSensitivity = 0.5
InitialVessels = 100
}
Definition of a Vessel#
Define vessel node
"vessel_ice_oil": You already defined a Vessel with the node called"vessel_ice_oil".Within the curly brackets of the vessel node definition, now define the attributes
PropulsionConverter,ElectricalConverter, andHeatConverter. They name the converters that meet the vessel’s energy demands, which the next section explains. In this example, we will be using simplified converters that are exclusively powered through low sulfur fuel oil. Continue to define the other attributes within the curly brackets of the vessel node.Define a Route. The attribute Route allows input on the route that a reference ship is taking.
Set a value for NominalCapacity. Nominal Capacity describes the amount of cargo or load that the vessel can carry. In this example, our vessel can carry 8000 TEUs, i.e., 8000 containers of a certain size. This is an example value.
Define the attribute Tanks. It allows for input on the characteristics of one or more onboard tanks. The tanks store the fuel onboard the vessel.
Set a value for PropulsionLoad. It describes the propulsion load level at sea, i.e., how much power we need to move the reference vessel
"vessel_ice_oil". LoadLevel’s (propulsion, electrical, heat) generally describe power and therefore have the unit MW (mega-watt). It is not a mandatory attribute to run the model, but necessary if we want an output. We can assign a number, a Curve, or a Surface as the value of the attribute PropulsionLoad.
Vessel "vessel_ice_oil" {
PropulsionConverter = Converter("propulsion_ice_oil")
ElectricalConverter = Converter("electrical_ice_oil")
HeatConverter = Converter("heat_boiler_oil")
Route = Route("route")
NominalCapacity = 8000
Tanks = [Tank("main_oil")]
PropulsionLoad = 10
}
The converters of a Vessel#
In the definition of the node "vessel_ice_oil", the attributes PropulsionConverter, ElectricalConverter, and HeatConverter each have a value, and each value is a separate node of the type Converter.
We assume that there are different energy demands on a vessel. There is a propulsion demand, an electrical demand, and a heat demand onboard of any vessel. To meet these demands, the fuel is converted into energy by converters, e.g., by an engine.
Together, the three converters represent the reference vessel’s combination of engines and boilers, usually a main engine, an auxiliary engine, and a boiler. They must be three distinct converters.
PropulsionConverterdefines how the propulsion demand is met. Usually, the propulsion demand is met through the main engine propelling the vessel forward.ElectricalConverterdefines how the electrical demand is met. The electrical demand is often met through an auxiliary engine, which is mostly a smaller engine separate from the main engine.HeatConverterdefines how the heat demand is met. The demand is usually met through a boiler.
Definition of a Converter#
We introduced three new nodes of the type Converter in the definition of the node "vessel_ice_oil".
Each node needs to be defined by itself.
Define the node
"propulsion_ice_oil"of the node type Converter. This is the engine that propels the vessel forward.Define the engine’s attribute
PowerCapacity. The power capacity of an engine/boiler is the maximum power capacity of the converter in MW. This is equivalent to the horsepower of the engine for a car.Define the
MainFuelTypesthat the vessel can use. Each converter can use one or more fuel types. In this case, the main engine can only use one fuel type, namely fuel oil (OIL). The main fuel types of the main engine, the auxiliary engine, and the boiler are independent of each other, but depend on the number and type of available fuel tanks.Define
Efficiency. Efficiency defines the fraction of chemical energy (e.g., in a fuel) that is converted to kinetic energy (e.g., mechanical).
Converter "propulsion_ice_oil" {
PowerCapacity = 50
MainFuelTypes = OIL
Efficiency = 0.5
}
Analogously, define converter nodes for electrical ICE and heat boiler.
Define the node
"electrical_ice_oil"of the node type Converter, e.g. a generator that produces electricity. Similar to the"propulsion_ice_oil", assign the attributesPowerCapacity,MainFuelTypes, andEfficiencyto it.
Converter "electrical_ice_oil" {
PowerCapacity = 10
MainFuelTypes = OIL
Efficiency = 0.5
}
Define the node
"heat_boiler_oil"of the node type Converter. Define and assign the attributesPowerCapacity,MainFuelTypes, andEfficiencyas for"propulsion_ice_oil".
Converter "heat_boiler_oil" {
PowerCapacity = 5
MainFuelTypes = OIL
Efficiency = 0.5
}
Definitions of other nodes introduced in Vessel#
You introduced new nodes when you assigned them as values of the "vessel_ice_oil"’s attributes. Among them were the three converters which we defined in the above section.
Others include the definition of a route that the vessel sails, and a definition of a tank node.
The value assigned to the Ports attribute of a Route is a list, marked by square brackets. In this example, the list only contains one port.
Define the node
"main_oil"of the node typeTank. You can further specify the characteristics of the tank. For alternative fuels, a vessel can have a main and a pilot tank. Set the fuel types that the tank can hold. In this example, the tank can only use OIL, but we can also specify more than one fuel type. Therefore, we specify that the fuel oil tank is the “main” tank in the vessel. Set the tank’sVolume. It is given in cubic meters.
Tank "main_oil" {
FuelTypes = OIL
Volume = 9000
}
Define the node
"route"of the node typeRoute. Set theRouteType. This can be one of two values:LINERorTRAMP. ALINERsails its ports in the listed order, while aTRAMPdescribes a year of sailing between its ports in any order. Our example usesTRAMP. Set one or more ports at which a vessel stops. In our example, the vessel is only stopping at one port called"port". In your future Navigate modeling, the port often covers a whole region is specified as Africa, Americas, Asia, Europe and Middle East. Hence, a port is often used as a proxy for a region. Set theTimeAtSea, which defines the proportion of a year that a vessel spends at sea. In our example, the ship is at sea for (0.75*365 days) 273 full days a year. A leg is a voyage from one port to another. On aTRAMP, every pair of ports is a leg, a port with itself included, so our one port gives the one leg from"port"back to"port". The inputs of a leg are set with commands, writtenset_xxx(...)(commands are explained further with the Fuel node below). They address a leg by the names of its two ports, and the wildcard"*"matches every port. Set the distance shares withset_distance_share, which defines the share of the sea miles sailed on each leg (here: only one leg, i.e. all of the sea miles are sailed on the leg). Set the speed of the vessel withset_speed, given in knots, on each leg of the journey (here: only one leg).
Route "route" {
RouteType = TRAMP
Ports = [Port("port")]
TimeAtSea = 0.75
set_distance_share("*", "*", 1)
set_speed("*", "*", 10)
}
Definition of a Port#
Define the node
"port"with the node typePort. Set the price and the Well-to-Tank (WTT) emissions of the fuel in the port withset_fuel_priceandset_fuel_wtt. The fuel you define below belongs to a liquid market, so these are its only price and WTT emissions.
Port "port" {
set_fuel_price("heavy_fuel_oil", 250)
set_fuel_wtt("heavy_fuel_oil", "carbon_dioxide", 0.62)
}
Run navigate again after saving.
navigate tutorial_1.nav. You should receive the following error, prefixed with the location of theset_fuel_priceline:
'set_fuel_price' attempts to reference non-existing name(s) 'heavy_fuel_oil'.
Definition of a Fuel#
Fuels are defined separately from the vessels and the ports.
Define the node
"heavy_fuel_oil"with the node type Fuel.Set the
FuelType. Heavy fuel oil is one of several fuels that has the fuel type OIL. Different fuels can have the same fuel type, as a fuel essentially is a fuel-pathway (where the pathway describes how it was produced), so e.g., the fuel “blue ammonia” is different from “e-ammonia” due to the way they are produced (their pathway). In other words, blue and e-ammonia are two different fuels with the same fuel type.Set
LiquidMarkettoTRUE. This defines that the fuel belongs to a liquid market, meaning that its availability is unconstrained and its price and WTT emissions are the ones assigned on the port.Set the
LowerHeatingValue. Each fuel has a lower heating value which is a physical constant, so this value is not changed. The lower heating value describes the heat energy that is being released when the fuel is combusted at a certain temperature. Given in GJ/ton.Set the
MassDensity. Each fuel has a mass density which is a physical constant, so this value is not changed. Given in kg/m3.Add the Tank-to-Wake (TTW) emission factors of carbon dioxide, methane and nitrous oxide for the process of converting fuel to energy. The
set_ttw(..)marks a command in the Navigate syntax. Commands are similar to functions in programming languages, and have the syntaxset_xxx(key1, key2, value). A command can take 2-3 inputs. In this instance it only has 2 inputs, namely key1 and value. The unit of an emission factor is ton emissions/ton fuel.
Fuel "heavy_fuel_oil" {
FuelType = OIL
LiquidMarket = TRUE
LowerHeatingValue = 41.2
MassDensity = 0.9
set_ttw("carbon_dioxide", 3.114)
set_ttw("methane", 0.00005)
set_ttw("nitrous_oxide", 0.00018)
}
Definition of Emission#
Define the
Emissionnodes"carbon_dioxide","methane"and"nitrous_oxide"
Emission "carbon_dioxide" {
Gwp = 1
}
Emission "methane" {
Gwp = 25
}
Emission "nitrous_oxide" {
Gwp = 273
}
The EVENTS Input File#
Open the ‘includes’ folder and within open the
events.incfile.Define the
Start. You will define the End later.
Start
Because we want Navigate to run simulations until 2050, you need to define intermediate time steps until 2050. In this tutorial we have decided on annual time-steps, but one could also decide on 5-year time-steps or quarterly time-steps, for example. Define annual time-steps with a reference Date.
Date "01-01-2025"
Date "01-01-2026"
Date "01-01-2027"
Date "01-01-2028"
Date "01-01-2029"
Date "01-01-2030"
Date "01-01-2031"
Date "01-01-2032"
Date "01-01-2033"
Date "01-01-2034"
Date "01-01-2035"
Date "01-01-2036"
Date "01-01-2037"
Date "01-01-2038"
Date "01-01-2039"
Date "01-01-2040"
Date "01-01-2041"
Date "01-01-2042"
Date "01-01-2043"
Date "01-01-2044"
Date "01-01-2045"
Date "01-01-2046"
Date "01-01-2047"
Date "01-01-2048"
Date "01-01-2049"
Date "01-01-2050"
Let’s run Navigate and see if it works and we get an output.
Navigate should have run error-free now, with the terminal ending like this – well done, you’ve defined all the components necessary to run a simulation!
...
Date: 2050-01-01
Finished simulation, elapsed time: 0m and 5s.
The elapsed time differs from run to run. If the run logged warnings, one more line counts them and names the .log file to read them in.
Interpret the results#
Navigate has written the results of the run to the file tutorial_1.parquet in the tutorial_1 folder. Open it with Lantern, which shows the results as plots in your browser; you installed it in Setting up Navigate. In the terminal of the tutorial_1 folder, the one you ran navigate in, run:
lantern tutorial_1.parquet
Lantern opens the viewer in your browser. If no window appears, open the address it prints in the terminal, http://127.0.0.1:8050. The viewer lists the plots; click one to show it, and hover over it to read its values.
The terminal is busy for as long as the viewer runs. After another navigate run, click Refresh in the viewer to load the new results. Press Ctrl+C in the terminal to stop the viewer.
Take a look through the plots, for example the absolute emissions, the global fuel mix and the bunker price at the port, and interpret the results.
Outlook#
Let’s recap. You have created two input files and a Navigate (.nav) program file to run your first Navigate simulation:
define.incfile: This file includes nodes that access the navigate program. This file includes all the variables you want to investigate with your simulation.events.incfile: This file contains the timesteps that you want your simulation to take.
Together, the input from these three files allowed you to run a simulation in Navigate, and view its results in Lantern to compare e.g., global fuel demand and global emissions in different scenarios.
However, this minimalistic version of a Navigate model is of course extremely simplified so not particularly useful to make predictions. In most real-world fleets/scenarios, there are for example more than one vessel, more than one fuel, and a multitude of different routes that vessels take.
That is why in the next tutorial, you will add some complexity to the files you have already worked on - for example, adding more fuels and more vessels, so you can experiment with the output you receive and understand the principles of the Navigate analysis in more depth.
Example solution#
One way to complete this tutorial. Each box holds one file, at its path inside the tutorial_1 folder.
tutorial_1.nav
### START OF tutorial_1.nav FILE ###
# Define the model.
DEFINE {
Include "./includes/define.inc"
}
# Define the timeline and events.
EVENTS {
Include "./includes/events.inc"
}
### END OF tutorial_1.nav FILE ###
includes/define.inc
# This is an example of a DEFINE file with the minimum amount
# of parameters needed to run a meaningful modelling scenario in Navigate.
# Define ModelDefinition below.
ModelDefinition {
StartDate = "01/01/2025"
}
# A) DEFINITION OF A FLEET
# Define the node "fleet" below.
Fleet "fleet" {
Vessels = [Vessel("vessel_ice_oil")]
FuelSensitivity = 0.5
VariantSensitivity = 0.5
InitialVessels = 100
}
# B) DEFINITION OF A VESSEL
# Bi) Define vessel node "vessel_ice_oil" below.
Vessel "vessel_ice_oil" {
PropulsionConverter = Converter("propulsion_ice_oil")
ElectricalConverter = Converter("electrical_ice_oil")
HeatConverter = Converter("heat_boiler_oil")
Route = Route("route")
NominalCapacity = 8000
Tanks = [Tank("main_oil")]
PropulsionLoad = 10
}
# Define and assign attributes of the node "vessel_ice_oil"
# Above, edit the vessel node so that each attribute and its value is written within the curly
# brackets of the "vessel_ice_oil" node (i.e. PropulsionConverter, Route etc.).
# Bii) Define the converters assigned to "vessel_ice_oil".
# Define the node "propulsion_ice_oil" below.
Converter "propulsion_ice_oil" {
PowerCapacity = 50
MainFuelTypes = OIL
Efficiency = 0.5
}
# Define the node "electrical_ice_oil" below.
Converter "electrical_ice_oil" {
PowerCapacity = 10
MainFuelTypes = OIL
Efficiency = 0.5
}
# Define the node "heat_boiler_oil" below.
Converter "heat_boiler_oil" {
PowerCapacity = 5
MainFuelTypes = OIL
Efficiency = 0.5
}
# Biii) DEFINITION OF NODES THAT WERE INTRODUCED IN THE DEFINITION OF THE NODE "vessel_ice_oil".
# Define the node "main_oil" below.
Tank "main_oil" {
FuelTypes = OIL
Volume = 9000
}
# Define the node "route" below.
Route "route" {
RouteType = TRAMP
Ports = [Port("port")]
TimeAtSea = 0.75
set_distance_share("*", "*", 1)
set_speed("*", "*", 10)
}
# C) DEFINITION OF A PORT
# Define the node "port" below.
Port "port" {
set_fuel_price("heavy_fuel_oil", 250)
set_fuel_wtt("heavy_fuel_oil", "carbon_dioxide", 0.62)
}
# D) DEFINITION OF A FUEL
# Define the node "heavy_fuel_oil" below.
# Define the fuel node "heavy_fuel_oil" below.
Fuel "heavy_fuel_oil" {
FuelType = OIL
LiquidMarket = TRUE
LowerHeatingValue = 41.2
MassDensity = 0.9
set_ttw("carbon_dioxide", 3.114)
set_ttw("methane", 0.00005)
set_ttw("nitrous_oxide", 0.00018)
}
# E) DEFINITION OF A EMISSION
Emission "carbon_dioxide" {
Gwp = 1
}
Emission "methane" {
Gwp = 25
}
Emission "nitrous_oxide" {
Gwp = 273
}
# END OF NAV FILE
includes/events.inc
# This events file defines the timeline for the fleet transition module.
# Define the Start below.
Start
# A) TIME STEPS AND END OF TIMELINE
# Define annual time steps below.
Date "01-01-2025"
Date "01-01-2026"
Date "01-01-2027"
Date "01-01-2028"
Date "01-01-2029"
Date "01-01-2030"
Date "01-01-2031"
Date "01-01-2032"
Date "01-01-2033"
Date "01-01-2034"
Date "01-01-2035"
Date "01-01-2036"
Date "01-01-2037"
Date "01-01-2038"
Date "01-01-2039"
Date "01-01-2040"
Date "01-01-2041"
Date "01-01-2042"
Date "01-01-2043"
Date "01-01-2044"
Date "01-01-2045"
Date "01-01-2046"
Date "01-01-2047"
Date "01-01-2048"
Date "01-01-2049"
Date "01-01-2050"
# END OF events.inc FILE