<div dir="auto">Sorry, I misread the first phrase where you clearly wrote “physics teacher at my school”. This is a fantastic educational tool!</div><div dir="auto"><br></div><div dir="auto">On Sun, Dec 7, 2025 at 17:42 Luciano Notarfrancesco <<a href="mailto:luchiano@gmail.com">luchiano@gmail.com</a>> wrote: <br></div><div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">Very interesting!</div><div dir="auto">However, how big has a simulation have to be in order to be useful for them? I had the impression that these things are typically huge (millions or billions of particles) and run in parallel on supercomputers with GPUs. I’d like to know if small simulations running on a CPU have realistic applications. Or perhaps it could be more of an educational tool? For some computations you could take advantage of the FloatArray primitives to compute in bulk (I’m using this for audio DSP and they are really helpful). There’s also the possibility to use BLAS libraries via FFI. And in Cuis you could also use OpenCL. Keep us posted, this is really interesting.</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 7, 2025 at 17:01 Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><u></u>
<div text="#000000" bgcolor="#FFFFFF">
<p><font size="4" style="color:rgb(0,0,0)">Hi, </font></p>
<p><font size="4" style="color:rgb(0,0,0)">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" style="color:rgb(0,0,0)">A first iteration was a very naive, kind of
billiard: <a href="https://mamot.fr/@drgeo/115577138308536197" target="_blank">https://mamot.fr/@drgeo/115577138308536197</a></font></p>
<p><font size="4" style="color:rgb(0,0,0)">Then hack some energy transfer from the wall: </font></p>
<p><font size="4" style="color:rgb(0,0,0)"><a href="https://mamot.fr/@drgeo/115598616477391933" target="_blank">https://mamot.fr/@drgeo/115598616477391933</a><br>
<a href="https://mamot.fr/@drgeo/115600731271105530" target="_blank">https://mamot.fr/@drgeo/115600731271105530</a></font></p>
<p><font size="4" style="color:rgb(0,0,0)">However this implementation was not correct from
the thermodynamic perspective, so I implement a real diffuse
energy transfer model: <a href="https://mamot.fr/@drgeo/115623761342500850" target="_blank">https://mamot.fr/@drgeo/115623761342500850</a></font></p>
<p><font size="4" style="color:rgb(0,0,0)">This gave a more or less realistic simulation of
ideal gas.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">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" style="color:rgb(0,0,0)">Atom can get crazy unrealistic velocity <a href="https://mamot.fr/@drgeo/115669231450451191" target="_blank">https://mamot.fr/@drgeo/115669231450451191</a>
because of not small enough simulation time.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">With a fined tuned simulation time and Morph step
time of 100Hz, the result are quite interesting: <a href="https://mamot.fr/@drgeo/115669511921472246" target="_blank">https://mamot.fr/@drgeo/115669511921472246</a></font></p>
<p><font size="4" style="color:rgb(0,0,0)">The final model has both diffuse energy transfer
from the wall and inter-atomic potential calculus.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Again, the Cuis environment proved to be extremely
helpful to fine tune the algorithm.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Of course this DKM can be used from a Dybo
document, as seen there with another DKM: <a href="https://mamot.fr/@drgeo/115400315017925601" target="_blank">https://mamot.fr/@drgeo/115400315017925601</a></font></p>
<p><font size="4" style="color:rgb(0,0,0)">The aims is develop hundreds of such modules.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Hilaire</font></p>
<p><font size="4" style="color:rgb(0,0,0)">[1]
<a href="https://github.com/Dynamic-Book/doc/tree/main/4-Explanations/200-Dynamic-Knowledge-Models" target="_blank">https://github.com/Dynamic-Book/doc/tree/main/4-Explanations/200-Dynamic-Knowledge-Models</a></font></p></div><div text="#000000" bgcolor="#FFFFFF">
<pre cols="72" style="font-family:monospace">--
<a href="http://mamot.fr/@drgeo" style="font-family:monospace" target="_blank">http://mamot.fr/@drgeo</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>
</blockquote></div></div>