<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="+1">Hmm... batteries: Charge storage devices which have
      a largely constant voltage in the working range but which show big
      changes in apparent voltage when they reach full charge and when
      the charge drops very low. You don't get all the electrons back. 
      I suspect a really good model would relate these effects to the
      electrochemical processes at work. Also because they are
      "batteries" and not individual cells,  the aggregate behaviour
      will depend on the whole (in series) set. <br>
      With a sort of diodes and resistors model for the charge and 
      discharge routes (somewhat different characteristics), it is
      possible to make a fair model for a battery's functional
      operations but I'd be a bit concerned if it was to try to make
      predictions of behaviour under stress  (e.g.very high discharge
      rates) or temperature changes (which in lead acid batteries reduce
      apparent capacity and ability to deliver current). There's an
      industry emerging for batteries with all the associated support
      equipment for creating backups for solar power etc.<br>
      So it becomes a question of how deep you want to go into the
      physics.<br>
      <br>
      Mike.<br>
      <br>
      =====================<br>
    </font>
    <div class="moz-cite-prefix">On 12/04/2017 16:02,
      <a class="moz-txt-link-abbreviated" href="mailto:tim@wescottdesign.com">tim@wescottdesign.com</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:274895762cadb3a2e9bc7122b6afc2d8@wescottdesign.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>I strongly suspect that anything that would be useful would be
        specific to batteries, and would perhaps be best done in batch
        mode to generate a model that is then hand-tweaked and selected
        for use in xcos -- but I say that in part because over the years
        I've come to dislike graphical solvers.</p>
      <p>I think it's possible to build a subsystem out of blocks that
        can be "masked" so that you can enter parameters in the usual
        way -- if you could boil your battery model down so that it had
        a few parameters, you could translate your measured data into
        parameters once, then use parameterized blocks for the battery
        behavior.</p>
      <p>On 2017-04-12 07:49, phillip mobley wrote:</p>
      <blockquote type="cite" style="padding: 0 0.4em; border-left:
        #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
        <div dir="ltr">Sure thing Tim,
          <div> </div>
          <div>Thank you for pointing out those details. I will share as
            much as I can.</div>
          <div> </div>
          <div>I am simulating the behavior of a battery as it is
            discharging into a circuit. I recorded data from the battery
            (for example, the voltage and current and internal
            resistance) during testing. I currently have the data at
            different time steps inside of an excel file.</div>
          <div> </div>
          <div>I would like to test this battery under different circuit
            configurations. However, changing the circuit can be time
            consuming and expensive. I was thinking that I could use
            xcos ability to do circuit simulation to construct a basic
            model of the battery that I am using that utilizes the data
            that I gathered. This way I can simulation the battery under
            different circuit configurations very easily.</div>
          <div> </div>
          <div>So I was wondering if there was a way that I could import
            my data into xcos to construct a model for simulation.</div>
          <div> </div>
          <div>I actually created the system to simulate the battery.</div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Apr 11, 2017 at 3:48 PM, Tim
            Wescott <span><<a moz-do-not-send="true"
                href="mailto:tim@wescottdesign.com">tim@wescottdesign.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0 0 0 .8ex;
              border-left: 1px #ccc solid; padding-left: 1ex;">"Simulate
              the data"?<br>
              <br>
              Surely you mean you wish to simulate the system which was
              used in the<br>
              measurement!<br>
              <br>
              You don't give much detail, but I suspect that what you
              want to do is<br>
              to develop a model of the system that fits the experiment,
              and then use<br>
              that model in your simulations.<br>
              <br>
              The general term for generating the model is called
              "system<br>
              identification", but that covers a pretty broad swath.<br>
              <br>
              Can you share the test you did, the sort of data you
              collected, the<br>
              sort of system you're trying to model, and how well you
              know the system<br>
              itself?<br>
              <div>
                <div class="h5"><br>
                  On Tue, 2017-04-11 at 15:10 -0400, phillip mobley
                  wrote:<br>
                  > Hello all,<br>
                  ><br>
                  > I have some data from a test that I preformed. I
                  was looking to<br>
                  > simulate this data under different conditions and
                  I was wondering if<br>
                  > there is a palette in xcos that would allow me to
                  input data (maybe<br>
                  > from an excel spreadsheet or copy paste) in order
                  to use in the<br>
                  > simulation?<br>
                  ><br>
                  > Is this possible with xcos?</div>
              </div>
              > ______________________________<wbr>_________________<br>
              > users mailing list<br>
              > <a moz-do-not-send="true"
                href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
              > <a moz-do-not-send="true"
                href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
              --<br>
              <br>
              Tim Wescott<br>
              <a moz-do-not-send="true"
                href="http://www.wescottdesign.com">www.wescottdesign.com</a><br>
              Control & Communications systems, circuit &
              software design.<br>
              Phone: <a moz-do-not-send="true" href="tel:503.631.7815">503.631.7815</a><br>
              Cell:  <a moz-do-not-send="true" href="tel:503.349.8432">503.349.8432</a><br>
              <br>
              <br>
              <br>
              ______________________________<wbr>_________________<br>
              users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/<wbr>mailman/listinfo/users</a></blockquote>
          </div>
        </div>
      </blockquote>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr.M.J.McCann,MJMcCann-Consulting

</pre>
  </body>
</html>