Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

VicenteCastilloGuillen's profile - activity

2022-01-23 09:37:46 -0500 asked a question animation 3D showing results of E+ simulation

animation 3D showing results of E+ simulation I would like to make a video showing an animation of the building in which

2022-01-23 09:36:51 -0500 asked a question 3d animation of E+ results

3d animation of E+ results I would like to make a video showing an animation of the building in which I can see the temp

2020-09-01 12:43:15 -0500 marked best answer Problem running an E+ simulation with Python

I'm trying to run a simulation using Python. This is my code, after trying several times, but I get an error. Can you help me to solve it?:

import sys
sys.path.insert(0, 'C:\EnergyPlusV9-3-0') #sys.path.insert(0, '/path/to/EnergyPlusInstallRoot')
from pyenergyplus import api
from pyenergyplus.api import EnergyPlusAPI
from runtime import Runtime


"""
run_energyplus(['-d', '/path/to/output/directory', '-w', '/path/to/weather.epw', '/path/to/input.idf'])
"""
test = Runtime(api)

test.run_energyplus(
  [
    '-d',
    'C:/Users/vicente.castillo/Documents/24_PROYECTO SERGIO/prueba Pyenergyplus/output_prueba',
    '-w',
    'C:/EnergyPlusV9-3-0/ejemplo ENERGY PLUS test_2/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw',
    'C:/EnergyPlusV9-3-0/ejemplo ENERGY PLUS test_2/5ZoneAirCooled.idf'
  ]
)

Output:

Traceback (most recent call last):
  File "prueba.py", line 15, in <module>
    test = Runtime(api)
  File "C:\Users\vicente.castillo\Documents\24_PROYECTO SERGIO\prueba Pyenergyplus\runtime.py", line 26, in __init__
    self.api.energyplus.restype = c_int
AttributeError: module 'pyenergyplus.api' has no attribute 'energyplus'
2020-07-31 04:43:01 -0500 edited question Where to find Python API for E+ examples?

Where to find Python API for E examples? I'm looking for Python code with real examples of how to run simulations, capt

2020-07-31 04:42:43 -0500 commented question Problem running an E+ simulation with Python

First I used the initial release, and now (after your comment) I tried it with the latest bug fix release, and still got

2020-07-30 14:44:46 -0500 received badge  Student (source)
2020-07-30 14:41:08 -0500 asked a question Problem running an E+ simulation with Python

Problem running an E+ simulation with Python I'm trying to run a simulation using Python. This is my code, after trying

2020-07-30 14:41:08 -0500 asked a question Where to find Python API for E+ examples?

Where to find Python API for E examples? I'm looking for Python code with real examples of how to run simulations, capt