<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>This is amazing and beautifol!</p>
    <p>Thanks Hilaire!</p>
    <div class="moz-cite-prefix">On 2025-12-07 7:01 AM, Hilaire
      Fernandes via Cuis-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:84df4bfb-2ec0-4206-8ad8-ec6c783c35ae@free.fr">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font size="4">Hi, </font></p>
      <p><font size="4">When discussing with Physics teacher at my
          school, its appears gas simulation is something desired. There
          are some simulation out there, but they keep mentioning me it
          is a nice tool to have. So I gave a shoot and start the
          implementation of a DKM[1] for the Dybo project.</font></p>
      <p><font size="4">A first iteration was a very naive, kind of
          billiard: <a class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115577138308536197"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115577138308536197</a></font></p>
      <p><font size="4">Then hack some energy transfer from the wall: </font></p>
      <p><font size="4"><a class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115598616477391933"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115598616477391933</a><br>
          <a class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115600731271105530"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115600731271105530</a></font></p>
      <p><font size="4">However this implementation was not correct from
          the thermodynamic perspective, so I implement a real diffuse
          energy transfer model: <a class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115623761342500850"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115623761342500850</a></font></p>
      <p><font size="4">This gave a more or less realistic simulation of
          ideal gas.</font></p>
      <p><font size="4">The next challenge was to have inter-atomic
          potential to be considered: atom can be attracted or repulsed
          from each other. The Lennard-Jones law was used. The tricky
          part was really the scale and simulation step time:</font></p>
      <p><font size="4">Atom can get crazy unrealistic velocity <a
            class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115669231450451191"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115669231450451191</a>
          because of not small enough simulation time.</font></p>
      <p><font size="4">With a fined tuned simulation time and Morph
          step time of 100Hz, the result are quite interesting: <a
            class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115669511921472246"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115669511921472246</a></font></p>
      <p><font size="4">The final model has both diffuse energy transfer
          from the wall and inter-atomic potential calculus.</font></p>
      <p><font size="4">Again, the Cuis environment proved to be
          extremely helpful to fine tune the algorithm.</font></p>
      <p><font size="4">Of course this DKM can be used from a Dybo
          document, as seen there with another DKM: <a
            class="moz-txt-link-freetext"
            href="https://mamot.fr/@drgeo/115400315017925601"
            moz-do-not-send="true">https://mamot.fr/@drgeo/115400315017925601</a></font></p>
      <p><font size="4">The aims is develop hundreds of such modules.</font></p>
      <p><font size="4">Hilaire</font></p>
      <p><font size="4">[1] <a class="moz-txt-link-freetext"
href="https://github.com/Dynamic-Book/doc/tree/main/4-Explanations/200-Dynamic-Knowledge-Models"
            moz-do-not-send="true">https://github.com/Dynamic-Book/doc/tree/main/4-Explanations/200-Dynamic-Knowledge-Models</a></font></p>
      <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo"
      moz-do-not-send="true">http://mamot.fr/@drgeo</a></pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
  </body>
</html>