<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Benjamin,</p>
    <p>  Probably you have to be a little careful how you implement the
      switch. If you implement a switch that is on a timer so that no
      matter what, the inverter sees that there is no power available
      from the renewable source at certain times of day then there
      should be no reason for there to be convergence problems. However,
      if your switch is watching the state of charge of the battery or
      something else that might change then the switch needs to have
      some hysteresis in it. I don't know what your exact situation is
      but pretend that the switch is watching the battery SOC and stops
      charging the battery if the battery SOC gets above 0.9. If you
      implement this switch with a simple equation then charging will
      stop when the SOC gets to 0.9000000000001 and allow charging as
      soon as the SOC falls back to 0.9000000000000. You need to use one
      of the thermostat controllers to provide a deadband on the SOC so
      that charging stops when SOC reaches 0.90 and stops until the
      battery falls back to 0.85 (or something)</p>
    <p>  The inverter/charge controller model isn't all that
      complicated. It looks at a load, at the power available from
      renewables and at the battery SOC and makes a decision as to how
      the power should flow. If you're trying to effectively remove the
      battery without deleting it you need to figure out how to make the
      inverter/charge controller think that the battery should never be
      charged and can never provide power to the load. You might look at
      some of the inverter/charge controller parameters that set up when
      the battery can and cannot be charged based on its SOC. If you set
      those values close to each other and start the battery somewhere
      outside that range you may be able to effectively prevent the
      battery from having an influence on the system.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/15/2016 02:58, Manrique Delgado
      Benjamin via TRNSYS-users wrote:<br>
    </div>
    <blockquote
      cite="mid:F4C3FCA031947747A22107837C39356334669A63@EXMDB05.org.aalto.fi"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks
            for the reply. I have used that strategy successfully with
            other Types, but unfortunately the inverter just ignores the
            switch. A message in the List file says ”The input to the
            listed units have not converged at this timestep. The values
            at the last iteration will be used and the simulation will
            proceed”.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ben
            Heymer [<a class="moz-txt-link-freetext" href="mailto:bheymer@gmail.com">mailto:bheymer@gmail.com</a>]
            <br>
            <b>Sent:</b> Thursday, July 14, 2016 9:43 PM<br>
            <b>To:</b> Manrique Delgado Benjamin
            <a class="moz-txt-link-rfc2396E" href="mailto:benjamin.manriquedelgado@aalto.fi"><benjamin.manriquedelgado@aalto.fi></a>; TRNSYS users
            mailing list at OneBuilding.org
            <a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org"><trnsys-users@lists.onebuilding.org></a><br>
            <b>Subject:</b> Re: [TRNSYS-users] Deactivate battery<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">I'm not familiar with that component
            (Type 47a) but its usually possible to use equations to
            effectively disconnect the links to and from any Type.<o:p></o:p></p>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">You can zero out inputs to the type
              with something like this:<o:p></o:p></p>
            <div>
              <div>
                <p class="MsoNormal">input1 = datapoint1 * switch  !
                  (where "switch" = 1 for "on" or 0 for "off")<o:p></o:p></p>
              </div>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">You can choose to use outputs from
                one type or another type with something like this:<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">output1 = output1a * switch +
                output1b * (1 - switch)  ! (where "switch" = 1 for "on"
                or 0 for "off")<o:p></o:p></p>
            </div>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">This will take a bit of time to set up
              and it's not very elegant, but the freedom to hack is what
              makes TRNSYS great!<o:p></o:p></p>
          </div>
        </div>
        <div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <div>
            <p class="MsoNormal">On Thu, Jul 14, 2016 at 9:54 AM,
              Manrique Delgado Benjamin via TRNSYS-users <<a
                moz-do-not-send="true"
                href="mailto:trnsys-users@lists.onebuilding.org"
                target="_blank">trnsys-users@lists.onebuilding.org</a>>
              wrote:<o:p></o:p></p>
            <blockquote style="border:none;border-left:solid #CCCCCC
              1.0pt;padding:0in 0in 0in
              6.0pt;margin-left:4.8pt;margin-right:0in">
              <div>
                <div>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Dear
                    all,<o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Is
                    there a way to deactivate a battery (Type 47a)
                    without having to delete it from a model? I want to
                    do an optimization that includes options with and
                    without battery, so I need to find a way to give the
                    battery zero capacity or stop the inverter from
                    charging/discharging it. I have tried different
                    values for High and Low limit on FSOC but the
                    inverter basically ignores them when the value
                    doesn’t converge. Any suggestions?<o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Cheers,<o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Benjamin
                    Manrique D.<o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Aalto
                    University<o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Finland<o:p></o:p></p>
                </div>
              </div>
              <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
                _______________________________________________<br>
                TRNSYS-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a><br>
                <a moz-do-not-send="true"
href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org"
                  target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><o:p></o:p></p>
            </blockquote>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
  </body>
</html>