Networks tutorial

From Tygron Support wiki
Jump to navigation Jump to search

Template:Learned

This article is a stub.
Please note: This page is currently being updated.

Prerequisites

The following prerequisites should be met before starting this tutorial:

  • This tutorial relies on base knowledge about the editor interface. If you have not yet followed the tutorials related to those subjects please do so first.
  • This tutorial can be followed with any project of any arbitrary location. Recommended is to create or load a project in the editor with an urban residential area with multiple neighborhoods.
  • Microsoft Excel is required for completing this tutorial. 

Preparations

Take the following steps as preparation for following this tutorial:

  • Start your project. This can be a pre-existing project, or a newly created project.

Introduction to networks

Networks are a separate data layer in a 3D world, intended to model actual resource transport networks, such as for gas, heat, and internet. They are modeled as a mathematical graph consisting of vertices (points) and edges (lines connecting the points).

Networks are composed of a number of datatypes:

  • Net Nodes: These form the vertices of the network graph; the individual points which can be connected by lines. Net nodes cannot be directly edited as a discrete datatype as such, but are a relevant datatype to be aware of when working with networks.
  • Net Lines: These form the edges of the network; the connections between the points. Net lines are defined by the net nodes they connect, and for the connections between one point on the network and another.
  • Net Loads: These form a collection of properties for end-points on the network, and must be connected to any net node which forms an end-point on the network. This means that any net node which has only 1 net line connecting to it should have a net load connected to it. The net load defines the amount of the specified resource the endpoint produces or consumes.

These datatypes form the actual network. However, when discussing networks in the Tygron Platform, the following datatypes are of importance when dealing with networks:

  • Net Functions: Just like constructions being defined by a function definition, net lines have a net function definition as well. Any values not defined specifically for an individual net line, are derived from the net function definition.
  • Net Clusters: Net loads can be grouped together into clusters, to make interacting with the net loads more manageable for end users. Clusters are not directly part of the network but serve as an interface between the network and end-user methods to interact with the 3D world.

Creating a simple network

A good way to learn how these items work in tandem is to create a small network in which each of these parts are represented.

Pick a location in your map with a little bit of space. You're going to create a small network in this location.

Editor → Current Situation (Ribbon tab) → Networks (Ribbon bar)
The location of the network configurations.

First, activate the electrical network. Select the "Electricity" net type, and then make sure it's activated in the right panel.

Select the currently inactive electricity network.
Set the network to be active.

Next, we can draw the network.

Editor → Current Situation (Ribbon tab) → Networks (Ribbon bar) → Edit network (Dropdown)
The network editing options in the bottom panel.

Click in a location in the 3D world to set the first net node location. Click in another location to set the second net node location. You will see a net line appear in the 3D world.

The first drawn net line.

As you move the cursor, you will see a predicted line in bright yellow, which indicates where the next line will be placed when you click again.

The next potential line is visualized as you move the cursor.

Make the network circle back on itself, letting the last net line connect to one of the intermediate nodes.

A relatively simple network.

Click on the "Add" radio button in the bottom panel to "unfocus" the cursor from the current drawing action. Then click on any node to focus the drawing action there, and create a small offshoot from the network. Repeat this process a few times so the network has a couple of endpoints.

A relatively simple network with a few offshoots.

This series of net lines together form a very simple network. However, right now the network is just a collection of lines between points. The next step is to add net loads, the set of definitions which indicate what happens at a given endpoint.

Editor → Current Situation (Ribbon tab) → Networks (Ribbon bar) → Show Loads (Dropdown)
The location of the net loads editing option.

Add a net load to the project.

Add a net load.

The net load will be grouped in the "Unclustered" category, and then the "Electricity" network category. Select it.

The net load can be selected in the left menu.

The net load has been created, but it must be connected to a valid endpoint on the network, and it must be given attributes which for the definition of what happens at that endpoint.

First, we connect the node to an endpoint. Select "Select Node" at the bottom of the right panel.

The options to relate the net load to net nodes, and to geographical locations.

Next, click on the first endpoint of the network. You will see the load is placed on the exact same location of the net node you clicked on.

Click on the endpoint to connect the load to it.

Often times, the indicative location of the net load is not identical to the exact location of the endpoint of the network. For this reason, it is also possible to set a location for the net load which is more representative of where the load for the network is really coming from. At the bottom of the right panel, select "Set Position".

Next, click near the endpoint where the net load is connected. You will see the net load appear in the location that you clicked. It will still indicate the net node it is connected to via a line.

The net load now has a different location than the net node.

Notice that the network itself is unaltered. The net lines as we have drawn them are still the same.

Now that the net load has been associated with the network, attributes must be added to it to define its effect on the flow of the network. Switch the right panel to the "attributes" tab, and add a "FLOW" attribute with a value of 1000.

Add a FLOW attribute to the net load.

This net load now defines the connected net node to be a point of resource production. In terms of an electricity network, this would for example be a power station.

Add 2 more net loads to the project. Give them a FLOW attribute of -100, and connect them to different end-points on the network.