Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinmatthijssen committed Sep 3, 2021
2 parents 35d9e32 + 127914f commit aefd8d5
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
61 changes: 60 additions & 1 deletion docs/source/basic_tasks/connecting_assets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,67 @@ If you switch the view mode to 'CHESS', this behaviour changes to (for drawing '
* Producer: 1 InPort and 1 OutPort
* Consumer: 1 InPort and 1 OutPort
* Storage: 1 InPort and 1 OutPort
* Conversion: *** To be discussed ***
* Conversion: 1 InPort and 1 OutPort
* Transport: 1 InPort and 1 OutPort

* There are two exceptions to this rule, for the Transformer and HeatExchange: They'll get 1 InPort and 1 OutPort
for the primary side and 1 InPort and 1 OutPort for the secondary side
* You can manually add more ports if required.


Connecting assets by using the ports
------------------------------------

There are two ways to connect assets:

1. You can connect the assets directly by connecting a port from one asset to the port of
another asset. Make sure the ports are different: an InPort can only be connected to an OutPort and vice versa.

.. image:: images/mapeditor_basictask_connect_ports.png
:alt: Connecting two asset by clicking on the ports.

You can connect one InPort to multiple OutPorts and vice versa.

* To connect assets in the MapEditor, click with the mouse on a port and a dotted line appears that can be directly
connected to another port (of a different type). To connect click on that port and the connection is made.
* When two ports are connected a dotted line between the assets is shown. The color of that dotted line is an
visualisation of the carrier of the Ports and can be configured via the View menu -> Carriers.
* Ports without carriers have a dark gray color.

2. You connect them by using a so called Conductor. Currently there are two types of Conductors: a Pipe and an ElectricityCable.

To ease the creation of networks of pipes or cables, there is a shortcut in the MapEditor to directly connect conductors to
assets (e.g. it makes the connection between the asset and the pipe/cable automatically).

To do that, use the line tool on the right side of the screen to
start drawing a pipe or a cable. Which one is drawn is shown at the top of the page and can be changed during drawing.

* To directly connect a conductor to an asset click on the port you want to connect and draw the pipe. *Make sure you
selected the line tool in the draw toolbar on the left.* You can add bends while drawing the Conductor by clicking on
the map.

* To connect directly to another asset, click the corresponding port of that asset. The MapEditor filters out only ports
of the correct type, e.g. when start drawing on an InPort (gray square), only OutPorts (black squares) are shown.
* To end the pipe/cable somewhere else on the map, click the last point of the line again to end drawing.


.. image:: images/mapeditor_basictask_connect_assets.png
:alt: Connecting two asset by using the Line tool

If you quickly want to connect two assets, you can also the Ctrl key: do Control+Click on a port. It will then start
to draw a port/cable directly, without selecting the line draw button from the toolbar first.

Keyboard shortcuts
------------------

* There are a few keyboard shortcuts to speed up drawing cables and pipes:

* Press the Ctrl-key before clicking a port (Ctrl + click), will directly turn on pipe/cable drawing.
* Press 'c' to draw a cable,
* Press 'p' to draw a pipe,
* Press 'a' to draw the last selected asset in the menu bar directly.

Make sure the map has focus to capture these shortcut keys, e.g. by clicking on the map itself first if that is not the case.



Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Sphinx==3.4.2
sphinx-rtd-theme==0.5.1
Sphinx==3.5.4
sphinx-rtd-theme==0.5.2

0 comments on commit aefd8d5

Please sign in to comment.