# Run RNM

![](/files/c3MDSRCiDgubyLqqIJRi)

![](/files/GHa90T7BLFZYsieNuW3D) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Run%20RNM.py)

Run a an URBANopt geoJSON and scenario through RNM.

The geoJSON must have a valid Road Network assigned to it in order to run correctly through RNM.

### Inputs

* **geojson \[Required]**

The path to an URBANopt-compatible geoJSON file. This geoJSON file can be obtained form the "DF Model to geoJSON" component. The geoJSON must have a valid Road Network assigned to it in order to run correctly through RNM.

* **scenario \[Required]**

The path to an URBANopt .csv file for the scenario. This CSV file can be obtained form the "DF Run URBANopt" component.

* **ug\_ratio**

A number between 0 and 1 for the ratio of overall cables that are underground vs. overhead in the analysis. (Default: 0.9).

* **include\_hv**

A boolean to note whether high voltage consumers should be included in the analysis. (Default: False).

* **nodes\_per\_bldg**

A positive integer for the maximum number of low voltage nodes to represent a single building. (Default: 1).

* **run \[Required]**

Set to "True" to run the geojson and scenario through RNM.

### Outputs

* **report**

Reports, errors, warnings, etc.

* **network**

The ElectricalNetwork object output from the RNM simulation. The properties of this object can be visualized with the "DF Color Network Attributes" component. However, the network can not be used for OpenDSS simulation (the dss\_files below should be used for this purpose).

* **dss\_results**

Path to the folder containing all of the OpenDSS files.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/dragonfly-primer/components/4_electricgrid/run_rnm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
