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

Revision history [back]

click to hide/show revision 1
initial version

[Energyplus] [BCVTB] timestep as a dummy variable in cosimulation

I have co-simulation model, that couples BCVTB & EnergyPlus via the PythonActor. From PythonActor, at each timestep, I call a series of other python scripts.

These scripts need the value of the current timestep ( current simulation time ) But this timestep needs to be global ( i.e independent of the components involved )

It is just an integer variable, where is pass it along from E+ to BCVTB. When PythonActor is executed in BCVTB, the variable needs to get updated (timestep += 1). After it is updated, it needs to be passed along to E+ again. ( & the cycle goes on until termination)

[Energyplus] [BCVTB] timestep as a dummy variable in cosimulation

I have co-simulation model, that couples BCVTB & EnergyPlus via the PythonActor. From PythonActor, at each timestep, I call a series of other python scripts.

These scripts need the value of the current timestep ( current simulation time ) But this timestep needs to be global ( i.e independent of the components involved )

It is just an integer variable, where is pass it along from E+ to BCVTB. When PythonActor is executed in BCVTB, the variable needs to get updated (timestep += 1). After it is updated, it needs to be passed along to E+ again. ( & the cycle goes on until termination)

can someone please elucidate the steps involved in this?