n class="o">.</span><span class="n">create_simulation</span><span class="p">(</span><span class="n">platform_type</span> <span class="o">=</span> <span class="s2">&quot;CUDA&quot;</span><span class="p">)</span> <span class="c1"># Users can also use CPU, Reference, OpenCL.</span>
<span class="n">simulation</span><span class="o">.</span><span class="n">context</span><span class="o">.</span><span class="n">setPositions</span><span class="p">(</span><span class="n">model</span><span class="o">.</span><span clas