Networks tutorial: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
}}
}}
==Introduction to networks==
==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 a separate data layer in a [[project]], 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:
Networks are composed of a number of datatypes:
Line 15: Line 15:


These datatypes form the actual network. However, when discussing networks in the {{software}}, the following datatypes are of importance when dealing with networks:
These datatypes form the actual network. However, when discussing networks in the {{software}}, the following datatypes are of importance when dealing with networks:
* [[Net Function]]s: Just like [[construction]]s 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 Function]]s: Just like [[building]]s 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 Cluster]]s: 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.
* [[Net Cluster]]s: 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, for example by visualizing them as [[popup]]s in the [[3D Visualization]].
{{page_break}}
{{page_break}}


Line 39: Line 39:
{{editor location|net edit}}
{{editor location|net edit}}
[[File:network-bottom-edit-add.jpg|350px|frame|center|The network editing options in the bottom panel.]]
[[File:network-bottom-edit-add.jpg|350px|frame|center|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.
Click in a location in the [[3D Visualization]] 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 Visualization.
[[File:network-draw1.jpg|350px|frame|center|The first drawn net line.]]
[[File:network-draw1.jpg|350px|frame|center|The first drawn net line.]]
{{page_break}}
{{page_break}}
Line 164: Line 164:
[[File:network-wizard-network-function.jpg|350px|frame|center|Select the default Electricity Line function.]]
[[File:network-wizard-network-function.jpg|350px|frame|center|Select the default Electricity Line function.]]


You will be prompted to place the initial root of the network somewhere in the 3D world. Opt to draw the root load in the map (and to switch to the 3D View to perform the action).
You will be prompted to place the initial root of the network somewhere in the project area. Opt to draw the root load in the map (and to switch to the [[3D Visualization]] to perform the action).
[[File:network-wizard-network-opt-root.jpg|350px|frame|center|Opt to draw the root in the 3D world, and then choose to go to the 3D world to do so.]]
[[File:network-wizard-network-opt-root.jpg|350px|frame|center|Opt to draw the root in the project, and then choose to go to the 3D Visualization to do so.]]


Click in a location in the 3D world to place the root load there. Preferably, place it near the edge of the residential neighborhood.
Click in a location in the 3D Visualization to place the root load there. Preferably, place it near the edge of the residential neighborhood.
[[File:network-wizard-network-root.jpg|350px|frame|center|The root placed in the 3D world by clicking there.]]
[[File:network-wizard-network-root.jpg|350px|frame|center|The root placed in the project by clicking there in the 3D Visualization.]]
{{page_break}}
{{page_break}}


Line 181: Line 181:
[[File:network-wizard-network-validation.jpg|350px|frame|center|The wizard will validate that the generated network has no errors.]]
[[File:network-wizard-network-validation.jpg|350px|frame|center|The wizard will validate that the generated network has no errors.]]


This concludes the generation of the network itself. If you minimize (not close) the wizard window, you will be able to see the network in the 3D world.
This concludes the generation of the network itself. If you minimize (not close) the wizard window, you will be able to see the network in the [[3D Visualization]].
[[File:network-wizard-network-3D.jpg|350px|frame|center|Finish the network generation step of the wizard.]]
[[File:network-wizard-network-3D.jpg|350px|frame|center|Finish the network generation step of the wizard.]]
{{page_break}}
{{page_break}}
Line 216: Line 216:
{{page_break}}
{{page_break}}


Continue through the remaining steps of the wizard and complete it. The wizard window will close and you will be returned to the 3D world.
Continue through the remaining steps of the wizard and complete it. The wizard window will close and you will be returned to the 3D Visualization.
[[File:network-wizard-finished.jpg|350px|frame|center|The wizard is now finished.]]
[[File:network-wizard-finished.jpg|350px|frame|center|The wizard is now finished.]]


Feel free to look around the 3D world and see how the network has been generated.
Feel free to look around using the 3D Visualization and see how the network has been generated.


Take note of the cluster symbols which have appeared.
Take note of the cluster symbols which have appeared.
[[File:network-popup-clusters.jpg|350px|frame|center|Symbols in the 3D world indicating the presence of clustered net loads.]]
[[File:network-popup-clusters.jpg|350px|frame|center|Symbols in the 3D Visualization indicating the presence of clustered net loads.]]


These mark the locations of clusters of net loads. They consist of one or more colored figures. The quantity indicates whether the cluster should be considered a clustering of individual connections, or a single connection serving multiple addresses. The color indicates which [[stakeholder]] owns the cluster.
These mark the locations of clusters of net loads. They consist of one or more colored figures. The quantity indicates whether the cluster should be considered a clustering of individual connections, or a single connection serving multiple addresses. The color indicates which [[stakeholder]] owns the cluster.
Line 292: Line 292:
Select "Apply Template", and the necessary instances of this panel will be created.
Select "Apply Template", and the necessary instances of this panel will be created.


Note that no new popups have appeared in the 3D world. For the net owner the popups are configured such that they will only appear when the net owner has a decision to make. The owner of the cluster still has to make the first connection before the popup will appear.
Note that no new popups have appeared in the 3D Visualization. For the net owner the popups are configured such that they will only appear when the net owner has a decision to make. The owner of the cluster still has to make the first connection before the popup will appear.


Switch back to the stakeholder who owns the cluster, open the popup, and click on "Connect". Then wait for the testrun to start and the connections to be made.
Switch back to the stakeholder who owns the cluster, open the popup, and click on "Connect". Then wait for the testrun to start and the connections to be made.

Latest revision as of 14:30, 30 January 2023

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. 

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 project, 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 form 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 buildings 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, for example by visualizing them as popups in the 3D Visualization.

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.

Select the currently inactive electricity network.

Make sure it's activated in the right panel, by checking the "Active" checkbox.

Set the network to be active.

Drawing networks

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 Visualization 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 Visualization.

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.

If at any point during this proces you place a net line where you don't want one, select the "remove" option in the bottom panel. You can then click on the net line you misplaced to remove it. Then, you can switch the setting back to "Add" to resume drawing new net lines.

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.

Adding net loads

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.

The leftmost net load is a "producer". The other net loads are "consumers".

Because the net loads have a negative "FLOW" attribute, their associated net nodes are points of resource consumption. In terms of an electricity network, this would for example be a house, or a factory.

For our initial inspection of the network, it will also be desirable to set the timestate of all net loads to "READY". The timestate predicates whether the net load is actually "active" on the network. In other words, it sets a net load to be connected or disconnected to the network, and thus whether to take their "FLOW" into account during calculations. "NOTHING" means the net load is disconnected. "READY" means the net load is connected and active.

For each net load, change the timestate from "NOTHING" to "READY".

The timestate setting dictates whether the net load is active or not.

Lastly, we need to set a "root" for the network. This is a net load which serves as a sort of anchor for calculations. By convention, if a network only has a single producer it is usually set as root.

Select the producer net load, and in the "General" tab make sure "Is Root" is checked. This sets this net load as the root of the network.

The "Is Root" setting anchors the network at this net load's net node.

It will now also be listed in the left panel under the "Roots" category, rather than "Unclustered".

Network calculations

Now start a testrun. You may see parts of the network disappear. Specifically, the parts of the network which are not on the path between the consumers and the producer.

The network appears to be only partially active during a testrun.
Editor → Current Situation (Ribbon tab) → Networks (Ribbon bar) → Show Lines (Dropdown)
Open the net lines menu.

Select a net line, and inspect the "FLOW" attribute. Repeat this for a number of net lines, and see that the net lines have varying "FLOW" attributes.

Net lines now have a calculated flow.

Stop the testrun, and see that the FLOW attribute disappears.

This forms the basis of simple, manual network creation and configuration.

Assignments

These assignments guide you to further explore the basic calculation functionality already exposed with a basic network.

  1. Increase the amount of electricity the consumers require, so that the sum of their consumption exceeds that of the producer. Inspect the net lines during a testrun to see the consequences. Increased consumption should lead to greater FLOW values in the net lines attached to them. Stop the testrun afterwards.
  2. Add an additional line to the network branching off somewhere along the middle, which then branches off further into two endpoints. Add an additional consumer to one endpoint, and an additional producer to the other endpoint. Inspect the net lines during a testrun to see the consequences. The FLOW in the net lines should take into account where (additional) production is present. Stop the testrun afterwards.
  3. Set the timestate of one or two net loads to "NOTHING". Inspect the net lines during a testrun to see the consequences. Stop the testrun afterwards.

Network generation

Creating a network manually is only rarely the preferred situation, especially when dealing with larger project areas. For these situations, the Tygron Platform also offers a wizard to generate a complete network automatically.

Open the network wizard.

Editor → Current Situation (Ribbon tab) → Networks (Ribbon bar) → Network wizard (Dropdown)
The network wizard will open in a separate window.

The wizard will guide you through the process, but during the generation process a number of questions will require your input. For any question posed without an explicit instruction listed here, simply use the default settings.

One of the first questions posed is which network type to edit. Select the "ELECTRICITY" network, and opt for "Clear Network" (including the Root Load). This will delete the entire network as it had been created so far.

Clear the existing network.

Then opt to edit the network of the "ELECTRICITY" network type.

Opt to edit the network type.

When prompted, opt to generate a (new) set of net loads.

Choose to generate a new collection of net loads.

When prompted, select a neighborhood in your project with residential buildings.

Select the residential projects in your neighborhood.

When prompted, select all stakeholders.

Select all stakeholders.

By default, one of the selected options in the wizards is to simultaneously create the paths connecting all the net loads. This will automatically enable a number of additional wizard steps to perform this process. Make sure this options is still checked when continuing past the screen with this option.

Make sure the "Create paths" option is checked.

When prompted, select the default Electricity line function.

Select the default Electricity Line function.

You will be prompted to place the initial root of the network somewhere in the project area. Opt to draw the root load in the map (and to switch to the 3D Visualization to perform the action).

Opt to draw the root in the project, and then choose to go to the 3D Visualization to do so.

Click in a location in the 3D Visualization to place the root load there. Preferably, place it near the edge of the residential neighborhood.

The root placed in the project by clicking there in the 3D Visualization.

Finally, you will be prompted to initiate the actual process of generating the network. Click on "Generate" to begin this process.

Select "Generate" to begin the network generation process.

After the generation process has completed, you will be able to finish this step of the wizard.

Finish the network generation step of the wizard.

The results pass through a validation step. If everything went well, it should report that the network is valid. However, it is possible that the generation algorithm has caused a few minor errors, such as a few loads placed in locations where the network cannot reach. In these cases, the next step in the wizard will propose a number of options to fix these issues. For the purpose of this tutorial, it is sufficient to opt to delete any erroneously unconnected sections, if present.

The wizard will validate that the generated network has no errors.

This concludes the generation of the network itself. If you minimize (not close) the wizard window, you will be able to see the network in the 3D Visualization.

Finish the network generation step of the wizard.

Next, the wizard can guide you through the generation of the associated clusters for the network. Opt to generate clusters.

Opt to generate clusters for the network's net loads.

When prompted, select all neighborhoods. The neighborhoods listed include only those with net loads. Notice that this might be more neighborhoods than when you generated the network, if any net loads have been placed on or near the edge of certain neighborhoods.

Select all neighborhoods. The listed neighborhoods are those with net loads.

When prompted, select all stakeholders.

Select all stakeholders.

For the cluster method, take a moment to inspect the options available for cluster generation. However, the default option for cluster generation (generating clusters based on squares in the city map) is appropriate.

The various cluster generation options.

Finally, you will be prompted to initiate the actual process of generating the clusters. Click on "Generate" to begin this process.

Select "Generate" to begin the cluster generation process.

After the generation process has completed, you will be able to finish this step of the wizard.

Finish the cluster generation step of the wizard.

The results pass through a validation step. If everything went well, it should report that all loads in the network have been clustered. However, it is possible that the generation algorithm has caused a few minor errors, such as a few loads which have not been clustered. You will be informed that these net loads need to be removed from the project. In the editor interface, open the list of all net loads, and remove all net loads which are still categorized in the "unclustered" category.

The wizard will validate that the generated clusters provide full coverage of all net loads.

Now that the clusters have been generated, the potentially hundreds or thousands of net loads in the project area have been grouped in at most a few dozen clusters. These collections of net loads allow a large number of net loads to be controlled en masse. The wizard will offer to generate a set of standardized panels to allow this control.

Opt to generate Template Excel Panels.

Opt to generate panels to control the clusters.

A new template panel will be created. This requires no further work to configure.

Continue through the remaining steps of the wizard and complete it. The wizard window will close and you will be returned to the 3D Visualization.

The wizard is now finished.

Feel free to look around using the 3D Visualization and see how the network has been generated.

Take note of the cluster symbols which have appeared.

Symbols in the 3D Visualization indicating the presence of clustered net loads.

These mark the locations of clusters of net loads. They consist of one or more colored figures. The quantity indicates whether the cluster should be considered a clustering of individual connections, or a single connection serving multiple addresses. The color indicates which stakeholder owns the cluster.

Find a cluster, and switch to the stakeholder associated with the cluster.

Switch to a stakeholder who owns a cluster, such as a housing corporation.

You will see a popup is available in this stakeholder's perspective, associated with the cluster.

The popup serves as a way to control the cluster.

Click on it to open the panel related to the cluster.

The panel to control the cluster.

It will display some basic information on the connections which are grouped together in this cluster.

Close the panel for now.

Interacting with a generated network

Start a testrun.

You will notice that the entire network has disappeared at the start of the testrun. This is because one of the default settings in the network wizard is to generate the network in the timestate "NOTHING", meaning all (consumer) net loads begin as disconnected.

The net lines have disappeared.

Click on the popup again, and click on "Connect". This will fire a request to connect all the connections of the cluster to the network.

The net lines have reappeared.

Notice that the net lines have now reappeared in the session, but only the net lines which lead to the connections which have been connected as part of the cluster. If you zoom out you can see more clearly that only some of the net lines have (re)appeared.

Reopen the popup, and click on "Disconnect". This will undo the connections and return the network to an entirely disconnected state.

After this has completed, click on "Connect" again. The popup will indicate that a request to make these connections has been sent to the network owner (by default the municipality).

The popup has changed, and another stakeholder must interact with the network.

What parts of a network are or aren't connected are decided by all relevant stakeholders together. By default, the configuration provided for to approach this use-case allows for the first connection to be made unilaterally, but if any party has decided to undo that connection, the next time such a connection is to be made both parties must agree to it: both the owner of the connections and the owner of the network.

If you switch your stakeholder to the network owner, you will notice that the network owner does not see a popup yet. This is because the network generation wizard does not automatically create a set of panels for the network owner.

Stop the testrun, so that additional panels can be added.

Editor → Current Situation (Ribbon tab) → Panels (Ribbon bar)

In the list of panels, find the "Network Interaction" panel and select it. Take care to select the template panel, rather than one of the instances.

The popup has changed, and another stakeholder must interact with the network.

Notice in the right panel that the options "Assign to stakeholder" and "use owner" are checked. This means that the panel is only single to a visible stakeholder, namely the owner of the cluster the panel is assigned to.

The stakeholder configuration for the existing panel for network interaction.

At the bottom of the left panel (while the "Network Interaction" panel is still selected) select "Duplicate". This will create a new template panel based on the previous template panel.

The stakeholder configuration for the existing panel for network interaction.

In the right panel, uncheck the "Use owner" checkbox. Directly below, ensure the stakeholder dropdown is set to the stakeholder who's also the network owner. By default, the network owner is the municipality, so ensure that the dropdown is set to them. Lastly, activate the relational filter, and set its value to "NETOWNER". This will cause panels to be generated for that specific stakeholder, for each cluster of which they are the net owner.

The stakeholder configuration for the existing panel for network interaction.

Note that for simple cases, a single stakeholder can be the net owner for all clusters in a network. However, in more complex setups it is possible to have multiple net owners. In these cases, additional panels should be created for each net owner. The configuration you just created will automatically generate their panels for all clusters under their jurisdiction.

Select "Apply Template", and the necessary instances of this panel will be created.

Note that no new popups have appeared in the 3D Visualization. For the net owner the popups are configured such that they will only appear when the net owner has a decision to make. The owner of the cluster still has to make the first connection before the popup will appear.

Switch back to the stakeholder who owns the cluster, open the popup, and click on "Connect". Then wait for the testrun to start and the connections to be made.

Switch to the network owner. Now, the connected cluster does have a popup. This is because the network owner has the ability to reject connections. Open the popup, and you will see it contains the same information the owner of the cluster has.

The network owner can force the cluster to disconnect.

Opt to disconnect the cluster.

The net lines will disappear, because the connections will be undone, similar to when the owner of the cluster opts to disconnect. The cluster's popup for the network owner will disappear as well. The initiative to reconnect the cluster must come form the cluster owner.

Close the panel, and switch to the stakeholder who owns the cluster. Opt to reconnect the cluster, and the popup and panel will indicate the network owner must approve of the connection.

Switch to the network owner, and notice a popup is now visible, drawing attention as well.

The network owner's popup has appeared, and will draw attention if it's outside the current camera view.

Open the panel. It will have two explicit options to approve or deny the connection.

The network owner's popup contains options both to approve and deny the request.

The network owner can decide, based on their own insights and dialog with the cluster's owner, whether to let the cluster be connected, or to revert it to a disconnected state. As long as the network owner does not explicitly allow the connection, the cluster will remain disconnected.

Opt to deny the connection by clicking on 'Disconnect'. Notice the cluster remains disconnected, and the popup disappears again.

As the cluster owner, opt to connect the cluster again. Now, as network owner, opt to approve the connection by clicking on 'Connect' in its popup. Notice the cluster is now connected.

Stop the testrun, so all connections are removed again.

Configure default interactions

The default process for connecting and disconnecting clusters can be tweaked.

Reopen the network wizard, and continue to the "Visualization" step.

The options for configuring the approval process.

There are two options available for tweaking the approval flow.

  • Netowner approval required: Whether the network owner needs to approve any connection before a connection is made.
  • Direct connect first request: If the network owner needs to approve connections, whether the first connection request is automatically approved.

By default, both options are checked, meaning that the first connection is automatically approved, but all subsequent approval requests must be approved by the network owner.

Assignments

These assignments guide some experimentation with tweaking the approval flow of networks.

  1. Disable the "Direct connect first request" setting, and start a testrun. Completely connect a cluster. Stop the testrun afterwards.
  2. Disable the "Netowner approval required" setting, and start a testrun. Connect a cluster, and note at what point the network owner is able to prevent or counter the connection of the cluster. Stop the testrun afterwards.
  3. In the first step of the network wizard, set the default connection status for the network to "READY". Start a testrun. Experiment with disconnecting and connecting a cluster. Stop the testrun afterwards.
  4. Re-enable the "Direct connect first request" and "Netowner approval required" settings. Start a testrun. Experiment with disconnecting and connecting a cluster. Stop the testrun afterwards.

Tutorial completed

Congratulations. You have now completed this tutorial. In it, you have learned how to manually and automatically create networks in your project, and interact with the network using the default interaction options.