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

clcs's profile - activity

2020-04-29 04:40:14 -0500 commented question EnergyPlusToFMU end day issue

You are right, that was the issue. End time in my master was indeed d-1. Thank you for your help !

2020-04-27 11:35:25 -0500 asked a question EnergyPlusToFMU end day issue

EnergyPlusToFMU end day issue Hello, I created a serie of FMUs from idf and epw files using the EnergyPlusToFMU tool. T

2020-04-27 11:20:36 -0500 answered a question Initial value of "zone mean temperature"

A workaround that I have used is to create an HVAC thermostat with your initial temperature as heating setpoint, as well

2020-04-07 09:37:38 -0500 marked best answer Read RunPeriod parameters from python

Hello,

Is there any way to read the RunPeriod parameters of an EP model exported as FMU ? When I call the FMU in python, I would like to be able to check if the start date and end date are consistent with data in my python script.

Thank you very much for your help, C.

2020-04-07 09:37:30 -0500 commented answer Read RunPeriod parameters from python

Awesome, thank you. I hadn't noticed these files. I was looking for something to check the run period just after loadin

2020-04-03 07:47:28 -0500 asked a question Read RunPeriod parameters from python

Read RunPeriod parameters from python Hello, Is there any way to read the RunPeriod parameters of an EP model exported

2020-03-02 11:06:11 -0500 asked a question Create custom variable in EP

Create custom variable in EP Hello, I am trying to use GenOpt to identify parameters of a RC model based on an energy p

2019-08-08 09:09:16 -0500 received badge  Teacher (source)
2019-08-07 09:43:03 -0500 marked best answer Basic example with pyfmi

Hello,

I am trying to run a dummy test to call EnergyPlus in Python as a FMU. The IDF file is a very slightly modified version of the EP example file "1ZoneUncontrolled". I added an ExternalInterface and a FMUExport:From:Variable to get the "Zone Mean Air Temperature" in ZONE ONE as an output of the FMU. I exported the IDF file as a FMU using the LBL tool. And I try to run it from Python using pyfmi.

Both

model = load_fmu(fmu_path)
start_time = 60.0*60*24*1
final_time = 60.0*60*24*2
idf_steps_per_hour=4
ncp = (final_time-start_time)/(3600./idf_steps_per_hour)
opts = model.simulate_options()
opts['ncp'] = ncp
res = model.simulate(
    start_time=start_time,
    final_time=final_time,
    options=opts)

and

model = load_fmu(fmu_path)
start_time = 60.0*60*24*1
final_time = 60.0*60*24*2
model.initialize(start_time, final_time)

just run forever. What am I doing wrong ? The log file displays

FMIL: module = b'FMI1XML', log level = 2: b'Detected on line:29 of modelDescription.xml'
FMIL: module = b'FMI1XML', log level = 2: b'Found capability flag canSignalEvents which have been deprecated as it fills no function'

Also, when I simulate the IDF file from EP launch, I get the severe error ExternalInterface: Did not find file "socket.cfg"

Thank you for your help !

2019-08-07 09:43:03 -0500 received badge  Scholar (source)
2019-08-07 09:42:53 -0500 answered a question Basic example with pyfmi

OK, after running the same script from the command line, I got additional info on why nothing was happening. Turns out,

2019-08-06 11:56:03 -0500 received badge  Student (source)
2019-08-06 10:23:52 -0500 asked a question Basic example with pyfmi

Basic example with pyfmi Hello, I am trying to run a dummy test to call EnergyPlus in Python as a FMU. The IDF file is

2019-07-31 10:39:53 -0500 answered a question Energyplus FMU in Pyfmi

Hello, I am trying to run a dummy test to call EnergyPlus in Python as a FMU. The IDF file is a very slightly modified