Another Keyword Expression question

6 posts / 0 new
Last post

I am looking for a way to retrieve the SYSTEM NAME from a child of system. For example:
COOLING-EIR = (#PA(?SysName-CLG-EIR?)
Where SysName-CLG-EIR is a parameter like ?Parking Garage System-COP-EIR?

Christopher R. Jones, P.Eng.
Technical Specialist
Sustainability & Energy

[cid:image001.png at 01D3BF81.1A482B20]
T +1 416-644-0252

2300 Yonge Street, Suite 2300
Toronto, ON M4P 1E4 Canada
wsp.com

Please consider the environment before printing...

________________________________

NOTICE: This communication and any attachments ("this message") may contain information which is privileged, confidential, proprietary or otherwise subject to restricted disclosure under applicable law. This message is for the sole use of the intended recipient(s). Any unauthorized use, disclosure, viewing, copying, alteration, dissemination or distribution of, or reliance on, this message is strictly prohibited. If you have received this message in error, or you are not an authorized or intended recipient, please notify the sender immediately by replying to this message, delete this message and all copies from your e-mail system and destroy any printed copies. You are receiving this communication because you are listed as a current WSP contact. Should you have any questions regarding WSP's electronic communications policy, please consult our Anti-Spam Commitment at www.wsp.com/casl. For any concern or if you believe you should not be receiving this message, please forward this message to caslcompliance at wsp.com so that we can promptly address your request. Note that not all messages sent by WSP qualify as commercial electronic messages.

AVIS : Ce message, incluant tout fichier l'accompagnant (? le message ?), peut contenir des renseignements ou de l'information privil?gi?s, confidentiels, propri?taires ou ? divulgation restreinte en vertu de la loi. Ce message est destin? ? l'usage exclusif du/des destinataire(s) voulu(s). Toute utilisation non permise, divulgation, lecture, reproduction, modification, diffusion ou distribution est interdite. Si vous avez re?u ce message par erreur, ou que vous n'?tes pas un destinataire autoris? ou voulu, veuillez en aviser l'exp?diteur imm?diatement et d?truire le message et toute copie ?lectronique ou imprim?e. Vous recevez cette communication car vous faites partie des contacts de WSP. Si vous avez des questions concernant la politique de communications ?lectroniques de WSP, veuillez consulter notre Engagement anti-pourriel au www.wsp.com/lcap. Pour toute question ou si vous croyez que vous ne devriez pas recevoir ce message, pri?re de le transf?rer au conformitelcap at wsp.com afin que nous puissions rapidement traiter votre demande. Notez que ce ne sont pas tous les messages transmis par WSP qui constituent des messages electroniques commerciaux.

-LAEmHhHzdJzBlTWfa4Hgs7pbKl

Jones, Christopher2's picture
Joined: 2017-10-12
Reputation: 0

Request unclear? is this right?

1. You want an expression for a ZONE input to vary based on the string which is the name of the parent SYSTEM?
2. You further want a global parameter (#PA) defined as a string to be returned for insertion into said expression?

Maybe another line of context as to what you?re trying to achieve could help as well =).

~Nick

[cid:image002.png at 01D3BF7F.96D43DC0]
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:image003.png at 01D3BF7F.96D43DC0]

Nicholas.Caton at schneider-electric.com's picture
Joined: 2016-02-26
Reputation: 0

Nick, Bill
I miss phrased the question. The expression should retrieve the system name, ?SysName?, concatenate ?-CLG-EIR? the set COOLING-EIR to ?SysName-CLG-EIR? which is a parameter defined in Global parameters.

So the keyword expression would be in the COOLING-EIR Edit/View User Expression entry.

Christopher R. Jones, P.Eng.
Technical Specialist
Sustainability & Energy

[cid:image001.png at 01D3BF8B.182BF650]
T +1 416-644-0252

2300 Yonge Street, Suite 2300
Toronto, ON M4P 1E4 Canada

wsp.com

Please consider the environment before printing...

Jones, Christopher2's picture
Joined: 2017-10-12
Reputation: 0

I don?t think there is any way to reference U-NAMEs in expressions.
An alternative is to create the Global parameters by system number (in order that the systems are created), not by system name.
For example:
Your model has 10 systems. The first four systems that you define are packaged VAV systems named, in order of creation, ?1stFlrN-PVAV?, ?1stFlrS-PVAV?, ?2ndFlrN-PVAV?, ?2ndFlrS-PVAV?.
You want to assign unique COOLING-EIR to each system. You could use the following BDL input:

PARAMETER
"1st-system-CLG-EIR" = 0.310 ..
PARAMETER
"2nd-system-CLG-EIR" = 0.320 ..
PARAMETER
"3rd-system-CLG-EIR" = 0.330 ..
PARAMETER
"4th-system-CLG-EIR" = 0.340 ..
SET-DEFAULT FOR SYSTEM
TYPE = PVAVS
COOLING-EIR =
{switch #SV(#LS())
case 1 : #PA("1st-system-CLG-EIR") $ 1stFlrN-PVAV
case 2 : #PA("2nd-system-CLG-EIR") $ 1stFlrS-PVAV
case 3 : #PA("3rd-system-CLG-EIR") $ 2ndFlrN-PVAV
case 4 : #PA("4th-system-CLG-EIR") $ 2ndFlrS-PVAV
default : 0.360
endswitch}

Regards,
~Bill

William Bishop, PE, BEMP, BEAP, CEM, LEED AP | Pathfinder Engineers & Architects LLP
Senior Energy Engineer

[cid:image005.jpg at 01D3BF93.52A921B0] [cid:image007.jpg at 01D3BF93.52A921B0]

134 South Fitzhugh Street Rochester, NY 14608

T: (585) 698-1956 F: (585) 325-6005

bbishop at pathfinder-ea.com www.pathfinder-ea.com

[http://png-5.findicons.com/files/icons/977/rrze/720/globe.png]Carbon Fee and Dividend - simple, effective, and market-based.

Bill Bishop's picture
Offline
Joined: 2012-02-25
Reputation: 7

I further don?t think it?s possible to concatenate or otherwise manipulate strings within the bounds of keyword expressions. Some of that is possible using MACROs, per the following example from the DOE2.2 Vol3 documentation:

Example
#set1 city Washington
TITLE LINE 1 #[ "large office" /// city[ ] ]
gives
TITLE LINE 1 "large office Washington"

However? I tried a few variations of pushing in the // and /// ?operations? inside an expression (also trying to add strings with + like I would in python)? and couldn?t get a string to come together in a simpler setup

~Nick

[cid:image001.png at 01D3BF8B.D2A3DCF0]
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 01D3BF8B.D2A3DCF0]

Nicholas.Caton at schneider-electric.com's picture
Joined: 2016-02-26
Reputation: 0

Thank you Team. I will write a UltraEdit macro to create the parameter concatenation directly in the .inp. Then open with eQuest to check for correctness.

Christopher R. Jones, P.Eng.
Technical Specialist
Sustainability & Energy

[cid:image001.png at 01D3BF96.8F7E8730]
T +1 416-644-0252

2300 Yonge Street, Suite 2300
Toronto, ON M4P 1E4 Canada

wsp.com

Please consider the environment before printing...

Jones, Christopher2's picture
Joined: 2017-10-12
Reputation: 0