(no subject)

3 posts / 0 new
Last post

Hello, I am modeling PV system into my eQuest model. I want to run it over
my baseline model and see how much savings I get. For this I am trying to
set a global parameter or the command-keyword method for parametric run.
How can I set a global parameter for Electric meter - Cogeneration - Track
Mode parameter?

Thanks in advance!

*Siddharth S. Patil*

via Equest-users's picture
Joined: 2016-07-15
Reputation: 400

1. Create a global parameter ? I chose to call it ?Tracking Mode? and to use numeric values to toggle the setting.

[cid:image001.png at 01D2BF84.23ED2CA0]

2. Add an expression to the tracking mode dropdown in the meter(s) of interest by right-clicking and selecting the option in the context menu:

[cid:image005.png at 01D2BF85.3D8A8710]

3. I used the doe2 default expression (what determines the green text) as the starting point, so if you opt to specify a tracking schedule of any kind this input will default to ?n/a? (unused). My additions to the default expression are highlighted for clarity, for anyone interested:

if (#RV(#L("COGEN-TRACK-SCH")) == 0)

then unused

else switch(#PA("Tracking Mode"))

case 1 : #SI("DONT-RUN","ELEC-METER","COGEN-TRACK-MODE")

case 2 : #SI("TRACK-THERMAL","ELEC-METER","COGEN-TRACK-MODE")

case 3 : #SI("TRACK-LESSER","ELEC-METER","COGEN-TRACK-MODE")

case 4 : #SI("TRACK-GREATER","ELEC-METER","COGEN-TRACK-MODE")

case 5 : #SI("MAX-OUTPUT","ELEC-METER","COGEN-TRACK-MODE")

default : #SI("TRACK-ELEC","ELEC-METER","COGEN-TRACK-MODE")

endswitch

endif

4. Now if in a parametric run you change the global parameter ?Tracking Mode? to any of the values 1 through 5, it will switch the meter?s tracking mode to the corresponding setting in the highlighted switch statement above (i.e. 2 will result in the Track Thermal option):

[cid:image006.png at 01D2BF86.947E6540]

~Nick
[cid:image003.png at 01D2BF84.23ED2CA0]
Nick Caton, P.E., BEMP
Senior Energy Engineer
Regional Energy Engineering Manager
Energy and Sustainability Services
Schneider Electric

D 913.564.6361
M 785.410.3317
F 913.564.6380
E nicholas.caton at schneider-electric.com

15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219
United States

[cid:image004.png at 01D2BF84.23ED2CA0]

via Equest-users's picture
Joined: 2016-07-15
Reputation: 400

?Negative types?? That?s a new one to me!

The expression I composed is working fine using version 3.65 build 7163, but I can recreate your error using build 7173.

Looks like the doe2 default within build 7173 looks like this ? 2 things catch my eye:

if (#RV(#L("COGEN-TRACK-SCH")) == 0)
then unused
else #SIT("TRACK-ELEC","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
endif

What?s #SIT? Lo and behold there?s a new doe-2 reference manual entry explaining this is a thing now:
Volume 3: Topics > Building Description Language > Keyword Expressions > BDL Functions > SymIndexType or #SIT

Would you believe they use COGEN-TRACK-MODE as an example to explain this new(?) #SIT function?

On my first reading ? it looks like #SIT is now supposed to be required of all ?negative TYPE commands.? ELEC-METER has been crowned one of those ?negative TYPEs? for DOE-2.2/2.3.

Do I fully understand/appreciate why our expressions are now that much longer & more complex to type out? No? No I do not? (it might take me a few more readings of that entry)... but in any case here?s a modified version for build 7173+ that looks to be in working order. All I did was add that 4th argument and update #SI to #SIT:

if (#RV(#L("COGEN-TRACK-SCH")) == 0)
then unused
else switch(#PA("Tracking Mode"))
case 1 : #SIT("DONT-RUN","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
case 2 : #SIT ("TRACK-THERMAL","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
case 3 : #SIT ("TRACK-LESSER","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
case 4 : #SIT("TRACK-GREATER","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
case 5 : #SIT("MAX-OUTPUT","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
default : #SIT("TRACK-ELEC","ELEC-METER","COGEN-TRACK-MODE",#L("TYPE"))
endswitch
endif

~Nick
[cid:image001.png at 01D2C009.5D02D0F0]
Nick Caton, P.E., BEMP
Senior Energy Engineer
Regional Energy Engineering Manager
Energy and Sustainability Services
Schneider Electric

D 913.564.6361
M 785.410.3317
F 913.564.6380
E nicholas.caton at schneider-electric.com

15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219
United States

[cid:image002.png at 01D2C009.5D02D0F0]

via Equest-users's picture
Joined: 2016-07-15
Reputation: 400