Commit dc8ecc92 authored by mozul's avatar mozul

[DOC] adding sphinx doc of pre_lmgc

parent 31381a71
......@@ -90,9 +90,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -113,7 +110,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -1504,9 +1504,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -1528,7 +1525,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -265,9 +265,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -289,7 +286,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -91,9 +91,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -115,7 +112,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -240,9 +240,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -264,7 +261,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -96,9 +96,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -120,7 +117,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -232,9 +232,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -256,7 +253,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -88,9 +88,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -112,7 +109,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -210,9 +210,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -234,7 +231,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -557,9 +557,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -581,7 +578,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -773,9 +773,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -797,7 +794,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -324,9 +324,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -348,7 +345,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -298,9 +298,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -322,7 +319,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -137,9 +137,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -161,7 +158,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -693,9 +693,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -717,7 +714,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -538,9 +538,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -562,7 +559,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -67,7 +67,7 @@
<span class="k">if</span> <span class="n">import_lmgc90</span><span class="p">():</span>
<span class="c1"># on essaye</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy.lmgc90</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy</span> <span class="kn">import</span> <span class="n">lmgc90</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="k">print</span> <span class="s1">&#39;Unable to import wrapped part of the 2D mesh generator module!&#39;</span>
<span class="k">print</span> <span class="s1">&#39;You must build 2D meshes using an external tool&#39;</span>
......@@ -132,34 +132,34 @@
<span class="k">if</span> <span class="n">type_mesh</span> <span class="o">==</span> <span class="s1">&#39;Q4&#39;</span><span class="p">:</span> <span class="c1"># cas du maillage en Q4 </span>
<span class="c1"># dimensionnement des vecteurs pour stocker le maillage</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_SizeMeshQ4</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_SizeMeshQ4</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="n">nb_elem_y</span><span class="p">)</span>
<span class="c1"># calcul du maillage</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_MeshQ4</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_MeshQ4</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="n">nb_elem_x</span><span class="p">,</span> <span class="n">nb_elem_y</span><span class="p">,</span> <span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span>
<span class="n">size_conn_vol</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">type_mesh</span> <span class="o">==</span> <span class="s1">&#39;2T3&#39;</span><span class="p">:</span> <span class="c1"># cas du maillage en T3, obtenus en coupant en deux </span>
<span class="c1"># des Q4</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_SizeMesh2T3</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_SizeMesh2T3</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="n">nb_elem_y</span><span class="p">)</span>
<span class="c1"># calcul du maillage</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_Mesh2T3</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_Mesh2T3</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="n">nb_elem_x</span><span class="p">,</span> <span class="n">nb_elem_y</span><span class="p">,</span> <span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span>
<span class="n">size_conn_vol</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">type_mesh</span> <span class="o">==</span> <span class="s1">&#39;4T3&#39;</span><span class="p">:</span> <span class="c1"># cas du maillage en T3, obtenus en coupant en </span>
<span class="c1"># quatre des Q4</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_SizeMesh4T3</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_SizeMesh4T3</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="n">nb_elem_y</span><span class="p">)</span>
<span class="c1"># calcul du maillage</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_Mesh4T3</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_Mesh4T3</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="n">nb_elem_x</span><span class="p">,</span> <span class="n">nb_elem_y</span><span class="p">,</span> <span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span>
<span class="n">size_conn_vol</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">type_mesh</span> <span class="o">==</span> <span class="s1">&#39;Q8&#39;</span><span class="p">:</span> <span class="c1"># cas du maillage en Q8 </span>
<span class="c1"># dimensionnement des vecteurs pour stocker le maillage</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_SizeMeshQ8</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="p">[</span><span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">size_conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_SizeMeshQ8</span><span class="p">(</span><span class="n">nb_elem_x</span><span class="p">,</span>
<span class="n">nb_elem_y</span><span class="p">)</span>
<span class="c1"># calcul du maillage</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">mesh2D_MeshQ8</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="p">[</span><span class="n">nodes</span><span class="p">,</span> <span class="n">nb_node_per_ele_vol</span><span class="p">,</span> <span class="n">conn_vol</span><span class="p">]</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_MeshQ8</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="n">ly</span><span class="p">,</span>
<span class="n">nb_elem_x</span><span class="p">,</span> <span class="n">nb_elem_y</span><span class="p">,</span> <span class="n">size_nodes</span><span class="p">,</span> <span class="n">size_nb_node_per_ele_vol</span><span class="p">,</span>
<span class="n">size_conn_vol</span><span class="p">)</span>
......@@ -321,9 +321,9 @@
<span class="c1"># on utilise les inidces corespondant aux noeuds</span>
<span class="c1"># on recuepre les indices pour le noeud i</span>
<span class="n">u_i</span><span class="p">,</span> <span class="n">v_i</span> <span class="o">=</span> <span class="n">mesh2D_GetIndicesMeshQ4</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="n">i</span><span class="p">))</span>
<span class="n">u_i</span><span class="p">,</span> <span class="n">v_i</span> <span class="o">=</span> <span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_GetIndicesMeshQ4</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="n">i</span><span class="p">))</span>
<span class="c1"># on recuepre les indices pour le noeud j</span>
<span class="n">u_j</span><span class="p">,</span> <span class="n">v_j</span> <span class="o">=</span> <span class="n">mesh2D_GetIndicesMeshQ4</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="n">j</span><span class="p">))</span>
<span class="n">u_j</span><span class="p">,</span> <span class="n">v_j</span> <span class="o">=</span> <span class="n">lmgc90</span><span class="o">.</span><span class="n">mesh2D_GetIndicesMeshQ4</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="n">j</span><span class="p">))</span>
<span class="k">if</span> <span class="n">u_i</span> <span class="o">==</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">u_j</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
<span class="c1"># cas d&#39;un element sur le bord gauche : x=x0</span>
......@@ -1069,9 +1069,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -1093,7 +1090,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -68,7 +68,7 @@
<span class="k">if</span> <span class="n">import_lmgc90</span><span class="p">():</span>
<span class="c1"># on essaye</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy.lmgc90</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy</span> <span class="kn">import</span> <span class="n">lmgc90</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="k">print</span> <span class="s1">&#39;Unable to import wrapped part surafcic mesh handling module!&#39;</span>
<span class="k">print</span> <span class="s1">&#39;You will not be able to build polyhedron from surfacic meshes&#39;</span>
......@@ -656,7 +656,7 @@
<span class="n">i</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="c1"># on attribue une entite a chaque element par une recherche de composantes connexes</span>
<span class="n">ele2entity</span><span class="o">=</span><span class="n">surface_T3_identify_entities</span><span class="p">(</span><span class="n">nb_nodes</span><span class="p">,</span> <span class="n">max_nb_ele_adj</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="n">nb_bulks_T3</span><span class="p">)</span>
<span class="n">ele2entity</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">surface_T3_identify_entities</span><span class="p">(</span><span class="n">nb_nodes</span><span class="p">,</span> <span class="n">max_nb_ele_adj</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="n">nb_bulks_T3</span><span class="p">)</span>
<span class="c1"># pour chaque element triangle</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">nb_bulks_T3</span><span class="p">):</span>
......@@ -778,7 +778,7 @@
<span class="n">i</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="c1"># on calcule le volume de l&#39;objet a partir de sa surface</span>
<span class="n">OG</span><span class="p">,</span> <span class="n">I</span><span class="p">,</span> <span class="n">volume</span><span class="o">=</span><span class="n">surface_T3_compute_volume_inertia</span><span class="p">(</span><span class="n">coor</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">)</span>
<span class="n">OG</span><span class="p">,</span> <span class="n">I</span><span class="p">,</span> <span class="n">volume</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">surface_T3_compute_volume_inertia</span><span class="p">(</span><span class="n">coor</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">)</span>
<span class="c1"># on rend a la matrice d&#39;inertie sa forme de matrice 3x3</span>
<span class="n">I</span><span class="o">=</span><span class="n">I</span><span class="o">.</span><span class="n">reshape</span><span class="p">([</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">])</span>
......@@ -931,7 +931,7 @@
<span class="n">nb_elements</span> <span class="o">+=</span> <span class="n">i</span>
<span class="c1"># on calcule le volume de l&#39;objet a partir de sa surface</span>
<span class="n">OG</span><span class="p">,</span> <span class="n">I</span><span class="p">,</span> <span class="n">volume</span><span class="o">=</span><span class="n">surface_T3_compute_volume_inertia</span><span class="p">(</span><span class="n">coor</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">)</span>
<span class="n">OG</span><span class="p">,</span> <span class="n">I</span><span class="p">,</span> <span class="n">volume</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">surface_T3_compute_volume_inertia</span><span class="p">(</span><span class="n">coor</span><span class="p">,</span> <span class="n">connec</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">)</span>
<span class="c1"># on rend a la matrice d&#39;inertie sa forme de matrice 3x3</span>
......@@ -1304,9 +1304,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -1328,7 +1325,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -1034,7 +1034,7 @@
<span class="k">except</span><span class="p">:</span>
<span class="n">showWarning</span><span class="p">(</span><span class="s1">&#39;Install scipy to impove efficiency and robustness&#39;</span><span class="p">)</span>
<span class="n">showWarning</span><span class="p">(</span><span class="s1">&#39;Install scipy to improve efficiency and robustness&#39;</span><span class="p">)</span>
<span class="c1"># At least 4 vertices for a polyhedron</span>
<span class="n">nb_vertices</span> <span class="o">=</span> <span class="n">vertices</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="k">if</span> <span class="n">nb_vertices</span> <span class="o">&lt;</span> <span class="mi">4</span><span class="p">:</span>
......@@ -1417,9 +1417,6 @@
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
......@@ -1441,7 +1438,7 @@
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -58,7 +58,7 @@
<span class="k">if</span> <span class="n">import_lmgc90</span><span class="p">():</span>
<span class="c1"># on essaye</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy.lmgc90</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy</span> <span class="kn">import</span> <span class="n">lmgc90</span>
<span class="k">except</span><span class="p">:</span>
<span class="k">raise</span>
......@@ -107,12 +107,12 @@
<span class="c1"># si on a donne une liste de particules deja presentes dans la boite</span>
<span class="k">if</span> <span class="p">(</span><span class="n">deposited_radii</span> <span class="o">!=</span> <span class="bp">None</span> <span class="ow">and</span> <span class="n">deposited_coor</span> <span class="o">!=</span> <span class="bp">None</span><span class="p">):</span>
<span class="c1"># on utilise la methode qui en tient compte</span>
<span class="n">coor</span><span class="o">=</span><span class="n">deposit2D_GravityAndBigParticles</span><span class="p">(</span><span class="n">radii</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span>
<span class="n">coor</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">deposit2D_GravityAndBigParticles</span><span class="p">(</span><span class="n">radii</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span>
<span class="n">deposited_radii</span><span class="p">,</span> <span class="n">deposited_coor</span><span class="p">,</span> <span class="mi">2</span><span class="o">*</span><span class="n">nb_particles</span><span class="p">)</span>
<span class="c1"># sinon,</span>
<span class="k">else</span><span class="p">:</span>
<span class="c1"># on utilise la methode de base </span>
<span class="n">coor</span><span class="o">=</span><span class="n">deposit2D_Gravity</span><span class="p">(</span><span class="n">radii</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="mi">2</span><span class="o">*</span><span class="n">nb_particles</span><span class="p">)</span>
<span class="n">coor</span><span class="o">=</span><span class="n">lmgc90</span><span class="o">.</span><span class="n">deposit2D_Gravity</span><span class="p">(</span><span class="n">radii</span><span class="p">,</span> <span class="n">lx</span><span class="p">,</span> <span class="mi">2</span><span class=