[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [EnergyPlus_Support] Re: Dynamic change of a schedule:compact with EMS
BeginTimeStepBeforePredictor maybe should be the correct one but the schedules still have the same problem.
On Tuesday, March 25, 2014 11:02 AM, Marco Aldegheri <m.aldegheri@xxxxxxxxx> wrote:
Hello Jean,
so, are you speaking about something like that?
EnergyManagementSystem:Program,
randmetzone1,
set MyActivity_Schedule_16_override=null,
set mm= @randomuniform 0.5 1,
set MyActivity_Schedule_16_original= SENS_Activity_Schedule_16,
set MyActivity_Schedule_16_override = (mm*set MyActivity_Schedule_16_original);
where
MyActivity_Schedule_16_override is the actuator
SENS_Activity_Schedule_16 is the sensor which reads the original value of the schedule.
The result is just the same... moreover I have another question, it's about the program calling manager
IDF,EnergyManagementSystem:ProgramCallingManager,
RANDOMBehaviourEXE,
XXXX,
randclozone1,
randmetzone1
I don't know exactly what I should set in the EnergyPlus Model Calling Point.... In other words, I read on the EMS manual but I didn't understand how to set the correct option to let my program execute only during the simulation period 1/1-12/31... This code mustn't interfere with the system sizing but must have an effect on internal gains of course. I thought I had to use AfterNewEnvironmentWarmUpIsComplete but it seems to be wrong.
Using a AfterNewEnvironmentWarmUpIsComplete setting, the schedules are now completely different: each of them are constants, MET=0, CLO=1.4 and reading the .edd I see that the code seems to be executed only 1 time, at the end of warmup. I'm getting mad :,(
Marco
On Tuesday, March 25, 2014 6:07 AM, "jeannieboef@xxxxxxxxx" <jeannieboef@xxxxxxxxx> wrote:
I think you need to have your actuator release its "handle" on the schedule variable in the first step of your code:
Set MyActuator = Null,
This will have the schedule value revert back to the origional value in the idf schedule:compact. Then sense it and change it.
Mit freundlichen Grü�en- Sent from my iPhone (excuse the brevity)
i. A.
Jean Marais
b.i.g. bechtold
Tel. +49 30 6706662-23
On 24.03.2014, at 21:49, Marco Aldegheri <<mailto:m.aldegheri@xxxxxxxxx>m.aldegheri@xxxxxxxxx> wrote:
>
Thanks for your reply,
>
> but what do you mean with defining the original value I want as a constant in EMS? Do you mean something like that?
>
> EnergyManagementSystem:Program,
> randmetzone1, !- Name
> set mm= @randomuniform 0.5 1, !- Program Line 1
> set MyActivity_Schedule_16_original= SENS_Activity_Schedule_16, !- Program Line 2
> set MyActivity_Schedule_16_override = (mm*set MyActivity_Schedule_16_original); !- A4
>
> this step give the same degenerating result. Finally I understand what you mean when you say to use a double schedule, a copy of the original from which I read the value and the original one on which I paste the changed value, but it will be too cumbersome because I will apply this sort of "schedule changing" on very large model, with many zones and it will be very hard to manage all those schedules.
>
> Maybe the question of the 1st anwer may be resolutive...: what do you mean with defining the original value I want as a constant in EMS?
>
>
>
>
> On Monday, March 24, 2014 8:58 PM, Edward G. Lyon <<mailto:eglyon@xxxxxxx>eglyon@xxxxxxx> wrote:
>
I would guess that if your first value was 1 and after adjustment it is .5 then the next value input for your calculation is the assigned value of .5 and not your original value of 1. This would result in a degenerating output. Try either defining the original value you want as a constant in EMS, or if you prefer, put it in a separate schedule that you do not over write with your calculation value.
Ned Lyon, P.E. (MA, WV)
> Staff Consultant
SIMPSON GUMPERTZ & HEGER
> 781.907.9000 main
> 781.907.9350 direct
> 617.285.2162 mobile
> 781.907.9009 fax
> <http://www.sgh.com/>> www.sgh.com
From: <mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx>EnergyPlus_Support@xxxxxxxxxxxxxxx [mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx] On Behalf Of <mailto:m.aldegheri@xxxxxxxxx>m.aldegheri@xxxxxxxxx
> Sent: Monday, March 24, 2014 2:22 PM
> To: EnergyPlus_Support@xxxxxxxxxxxxxxx
> Subject: [EnergyPlus_Support] Re: Dynamic change of a schedule:compact with EMS [1 Attachment]
Good evening,
>
> unfortunately my problem is not jet solved. I wrote this code to read the original value of a schedule by a sensor and to change it using an actuator. The actuator should change the original value in the schedule multiplying it for a random calculated factor. Than I wish to report the value of the changed schedule.
> In this example I tried to change the CLO and MET schedule but things continue to go wrong.
> The schedules have always the value of 0 (or almost 0). I read also the .edd file to see what it's going on and it seems that the annichilation of the schedule values happens during Warmup & Sizing period.
> Could anyone confirm this point?
> How could I exclude the code working during this period?
> Or if this is not the point, where is the mistake, and how can i fix it?
>
> Thanks a lot,
> Marco
>
__._,_.___
Primary EnergyPlus support is found at:
<http://energyplus.helpserve.com>http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx
The primary EnergyPlus web site is found at:
<http://www.energyplus.gov>http://www.energyplus.gov
The group web site is:
<http://groups.yahoo.com/group/EnergyPlus_Support/>http://groups.yahoo.com/group/EnergyPlus_Support/
Attachments are currently allowed but be mindful that not everyone has a high speed connection. Limit attachments to small files.
EnergyPlus Documentation is searchable. Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.
<http://geo.yahoo.com/serv?s=97476590/grpId=3387488/grpspId=1705007389/msgId=31585/stime=1395742843>
<https://groups.yahoo.com/neo/groups/EnergyPlus_Support/info;_ylc=X3oDMTJldmN2b3AzBF9TAzk3MzU5NzE0BGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM5NTc0Mjg0Mw-->Visit Your Group
* <https://groups.yahoo.com/neo/groups/EnergyPlus_Support/members/all;_ylc=X3oDMTJmdXRqaGVrBF9TAzk3MzU5NzE0BGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEzOTU3NDI4NDM->New Members 10
<https://groups.yahoo.com/neo;_ylc=X3oDMTJkbXQyNzY2BF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzk1NzQyODQz><http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png>
? <https://info.yahoo.com/privacy/us/yahoo/groups/details.html>Privacy ? <mailto:EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>Unsubscribe ? <https://info.yahoo.com/legal/us/yahoo/utos/terms/>Terms of Use
__,_._,___