architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
196 stars 62 forks source link

Energy Demand not working when not running all the buildings #3386

Open CompFlu opened 1 year ago

CompFlu commented 1 year ago

Description I upload a dataset with a large district of which I just want to simulate a subset. I ran the schedule-maker and radiation for the subset. However when running the energy demand for the chosen subset I get an error because the buildings I didn't simulate don't have corresponding radiation and schedule data. So it gives an error that radiation and schedule files for buildings I'm not interested in are not available (see screenshot below).

Steps to reproduce the behavior:

  1. Go to Demand Forecasting
  2. Run 'Building Solar Radiation' and 'Building Schedules' for a subset of the loaded dataset
  3. Go to Demand Forecasting and run 'Building Energy Demand'
  4. See error

I expected to get results for the subset I wanted to run. Why is the energy demand also tried to be calculated for buildings I didn't select.

image

Thanks for your help!

lilaleu commented 1 year ago

Hello CompFlu!

Looking at your error message I suppose you skipped running schedule_maker between your radiation simulation and the demand calculation. Without a schedule, your demand can't be calculated.

the demand module needs every other module excecuted from "Data Management" and "Demand forcasting" before it can be executed.

Best regards, let me know if it helped.

CompFlu commented 1 year ago

Hello lilaleu,

Thank you for your fast reply. I ran schedule_maker, however only for the datasubset I wanted to look at. So supposing I have B1000-B4000, I only ran it for the 4 buildings I wanted to look at, e.g. B1405, B1556, B3597 and B3904. So the buildings for which I wanted to run my energy demand had their respective schedule files created. image I ran the building demand with the following settings: image And then got the error as shown in the image above. image

Thank you for your help and best regards.

ShiZhongming commented 1 year ago

@reyery I just tried to replicate this error, and it looks like a front-end problem. The error only appears using CEA Dashboard or Console. Everything worked fine when using the source code.