# How does blind states in daylight coefficient based simulation work?

**URL:** <https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535>\
**Category:** honeybee\[+\]\
**Created:** [January 30, 2018, 4:30pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535 "2018-01-30T16:30:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MingboPeng](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mingbopeng/32/5084_2.png) [@MingboPeng](https://discourse.ladybug.tools/u/MingboPeng)\
**Post date:** [January 30, 2018, 4:30pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/1 "2018-01-30T16:30:00Z")

</div>

Hey Oliver, by any chance that you tested the “states” in this case. for some reasons, the results from different state doesn’t make sense to me.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [January 30, 2018, 5:20pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/2 "2018-01-30T17:20:34Z")

</div>

Hi Mingbo, why is that? Which part doesn’t make sense to you?

---

<div class="post-metadata">

**Author:** ![MingboPeng](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mingbopeng/32/5084_2.png) [@MingboPeng](https://discourse.ladybug.tools/u/MingboPeng)\
**Post date:** [January 31, 2018, 10:32pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/3 "2018-01-31T22:32:59Z")

</div>

Hi @mostapha I was testing daylight coefficient workflows. Regardless the hour mismatching problem on direct illuminance data (I mentioned in the other post), switching states (VT-0.9, and VT-0.1) doesn’t do anything to the direct or diffuse result (minor +/- 50-100 lux) .

Is this “state” meaning the same as “state” in Daysim? this state setting is for Radiance to run several simulations with each state, correct?

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 1, 2018, 4:16pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/4 "2018-02-01T16:16:12Z")

</div>

> [@3-phase method example file - Direction of windows](https://discourse.ladybug.tools/t/3-phase-method-example-file-direction-of-windows/2520/6):
>
> Is this “state” meaning the same as “state” in Daysim? this state setting is for Radiance to run several simulations with each state, correct?

Yes and yes. If you see the folder you check the folder you will see 4 files for each state. For instance for `north_facing` window group and `dark_glass_0.25` state you will find these files:

1. `total..north_facing..dark_glass_0.25.ill`: This file includes the total contribution from Tregenza sky. (gendaymtx)
2. `direct..north_facing..dark_glass_0.25.ill`: This file includes the contribution from direct only Tregenza sky (gendaymtx -d). The −d option may be used to produce a sun-only matrix, with no sky contributions.
3. `sun..north_facing..dark_glass_0.25.ill`: This file includes the contribution of direct sun from hourly analemma. The values in this file will be used to correct the values inside direct file.
4. `north_facing..dark_glass_0.25.ill`: This is the final results which is = total - direct + sun.

You can add/remove the contribution of each source by using blind\_states input. You can also open the files and check the values from two different source if that is easier for comparison.

For future reference:

1. This naming convention is changing to a new naming convention:

> <https://github.com/ladybug-tools/honeybee/issues/194>
>
> The current convention is not human readable and can make confusion for users wh…en they get started. To address this issue I propose changes below.
> 
> For \`total values\` under \`Tregenza sky\` the name should change from \`total..window-group-name..state-name.ill\` to \`window-group-name..state-name..total-sky.ill\`.
> 
> For \`direct values\` under \`Tregenza sky\` the name should change from \`direct..window-group-name..state-name.ill\` to \`window-group-name..state-name..direct-sky.ill\`.
> 
> For \`direct values\` from \`sun\` the name should change from \`sun..window-group-name..state-name.ill\` to \`window-group-name..state-name..direct-sun.ill\`.
> 
> The \`final total value\` from total-sky - direct-sky + sun-sky the name should change from \`window-group-name..state-name.ill\` to \`window-group-name..state-name..total.ill\`
> 
> The values from \`window-group-name..state-name..total.ill\` and \`window-group-name..state-name..direct-sun.ill\`, if available, will be loaded to the database/analysis grid.

1. Soon there will also be a `radout.db` file will include all these results in one place. You can query the values for every combination from `Results` table.

> **[Daylighting simulation SQL database schema](https://github.com/ladybug-tools/honeybee/wiki/Daylighting-simulation-SQL-database-schema)**
>
> :honeybee: A python library to create, run and visualize radiance studies. Core library of Honeybee\[+\]. - ladybug-tools/honeybee

---

<div class="post-metadata">

**Author:** ![MingboPeng](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mingbopeng/32/5084_2.png) [@MingboPeng](https://discourse.ladybug.tools/u/MingboPeng)\
**Post date:** [February 2, 2018, 3:59pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/5 "2018-02-02T15:59:22Z")

</div>

ok, thanks for clarify. now I think I was understanding “states” correctly.  
So here is problem:  
I am just trying to test if states work correctly in DC simulation. The model here is a simple box model only with one facade has window.  
I ran two VT (5%, 60%) individually without any state setting, and here are illuminance results at 2pm of Dec21st:  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/2/2dddfc73ab3f31a76564a0d80ac604f8f9b7f121.png)  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/e/e19ac00907af8f60bbcaa790219250d331502055.png)

#################################################################################  
########################### **Below are simulations with state settings** ######################  
#################################################################################

Here is a screenshot of how I set states:

 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/d/db439c6200421d44890afe80be8d6a73ad55e1d9.png)  
and reading data from each state:  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/d/d82d34ba705ab0a19642784ea4da00dc2db26972.png)

**State (0,-1) without any window (light source)**  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/7/7d8e8b3980f9406cda86bdb3292e73390eac744d.png)

**State (0,0) normal state (VT 0.6)**  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/f/f77897d6c443e30dcb86e99e2642143129b680a9.png)

**State (0,1) normal state (VT 0.05)**  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/5/565c0f97b08381e0a97897541b2a18ffb23cdf60.png)

So clearly it didn’t run with VT0.05.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 2, 2018, 10:00pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/6 "2018-02-02T22:00:27Z")

</div>

Thanks @MingboPeng! Yes. Something is not working. I’m in the middle of making several changes to honeybee[+] right now and can’t test it for myself but if you zip the `folder` and send me a link to it I can take a closer look and see what’s going on. Also does the material with 5% transmittance created correctly? That is the first thing that I would check.

---

<div class="post-metadata">

**Author:** ![OlivierDambron](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/olivierdambron/32/10957_2.png) [@OlivierDambron](https://discourse.ladybug.tools/u/OlivierDambron)\
**Post date:** [February 2, 2018, 10:20pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/7 "2018-02-02T22:20:16Z")

</div>

Hi @MingboPeng, Which .xml files did you use?

---

<div class="post-metadata">

**Author:** ![MingboPeng](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mingbopeng/32/5084_2.png) [@MingboPeng](https://discourse.ladybug.tools/u/MingboPeng)\
**Post date:** [February 5, 2018, 2:45pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/8 "2018-02-05T14:45:37Z")

</div>

Hi @OlivierDambron, I am not testing 3 phase yet. this was just daylight coefficient.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 18, 2018, 7:13am UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/9 "2018-02-18T07:13:41Z")

</div>

Hi @MingboPeng,

Can you try now! The code was using the first state by mistake. It should be fixed now.

> <https://github.com/ladybug-tools/honeybee/commit/046fbf1c135f7e43010c10cc233e42cb52b6f6c0>

---

<div class="post-metadata">

**Author:** ![MingboPeng](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mingbopeng/32/5084_2.png) [@MingboPeng](https://discourse.ladybug.tools/u/MingboPeng)\
**Post date:** [February 18, 2018, 10:36pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/10 "2018-02-18T22:36:26Z")

</div>

Thanks @mostapha, everything works perfectly now. Thanks so much, I can move on to next test.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 18, 2018, 10:53pm UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/11 "2018-02-18T22:53:10Z")

</div>

Hi @MingboPeng, Sure thing. Thank you for testing and reporting the bugs. I really appreciate it!

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [March 9, 2018, 1:35am UTC](https://discourse.ladybug.tools/t/how-does-blind-states-in-daylight-coefficient-based-simulation-work/2535/12 "2018-03-09T01:35:47Z")

</div>

Split this topic on March 9, 2018, 1:35am UTC

5 posts were split to a new topic: [Updating Honeybee[+]](https://discourse.ladybug.tools/t/updating-honeybee/2667)
