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

PlantComponent:UserDefined ems control

Hi everyone, I'm using the PlantComponent:userdefined input object to model a new storage system. I'm learning about Ems and was wondering what's the ems syntax for updating a variable value based values from previous time steps? Say I have a variable x representing the state of charge, and C representing my rate of charge, i want my ems charging script to translate the following:

X(0)=0 ! Initial state of charge

For t from 1 to 7am

X(t)=X(t-deltat)+C*deltat !current state of charge at time t

Any insights? Thank you,

PlantComponent:UserDefined ems control

Hi everyone, I'm using the PlantComponent:userdefined input object to model a new storage system. I'm learning about Ems and was wondering what's the ems syntax for updating a variable value based values from previous time steps? Say I have a variable x representing the state of charge, and C representing my rate of charge, i want my ems charging script to translate the following:

X(0)=0 ! Initial state of charge

For t from 1 to 7am

X(t)=X(t-deltat)+C*deltat !current state of charge at time t

Any insights? Thank you,

PlantComponent:UserDefined ems control

Hi everyone, I'm using the PlantComponent:userdefined input object to model a new storage system. I'm learning about Ems and was wondering what's the ems syntax for updating a variable value based values from previous time steps? Say I have a variable x representing the state of charge, and C representing my rate of charge, i want my ems charging script to translate the following:

X(0)=0 ! Initial state of charge

For t from 1 to 7am

X(t)=X(t-deltat)+C*deltat !current state of charge at time t

Any insights? Thank you,