Commit 62b39777 authored by mozul's avatar mozul

[DOC] update sphinx docs of last sources

parent f3515b99
......@@ -188,7 +188,7 @@
<dt id="pylmgc90.pre_lmgc.models.addModel">
<code class="descname">addModel</code><span class="sig-paren">(</span><em>*mo</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylmgc90/pre_lmgc/models.html#models.addModel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylmgc90.pre_lmgc.models.addModel" title="Permalink to this definition"></a></dt>
<dd><p>addModel(self, * mo):</p>
<p>this function adds a model in the model container</p>
<p>this function adds a model in the models container</p>
<p>parameters:</p>
<ul class="simple">
<li>self: the model container itself</li>
......@@ -270,10 +270,7 @@ permet de stocker l&#8217;ensemble des materiaux</p>
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="#pylmgc90.pre_lmgc.materials.addMaterial" title="pylmgc90.pre_lmgc.materials.addMaterial"><code class="xref py py-obj docutils literal"><span class="pre">addMaterial</span></code></a>(self,*mat)</td>
<td><ul class="simple">
<li>mat est une liste de materiaux</li>
</ul>
</td>
<td>this function adds a material in the materials container</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">clear</span></code>(()&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Remove&nbsp;all&nbsp;items&nbsp;from&nbsp;D.)</td>
<td></td>
......@@ -340,9 +337,11 @@ permet de stocker l&#8217;ensemble des materiaux</p>
<dl class="method">
<dt id="pylmgc90.pre_lmgc.materials.addMaterial">
<code class="descname">addMaterial</code><span class="sig-paren">(</span><em>self</em>, <em>*mat</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylmgc90/pre_lmgc/bulk_behavs.html#materials.addMaterial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylmgc90.pre_lmgc.materials.addMaterial" title="Permalink to this definition"></a></dt>
<dd><ul class="simple">
<li>mat est une liste de materiaux</li>
</ul>
<dd><p>this function adds a material in the materials container</p>
<dl class="docutils">
<dt>parameters</dt>
<dd><a href="#id3"><span class="problematic" id="id4">*</span></a>mat the liste of materials</dd>
</dl>
</dd></dl>
</dd></dl>
......@@ -2718,8 +2717,8 @@ are neither sorted nor returned</li>
</dd></dl>
</div>
<div class="section" id="id3">
<h3>mesh manipulation<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h3>
<div class="section" id="id5">
<h3>mesh manipulation<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h3>
<dl class="function">
<dt id="pylmgc90.pre_lmgc.extractFreeSurface">
<code class="descclassname">pylmgc90.pre_lmgc.</code><code class="descname">extractFreeSurface</code><span class="sig-paren">(</span><em>volumic_mesh</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylmgc90/pre_lmgc/build_avatar/mesh3D.html#extractFreeSurface"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylmgc90.pre_lmgc.extractFreeSurface" title="Permalink to this definition"></a></dt>
......@@ -3048,7 +3047,7 @@ in xOz plane</p>
<li><a class="reference internal" href="#mesh-manipulation">Mesh manipulation</a><ul>
<li><a class="reference internal" href="#mesh-creation">mesh creation</a></li>
<li><a class="reference internal" href="#mesh-class">mesh class</a></li>
<li><a class="reference internal" href="#id3">mesh manipulation</a></li>
<li><a class="reference internal" href="#id5">mesh manipulation</a></li>
<li><a class="reference internal" href="#mesh-to-avatar-s">mesh to avatar(s)</a></li>
</ul>
</li>
......
......@@ -61,39 +61,36 @@ and possibly the groups elements belongs to.
In 3D only a volumic mesh can become a deformable or rigid avatar whereas
a surfacic mesh can only be used to generate a rigid avatar.
In 2D a mesh may define a deformable or a rigid avatar.</p>
<div class="section" id="hand-made-mesh">
<h2>Hand made mesh<a class="headerlink" href="#hand-made-mesh" title="Permalink to this headline"></a></h2>
<p>Again it is possible to define a mesh by hand using the class constructor
and the basic methods as explained in <a class="reference internal" href="philosophie.html#avatar-definition"><span class="std std-ref">Avatar definition</span></a>
section. But this solution is not usable to generate big meshes.</p>
<div class="section" id="hand-made-mesh">
<h2>Hand made mesh<a class="headerlink" href="#hand-made-mesh" title="Permalink to this headline"></a></h2>
<p>Basic example</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">m</span> <span class="o">=</span> <span class="n">mesh</span><span class="p">(</span><span class="n">dimension</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addNode</span><span class="p">(</span> <span class="n">node</span><span class="p">(</span><span class="s1">&#39;NO2xx&#39;</span><span class="p">,</span> <span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.</span><span class="p">,</span><span class="mf">0.</span><span class="p">]),</span> <span class="n">number</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span> <span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addNode</span><span class="p">(</span> <span class="n">node</span><span class="p">(</span><span class="s1">&#39;NO2xx&#39;</span><span class="p">,</span> <span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">1.</span><span class="p">,</span><span class="mf">0.</span><span class="p">]),</span> <span class="n">number</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span> <span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addNode</span><span class="p">(</span> <span class="n">node</span><span class="p">(</span><span class="s1">&#39;NO2xx&#39;</span><span class="p">,</span> <span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.</span><span class="p">,</span><span class="mf">1.</span><span class="p">]),</span> <span class="n">number</span><span class="o">=</span><span class="mi">3</span><span class="p">)</span> <span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addNode</span><span class="p">(</span> <span class="n">node</span><span class="p">(</span><span class="s1">&#39;NO2xx&#39;</span><span class="p">,</span> <span class="n">numpy</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">1.</span><span class="p">,</span><span class="mf">1.</span><span class="p">]),</span> <span class="n">number</span><span class="o">=</span><span class="mi">4</span><span class="p">)</span> <span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addBulk</span><span class="p">(</span> <span class="n">element</span><span class="p">(</span><span class="s1">&#39;Q4xxx&#39;</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">4</span><span class="p">,</span><span class="mi">3</span><span class="p">]),</span> <span class="n">physicalEntity</span><span class="o">=</span><span class="s1">&#39;1quad&#39;</span> <span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">addBulk</span><span class="p">(</span> <span class="n">element</span><span class="p">(</span><span class="s1">&#39;Q4xxx&#39;</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">4</span><span class="p">,</span><span class="mi">3</span><span class="p">],</span> <span class="n">physicalEntity</span><span class="o">=</span><span class="s1">&#39;1quad&#39;</span><span class="p">)</span> <span class="p">)</span>
</pre></div>
</div>
<p>Available elements are:</p>
<p>Available geometrical elements are:</p>
<blockquote>
<div><blockquote>
<div><ul class="simple">
<li>&#8216;Rxx2D&#8217;,&#8217;Rxx3D&#8217;,</li>
<li>&#8216;SPRG2&#8217;,&#8217;SPRG3&#8217;,&#8217;Beam&#8217;,&#8217;Cable&#8217;,&#8217;S2xth&#8217;,</li>
<li>&#8216;Q4xxx&#8217;,&#8217;Q4P0x&#8217;,&#8217;Q44xx&#8217;,</li>
<li>&#8216;T3xxx&#8217;,&#8217;DKTxx&#8217;,&#8217;T33xx&#8217;,</li>
<li>&#8216;Q8xxx&#8217;,&#8217;Q8Rxx&#8217;,&#8217;Q84xx&#8217;,</li>
<li>&#8216;Q9xxx&#8217;,</li>
<li>&#8216;T6xxx&#8217;,&#8217;T63xx&#8217;,</li>
<li>&#8216;TE4xx&#8217;,&#8217;TE4lx&#8217;,&#8217;TE44x&#8217;,</li>
<li>&#8216;TE10x&#8217;,&#8217;TE104&#8217;,</li>
<li>&#8216;H8xxx&#8217;,&#8217;H88xx&#8217;,&#8217;SHB8x&#8217;,</li>
<li>&#8216;H20xx&#8217;,&#8217;H20Rx&#8217;,&#8217;H208x&#8217;,&#8217;SHB20&#8217;,</li>
<li>&#8216;PRI6x&#8217;,&#8217;SHB6x&#8217;,</li>
<li>&#8216;PRI15&#8217;,&#8217;SHB15&#8217;</li>
<li>1D : Point, S2xxx, S3xxx,</li>
<li>2D : Point, S2xxx, S3xxx, T3xxx, Q4xxx, T6xxx, Q8xxx, Q9xxx,</li>
<li>3D : Point, S2xxx, S3xxx, T3xxx, Q4xxx, T6xxx, Q8xxx, Q9xxx,
H8xxx, H20xx, TE4xx, TE10x, PRI6x, PRI15</li>
</ul>
</div></blockquote>
<p>Remember that rigid2D() and rigid3d() allow to define <em>rigid</em> element.</p>
</div></blockquote>
<p>Remember that rigid2d() and rigid3d() allow to define <em>rigid</em>
element. It is equivalent to</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">element</span><span class="p">(</span> <span class="nb">type</span><span class="o">=</span><span class="s1">&#39;Point&#39;</span><span class="p">,</span> <span class="n">connectivity</span><span class="o">=</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">physicalEntity</span><span class="o">=</span><span class="s1">&#39;1&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="built-in-generation">
<h2>Built-in Generation<a class="headerlink" href="#built-in-generation" title="Permalink to this headline"></a></h2>
......
......@@ -60,8 +60,8 @@
<p>Available elements:</p>
<blockquote>
<div><ul class="simple">
<li>rigid2d() : &#8216;Rxx2D&#8217;</li>
<li>rigid3d() : &#8216;Rxx3D&#8217;</li>
<li>Point : Rxx2D</li>
<li>Point : Rxx3D</li>
</ul>
</div></blockquote>
<p>Available options: <strong>None</strong></p>
......@@ -72,21 +72,20 @@
</div>
<div class="section" id="mechanical-mecax">
<h2>Mechanical (MECAx) :<a class="headerlink" href="#mechanical-mecax" title="Permalink to this headline"></a></h2>
<p>Available elements:</p>
<p>Available elements (I: isoparametric, B: bar, D: discrete, S: SHB) :</p>
<blockquote>
<div><ul class="simple">
<li>Point : &#8216;Point&#8217;</li>
<li>S2xxx : &#8216;SPRG2&#8217;, &#8216;SPRG3&#8217;, &#8216;Beam&#8217;, &#8216;Cable&#8217;</li>
<li>S3xxx :</li>
<li>T3xxx : &#8216;T3xxx&#8217;,&#8217;DKTxx&#8217;</li>
<li>T6xxx : &#8216;T6xxx&#8217;</li>
<li>Q4xxx : &#8216;Q4xxx&#8217;, &#8216;Q4P0x&#8217;</li>
<li>Q8xxx : &#8216;Q8xxx&#8217;, &#8216;Q8Rxx&#8217;</li>
<li>TE4xx : &#8216;TE4xx&#8217;,&#8217;TE4lx&#8217;</li>
<li>TE10x : &#8216;TE10x&#8217;</li>
<li>H8xxx : &#8216;H8xxx&#8217;</li>
<li>H20xx : &#8216;H20xx&#8217;, &#8216;H20Rx&#8217;</li>
<li>PRI6x : &#8216;PRI6x&#8217;</li>
<li>S2xxx : SPRNG (D), BARxx (B)</li>
<li>T3xxx : T3xxx (I), DKTxx</li>
<li>T6xxx : T6xxx (I)</li>
<li>Q4xxx : Q4xxx (I), Q4P0x (I)</li>
<li>Q8xxx : Q8xxx (I), Q8Rxx (I)</li>
<li>TE4xx : TE4xx (I), TE4lx (I)</li>
<li>TE10x : TE10x (I)</li>
<li>H8xxx : H8xxx (I)</li>
<li>H20xx : H20xx (I), H20Rx (I)</li>
<li>PRI6x : PRI6x (I), SHB6x (S)</li>
<li>PRI15 : PRI15 (I)</li>
</ul>
</div></blockquote>
<p>Available options:</p>
......@@ -112,21 +111,18 @@
</div>
<div class="section" id="thermal-therx">
<h2>Thermal (THERx) :<a class="headerlink" href="#thermal-therx" title="Permalink to this headline"></a></h2>
<p>Available elements:</p>
<p>Available elements (I: isoparametric, B: bar):</p>
<blockquote>
<div><ul class="simple">
<li>Point :</li>
<li>S2xxx :</li>
<li>S3xxx :</li>
<li>T3xxx : &#8216;T3xxx&#8217;</li>
<li>T6xxx : &#8216;T6xxx&#8217;</li>
<li>Q4xxx : &#8216;Q4xxx&#8217;</li>
<li>Q8xxx : &#8216;Q8xxx&#8217;</li>
<li>TE4xx : &#8216;TE4xx&#8217;</li>
<li>TE10x : &#8216;TE10x&#8217;</li>
<li>H8xxx : &#8216;H8xxx&#8217;</li>
<li>H20xx : &#8216;H20xx&#8217;</li>
<li>PRI6x : &#8216;PRI6x&#8217;</li>
<li>S2xxx : S2xth (B)</li>
<li>T3xxx : T3xxx (I)</li>
<li>T6xxx : T6xxx (I)</li>
<li>Q4xxx : Q4xxx (I)</li>
<li>Q8xxx : Q8xxx (I), Q8Rxx (I)</li>
<li>TE4xx : TE4xx (I)</li>
<li>TE10x : TE10x (I)</li>
<li>H8xxx : H8xxx (I)</li>
<li>H20xx : H20xx (I), H20Rx (I)</li>
</ul>
</div></blockquote>
<p>Available options:</p>
......@@ -152,18 +148,14 @@
<p>Available elements:</p>
<blockquote>
<div><ul class="simple">
<li>Point :</li>
<li>S2xxx :</li>
<li>S3xxx :</li>
<li>T3xxx : &#8216;T33xx&#8217;</li>
<li>T6xxx : &#8216;T63xx&#8217;</li>
<li>Q4xxx : &#8216;Q44xx&#8217;</li>
<li>Q8xxx : &#8216;Q84xx&#8217;</li>
<li>TE4xx : &#8216;TE44x&#8217;</li>
<li>TE10x : &#8216;TE104&#8217;</li>
<li>H8xxx :&#8217;H88xx&#8217;</li>
<li>H20xx :&#8217;H208x&#8217;</li>
<li>PRI6x :</li>
<li>T3xxx : T33xx</li>
<li>T6xxx : T63xx</li>
<li>Q4xxx : Q44xx</li>
<li>Q8xxx : Q84xx</li>
<li>TE4xx : TE44x</li>
<li>TE10x : TE104</li>
<li>H8xxx :H88xx</li>
<li>H20xx :H208x</li>
</ul>
</div></blockquote>
<p>Available options:</p>
......
......@@ -59,16 +59,16 @@
script.</p>
<p>Specific tunings can be performed setting some additional options.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="c1"># importing chipy module</span>
<span class="kn">from</span> <span class="nn">pylmgc90.chipy</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90</span> <span class="k">import</span> <span class="n">chipy</span>
<span class="c1"># Initializing</span>
<span class="n">Initialize</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">Initialize</span><span class="p">()</span>
<span class="c1"># checking/creating mandatory subfolders</span>
<span class="n">checkDirectories</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">checkDirectories</span><span class="p">()</span>
<span class="c1"># logMes</span>
<span class="c1"># utilities_DisableLogMes()</span>
<span class="c1"># chipy.utilities_DisableLogMes()</span>
<span class="c1">#</span>
<span class="c1"># defining some variables</span>
......@@ -100,7 +100,7 @@ script.</p>
<span class="n">norm</span> <span class="o">=</span> <span class="s1">&#39;Quad &#39;</span>
<span class="n">gs_it1</span> <span class="o">=</span> <span class="mi">50</span>
<span class="n">gs_it2</span> <span class="o">=</span> <span class="mi">10</span>
<span class="nb">type</span><span class="o">=</span><span class="s1">&#39;Stored_Delassus_Loops &#39;</span>
<span class="n">solver_type</span><span class="o">=</span><span class="s1">&#39;Stored_Delassus_Loops &#39;</span>
<span class="c1"># write parameter</span>
<span class="n">freq_write</span> <span class="o">=</span> <span class="mi">10</span>
......@@ -114,56 +114,56 @@ script.</p>
<span class="c1">#</span>
<span class="c1"># Set space dimension</span>
<span class="n">SetDimension</span><span class="p">(</span><span class="n">dim</span><span class="p">,</span><span class="n">mhyp</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">SetDimension</span><span class="p">(</span><span class="n">dim</span><span class="p">,</span><span class="n">mhyp</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;INIT TIME STEPPING&#39;</span><span class="p">)</span>
<span class="n">TimeEvolution_SetTimeStep</span><span class="p">(</span><span class="n">dt</span><span class="p">)</span>
<span class="n">Integrator_InitTheta</span><span class="p">(</span><span class="n">theta</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;INIT TIME STEPPING&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">TimeEvolution_SetTimeStep</span><span class="p">(</span><span class="n">dt</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">Integrator_InitTheta</span><span class="p">(</span><span class="n">theta</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">ReadBehaviours</span><span class="p">()</span>
<span class="k">if</span> <span class="n">deformable</span><span class="p">:</span> <span class="n">ReadModels</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadBehaviours</span><span class="p">()</span>
<span class="k">if</span> <span class="n">deformable</span><span class="p">:</span> <span class="n">chipy</span><span class="o">.</span><span class="n">ReadModels</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ BODIES&#39;</span><span class="p">)</span>
<span class="n">ReadBodies</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ BODIES&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadBodies</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;LOAD BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">LoadBehaviours</span><span class="p">()</span>
<span class="k">if</span> <span class="n">deformable</span><span class="p">:</span> <span class="n">LoadModels</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;LOAD BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">LoadBehaviours</span><span class="p">()</span>
<span class="k">if</span> <span class="n">deformable</span><span class="p">:</span> <span class="n">chipy</span><span class="o">.</span><span class="n">LoadModels</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI DOF&#39;</span><span class="p">)</span>
<span class="n">ReadIniDof</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI DOF&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadIniDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="k">if</span> <span class="n">deformable</span><span class="p">:</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI GPV&#39;</span><span class="p">)</span>
<span class="n">ReadIniGPV</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI GPV&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadIniGPV</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ DRIVEN DOF&#39;</span><span class="p">)</span>
<span class="n">ReadDrivenDof</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ DRIVEN DOF&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadDrivenDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;LOAD TACTORS&#39;</span><span class="p">)</span>
<span class="n">LoadTactors</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;LOAD TACTORS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">LoadTactors</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI Vloc Rloc&#39;</span><span class="p">)</span>
<span class="n">ReadIniVlocRloc</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;READ INI Vloc Rloc&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ReadIniVlocRloc</span><span class="p">()</span>
<span class="c1">#</span>
<span class="c1"># paranoid writes</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE BODIES&#39;</span><span class="p">)</span>
<span class="n">WriteBodies</span><span class="p">()</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">WriteBehaviours</span><span class="p">()</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE DRIVEN DOF&#39;</span><span class="p">)</span>
<span class="n">WriteDrivenDof</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE BODIES&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteBodies</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE BEHAVIOURS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteBehaviours</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE DRIVEN DOF&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteDrivenDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="c1"># open display &amp; postpro</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;DISPLAY &amp; WRITE&#39;</span><span class="p">)</span>
<span class="n">OpenDisplayFiles</span><span class="p">()</span>
<span class="n">OpenPostproFiles</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;DISPLAY &amp; WRITE&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">OpenDisplayFiles</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">OpenPostproFiles</span><span class="p">()</span>
<span class="c1">#</span>
<span class="c1"># simulation part ...</span>
......@@ -174,11 +174,11 @@ script.</p>
<span class="c1">#</span>
<span class="c1"># close display &amp; postpro</span>
<span class="c1">#</span>
<span class="n">CloseDisplayFiles</span><span class="p">()</span>
<span class="n">ClosePostproFiles</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">CloseDisplayFiles</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ClosePostproFiles</span><span class="p">()</span>
<span class="c1"># this is the end</span>
<span class="n">Finalize</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">Finalize</span><span class="p">()</span>
</pre></div>
</div>
</div>
......
......@@ -57,65 +57,63 @@
<p>Here is a typical time loop for the modelling of a linear deformable
sample (assumes <em>deformable = 1</em>)</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="c1"># since constant compute elementary mass matrices once</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE MASS&#39;</span><span class="p">)</span>
<span class="n">ComputeMass</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE MASS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeMass</span><span class="p">()</span>
<span class="c1"># since constant compute elementary stiffness matrices once</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE STIFFNESS&#39;</span><span class="p">)</span>
<span class="n">ComputeBulk</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE STIFFNESS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeBulk</span><span class="p">()</span>
<span class="c1"># since constant compute iteration matrix once</span>
<span class="n">AssembleMechanicalLHS</span><span class="p">()</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;ASSEMB KT&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">AssembleMechanicalLHS</span><span class="p">()</span>
<span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="n">nb_steps</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">):</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;INCREMENT STEP&#39;</span><span class="p">)</span>
<span class="n">IncrementStep</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;DISPLAY TIMES&#39;</span><span class="p">)</span>
<span class="n">TimeEvolution_DisplayStep</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Fext&#39;</span><span class="p">)</span>
<span class="n">ComputeFext</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Fint&#39;</span><span class="p">)</span>
<span class="n">ComputeBulk</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;ASSEMBLAGE&#39;</span><span class="p">)</span>
<span class="n">AssembleMechanicalRHS</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Free Vlocy&#39;</span><span class="p">)</span>
<span class="n">ComputeFreeVelocity</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;SELECT PROX TACTORS&#39;</span><span class="p">)</span>
<span class="n">SelectProxTactors</span><span class="p">(</span><span class="n">freq_detect</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;RESOLUTION&#39;</span> <span class="p">)</span>
<span class="n">RecupRloc</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">ExSolver</span><span class="p">(</span><span class="nb">type</span><span class="p">,</span> <span class="n">norm</span><span class="p">,</span> <span class="n">tol</span><span class="p">,</span> <span class="n">relax</span><span class="p">,</span> <span class="n">gs_it1</span><span class="p">,</span> <span class="n">gs_it2</span><span class="p">)</span>
<span class="n">UpdateTactBehav</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">StockRloc</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE DOF, FIELDS, etc.&#39;</span><span class="p">)</span>
<span class="n">ComputeDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;UPDATE DOF, FIELDS&#39;</span><span class="p">)</span>
<span class="n">UpdateStep</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT DOF&#39;</span><span class="p">)</span>
<span class="n">WriteOutDof</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT GPV&#39;</span><span class="p">)</span>
<span class="n">WriteOutGPV</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT Rloc&#39;</span><span class="p">)</span>
<span class="n">WriteOutVlocRloc</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;VISU &amp; POSTPRO&#39;</span><span class="p">)</span>
<span class="n">WriteDisplayFiles</span><span class="p">(</span><span class="n">freq_display</span><span class="p">,</span><span class="n">ref_radius</span><span class="p">)</span>
<span class="n">WritePostproFiles</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;INCREMENT STEP&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">IncrementStep</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Fext&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeFext</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Fint&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeBulk</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;ASSEMB RHS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">AssembleMechanicalRHS</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Free Vlocy&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeFreeVelocity</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;SELECT PROX TACTORS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">SelectProxTactors</span><span class="p">(</span><span class="n">freq_detect</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;RESOLUTION&#39;</span> <span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">RecupRloc</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ExSolver</span><span class="p">(</span><span class="n">solver_type</span><span class="p">,</span> <span class="n">norm</span><span class="p">,</span> <span class="n">tol</span><span class="p">,</span> <span class="n">relax</span><span class="p">,</span> <span class="n">gs_it1</span><span class="p">,</span> <span class="n">gs_it2</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">UpdateTactBehav</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">StockRloc</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE DOF, FIELDS, etc.&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">ComputeDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;UPDATE DOF, FIELDS&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">UpdateStep</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT DOF&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteOutDof</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT GPV&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteOutGPV</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;WRITE OUT Rloc&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteOutVlocRloc</span><span class="p">(</span><span class="n">freq_write</span><span class="p">)</span>
<span class="c1">#</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;VISU &amp; POSTPRO&#39;</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WriteDisplayFiles</span><span class="p">(</span><span class="n">freq_display</span><span class="p">,</span><span class="n">ref_radius</span><span class="p">)</span>
<span class="n">chipy</span><span class="o">.</span><span class="n">WritePostproFiles</span><span class="p">()</span>
</pre></div>
</div>
</div>
......
......@@ -14253,14 +14253,13 @@ one body. Assumes bulk behaviour is linear.</p>
<dt id="pylmgc90.chipy.lmgc90.mecaMAILx_SetRVDrivenDofs">
<code class="descclassname">pylmgc90.chipy.lmgc90.</code><code class="descname">mecaMAILx_SetRVDrivenDofs</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylmgc90/chipy/lmgc90.html#mecaMAILx_SetRVDrivenDofs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylmgc90.chipy.lmgc90.mecaMAILx_SetRVDrivenDofs" title="Permalink to this definition">¶</a></dt>
<dd><p>declares rigid velocity dof as driven</p>
<p>python usage : mecaMAILx_SetRVDrivenDofs(idbody,vector_in,length)</p>
<p>python usage : mecaMAILx_SetRVDrivenDofs(idbody,vector_in)</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>idbody (integer)</strong> : id of the body</p>
<p><strong>vector (integer)</strong> : list of driven dofs</p>
<p class="last"><strong>length (integer)</strong> : size of the list</p>
<p class="last"><strong>vector (integer)</strong> : list of driven dofs</p>
</td>
</tr>
</tbody>
......@@ -66,86 +66,86 @@
</div>
<p>Here is a typical time loop</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="c1"># Newton loop parameters:</span>
<span class="n">NewtonRaphson_SetFinalTime</span><span class="p">(</span><span class="n">t_final</span><span class="p">)</span>
<span class="n">NewtonRaphson_SetMinTimeStep</span><span class="p">(</span><span class="n">dt_min</span><span class="p">)</span>
<span class="n">NewtonRaphson_SetMaxTimeStep</span><span class="p">(</span><span class="n">dt_max</span><span class="p">)</span>
<span class="n">NewtonRaphson_SetMaxIter</span><span class="p">(</span><span class="n">NR_max_iter</span><span class="p">)</span>
<span class="n">NewtonRaphson_SetIncPatience</span><span class="p">(</span><span class="n">NR_adapt</span><span class="p">)</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE MASS&#39;</span><span class="p">)</span>
<span class="n">ComputeMass</span><span class="p">()</span>
<span class="k">while</span> <span class="n">TimeEvolution_GetTime</span><span class="p">()</span> <span class="o">&lt;</span> <span class="n">t_final</span> <span class="p">:</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;INCREMENT STEP&#39;</span><span class="p">)</span>
<span class="n">IncrementStep</span><span class="p">()</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Fext&#39;</span><span class="p">)</span>
<span class="n">ComputeFext</span><span class="p">()</span>
<span class="c1"># Newton loop</span>
<span class="n">NewtonRaphson_Initialize</span><span class="p">(</span><span class="n">NR_tol</span><span class="p">)</span>
<span class="n">is_converged</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">k</span><span class="o">=</span><span class="mi">0</span>
<span class="c1">#looping until something changes in CheckConvergence</span>
<span class="k">while</span> <span class="n">is_converged</span> <span class="o">==</span> <span class="mi">1</span> <span class="p">:</span>
<span class="n">k</span><span class="o">+=</span><span class="mi">1</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE BULK&#39;</span><span class="p">)</span>
<span class="n">ComputeBulk</span><span class="p">()</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;ASSEMB RHS/KT&#39;</span><span class="p">)</span>
<span class="n">AssembleMechanicalRHS</span><span class="p">()</span>
<span class="n">AssembleMechanicalLHS</span><span class="p">()</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE Free Vlocy&#39;</span><span class="p">)</span>
<span class="n">ComputeFreeVelocity</span><span class="p">()</span>
<span class="c1">#</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;SELECT PROX TACTORS&#39;</span><span class="p">)</span>
<span class="n">SelectProxTactors</span><span class="p">(</span><span class="n">freq_detect</span><span class="p">)</span>
<span class="c1">#</span>
<span class="c1">### Signorini Coulomb</span>
<span class="n">RecupRloc</span><span class="p">()</span>
<span class="n">ExSolver</span><span class="p">(</span><span class="nb">type</span><span class="p">,</span> <span class="n">norm</span><span class="p">,</span> <span class="n">tol</span><span class="p">,</span> <span class="n">relax</span><span class="p">,</span> <span class="n">gs_it1</span><span class="p">,</span> <span class="n">gs_it2</span><span class="p">)</span>
<span class="n">StockRloc</span><span class="p">()</span>
<span class="c1">###</span>
<span class="n">utilities_logMes</span><span class="p">(</span><span class="s1">&#39;COMPUTE DOF&#39;</span><span class="p">)</span>
<span class="n">ComputeDof</span><span class="p">()</span>
<span class="c1">#</span>
<span class="k">if</span> <span class="n">k</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">NR_norm</span> <span class="o">=</span> <span class="n">mecaMAILx_ComputeResidueNorm</span><span class="p">()</span>
<span class="n">is_converged</span> <span class="o">=</span> <span class="n">NewtonRaphson_CheckConvergence</span><span class="p">(</span><span class="n">NR_norm</span><span class="p">)</span>
<span class="c1">### end while NR</span>