<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Franklin Gothic Medium";
        panose-1:2 11 6 3 2 1 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1028" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Sam,<o:p></o:p></p>
<p class="MsoNormal">I’m not sure but I don’t think you can apply a default expression to any TYPE keyword – whether it’s for a DW-heater, a SYSTEM, a SCHEDULE etc.<o:p></o:p></p>
<p class="MsoNormal">One alternative is to create multiple DHW heaters, and modify the default expression for CAPACITY to vary with the value of #PA(“DHW_Type”), so that the types you don’t want to use have a .001 capacity.<o:p></o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">~Bill<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Franklin Gothic Medium",sans-serif;color:black">William Bishop, PE, BEMP, BEAP, CEM, LEED AP<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Senior Energy Engineer<o:p></o:p></span></b></p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Picture_x0020_4" o:spid="_x0000_s1027" type="#_x0000_t75" alt="Pathfinder-EA-logo-2" style='position:absolute;margin-left:0;margin-top:66.25pt;width:78.5pt;height:54.7pt;z-index:-251657216;visibility:visible;mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:7.2pt;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:left;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;mso-width-relative:page;mso-height-relative:page'>
<v:imagedata src="cid:image001.jpg@01D6A77D.57714540" o:title="Pathfinder-EA-logo-2" />
<w:wrap type="square" side="right"/>
</v:shape><![endif]--><![if !vml]><img width="105" height="73" style="width:1.0937in;height:.7604in" src="cid:image002.jpg@01D6A77D.57714540" align="left" hspace="12" style="margin-top:10px;margin-bottom:0px" alt="Pathfinder-EA-logo-2" v:shapes="Picture_x0020_4"><![endif]><!--[if gte vml 1]><v:shape id="Picture_x0020_8" o:spid="_x0000_s1026" type="#_x0000_t75" alt="Logo Description automatically generated" style='position:absolute;margin-left:0;margin-top:0;width:102.25pt;height:62.65pt;z-index:251660288;visibility:visible;mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;mso-width-relative:margin;mso-height-relative:margin'>
<v:imagedata src="cid:image003.png@01D6A77D.57714540" o:title="Logo Description automatically generated" />
<w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="136" height="84" style="width:1.4166in;height:.875in" src="cid:image004.jpg@01D6A77D.57714540" align="left" hspace="12" alt="Logo

Description automatically generated" v:shapes="Picture_x0020_8"><![endif]><b><span style="font-size:2.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><i><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#002060">T: (585) 698-1956</span></i></b><b><i><span style="color:#002060">             
</span></i></b><span style="color:#1F497D">          </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1F497D">F: (585) 325-6005</span><b><span style="font-size:3.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></b></p>
<p class="MsoNormal"><a href="mailto:wbishop@pathfinder-ea.com"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">bbishop@pathfinder-ea.com</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">        </span><a href="http://www.pathfinder-ea.com/"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">www.pathfinder-ea.com</span></a><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1F497D">134 South Fitzhugh Street<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1F497D">Rochester, NY 14608              
<img border="0" width="26" height="23" style="width:.2708in;height:.2395in" id="Picture_x0020_6" src="cid:image005.png@01D6A77D.57714540">       
</span><i><span style="font-size:7.0pt;font-family:"Verdana",sans-serif;color:#00B0F0">Ask me why Carbon Fee & Dividend may be right for you.</span></i><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> Equest-users <equest-users-bounces@lists.onebuilding.org>
<b>On Behalf Of </b>samuel mason via Equest-users<br>
<b>Sent:</b> Tuesday, October 20, 2020 10:53 PM<br>
<b>To:</b> Equest Users Mailing List <Equest-users@lists.onebuilding.org><br>
<b>Subject:</b> [Equest-users] User Expression for DHW heater type<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hello,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I am trying to set up a user expression for the type of DHW heater in a project. When I use the symbolic index control shown below and add it directly into the equest interface, the model runs fine and the graphical interface shows the
 correct heater type.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However, when I save the model, the INP file does not get written with the #SI notation and when I reload the model, it crashes while loading the BDL right when it gets to the DW-heater. Does anyone know how to get around this?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Snippet:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">TYPE = <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">{IF(#PA("DHW_Type")==1) THEN<br>
#SI("GAS","DW-HEATER","TYPE")<br>
ELSE IF (#PA("DHW_Type")==2) THEN<br>
#SI("ELEC","DW-HEATER","TYPE")<br>
ELSE IF(#PA("DHW_Type")==3) THEN<br>
#SI("HEAT-PUMP","DW-HEATER","TYPE")<br>
ELSE<br>
#SI("GAS","DW-HEATER","TYPE")<br>
ENDIF<br>
ENDIF<br>
ENDIF}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">DHW_Type is a global parameter of type numeric.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I also tried putting this code into the default for the DW-heater with a user expression and this also crashes when trying to load the BDL.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you in advance.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sam<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
<b><span style="font-family:"Tahoma",sans-serif"><br>
Sam Mason</span></b><span style="font-family:"Tahoma",sans-serif"> P.E., LEED AP BD+C, BEMP</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Principal</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Tahoma",sans-serif">Encompass Energy, LLC</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">P: 443-410-1534</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">E: <a href="mailto:sam.mason@encompassenergyLLC.com">
sam.mason@encompassenergyLLC.com</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">W: <a href="http://www.encompassenergyLLC.com" target="_blank">
www.encompassenergyLLC.com</a><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#948983">This e-mail and all contents are CONFIDENTIAL and intended only for the recipient(s) to whom it is addressed. Any use of the information by anyone other than the intended recipient is
 prohibited </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>