# Window Opening

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-957c2021fa46bb06fdfebd7885bd52086bfba154%2FWindow_Opening.png?alt=media)

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-6f9b2f5f60cba6db57ef3a874f63980f42516283%2FWindow_Opening.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src/DF%20Window%20Opening.py)

Define the window opening properties for all apertures of a Dragonfly Building, Story, Room2D or Model.

### Inputs

* **df\_objs \[Required]**

Dragonfly Buildings, Stories or Room2Ds to which window ventilation opening properties will be assigned. Note that this component assigns such properties to all Outdoor Apertures on the rooms. This can also be an entire Dragonfly Model.

* **vent\_cntrl \[Required]**

A Ventilation Control object from the "HB Ventilation Control" component, which dictates the opening behaviour of the Room's apertures.

* **fract\_area\_oper**

A number between 0.0 and 1.0 for the fraction of the window area that is operable. (Default: 0.5, typical of sliding windows).

* **fract\_height\_oper**

A number between 0.0 and 1.0 for the fraction of the distance from the bottom of the window to the top that is operable. (Default: 1.0, typical of windows that slide horizontally).

* **discharge\_coeff**

A number between 0.0 and 1.0 that will be multipled by the area of the window in the stack (buoyancy-driven) part of the equation to account for additional friction from window geometry, insect screens, etc. (Default: 0.45, for unobstructed windows with insect screens). This value should be lowered if windows are of an awning or casement type and not allowed to fully open. Some common values for this coefficient include the following.

```
* 0.0 - Completely discount stack ventilation from the calculation.

* 0.45 - For unobstructed windows with an insect screen.

* 0.65 - For unobstructed windows with NO insect screen.
```

* **wind\_cross\_vent**

Boolean to indicate if there is an opening of roughly equal area on the opposite side of the Room such that wind-driven cross ventilation will be induced. If False, the assumption is that the operable area is primarily on one side of the Room and there is no wind-driven ventilation. (Default: False)

### Outputs

* **report**

...

* **df\_objs**

The input Dragonfly object with their window-opening properties edited.


---

# 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/3_energy/window_opening.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.
