mesh.html 25.8 KB
Newer Older
1
2
3
4
5
6
7
8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
mozul's avatar
mozul committed
9
    <title>Mesh &mdash; pylmgc90.pre 2015.2 documentation</title>
10
11
12
13
14
15
16
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
mozul's avatar
mozul committed
17
        VERSION:     '2015.2',
18
19
20
21
22
23
24
25
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
mozul's avatar
mozul committed
26
    <link rel="top" title="pylmgc90.pre 2015.2 documentation" href="index.html" />
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    <link rel="next" title="Miscellaneous" href="miscellaneous.html" />
    <link rel="prev" title="Masonry" href="masonry.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="miscellaneous.html" title="Miscellaneous"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="masonry.html" title="Masonry"
             accesskey="P">previous</a> |</li>
mozul's avatar
mozul committed
46
        <li><a href="index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li> 
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="mesh">
<h1>Mesh<a class="headerlink" href="#mesh" title="Permalink to this headline"></a></h1>
<p>This section presents functions dedicated to creation
or manipulation of meshes to produce avatars (rigid or deformable).
The <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.mesh" title="pylmgc90.pre_lmgc.mesh"><tt class="xref py py-class docutils literal"><span class="pre">mesh</span></tt></a> class allows to define a mesh object in the lightest way: nodes, connectivity
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>
<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"><em>Avatar definition</em></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-python"><div class="highlight"><pre><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="s">&#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="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="s">&#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="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="s">&#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="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="s">&#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="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="s">&#39;Q4xxx&#39;</span><span class="p">,</span> <span class="mi">4</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="p">)</span>
</pre></div>
</div>
mozul's avatar
mozul committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<p>Available elements are:</p>
<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>
</ul>
</div></blockquote>
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<p>Remember that rigid2D() and rigid3d() allow to define <em>rigid</em> element.</p>
</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>
<p>For the specific case of 2D rectangular mesh, the <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.buildMesh2D" title="pylmgc90.pre_lmgc.buildMesh2D"><tt class="xref py py-func docutils literal"><span class="pre">buildMesh2D()</span></tt></a> function can
be used and for the case of 3D paralleloid mesh <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.buildMeshH8" title="pylmgc90.pre_lmgc.buildMeshH8"><tt class="xref py py-func docutils literal"><span class="pre">buildMeshH8()</span></tt></a>
also.</p>
<p><strong>Example:</strong></p>
<p>Generating a simple rectangular mesh:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">my_mesh</span> <span class="o">=</span> <span class="n">buildMesh2D</span><span class="p">(</span><span class="s">&#39;Q4&#39;</span><span class="p">,</span> <span class="n">x0</span><span class="o">=</span><span class="mf">0.025</span><span class="p">,</span> <span class="n">y0</span><span class="o">=</span><span class="mf">0.05</span><span class="p">,</span> <span class="n">lx</span><span class="o">=</span><span class="mf">0.10</span><span class="p">,</span> <span class="n">ly</span><span class="o">=</span><span class="mf">0.05</span><span class="p">,</span> <span class="n">nb_elem_x</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span> <span class="n">nb_elem_y</span><span class="o">=</span><span class="mi">5</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="importing-a-mesh">
<h2>Importing a mesh<a class="headerlink" href="#importing-a-mesh" title="Permalink to this headline"></a></h2>
<p>The most efficient way to generate a mesh is to use a meshing software like
<a class="reference external" href="http://www.geuz.org/gmsh/">gmsh</a> . To this end the <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.lecture" title="pylmgc90.pre_lmgc.lecture"><tt class="xref py py-func docutils literal"><span class="pre">lecture()</span></tt></a>
function allow to read a file with gmsh format. In this way any kind of mesh
may be put in a mesh object.</p>
<p><strong>Example:</strong></p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">dim</span><span class="o">=</span><span class="mi">2</span>
<span class="n">mesh</span> <span class="o">=</span> <span class="n">lecture</span><span class="p">(</span><span class="s">&#39;block.msh&#39;</span><span class="p">,</span><span class="n">dim</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="mesh-to-avatar">
<h2>Mesh to avatar<a class="headerlink" href="#mesh-to-avatar" title="Permalink to this headline"></a></h2>
<p>Creating an avatar from a mesh is possible using:</p>
<ul>
<li><p class="first">deformable 2D/3D</p>
<p><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.buildMeshedAvatar" title="pylmgc90.pre_lmgc.buildMeshedAvatar"><tt class="xref py py-func docutils literal"><span class="pre">buildMeshedAvatar()</span></tt></a></p>
<p><strong>Example:</strong></p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">mesh_cube</span>   <span class="o">=</span> <span class="n">lecture</span><span class="p">(</span><span class="s">&#39;gmsh/cube_t4.msh&#39;</span><span class="p">,</span> <span class="n">dim</span><span class="p">)</span>
<span class="n">cube</span><span class="o">=</span><span class="n">buildMeshedAvatar</span><span class="p">(</span><span class="n">mesh</span><span class="o">=</span><span class="n">mesh_cube</span><span class="p">,</span> <span class="n">model</span><span class="o">=</span><span class="n">m3Dl</span><span class="p">,</span> <span class="n">material</span><span class="o">=</span><span class="n">stone</span><span class="p">)</span>
<span class="n">cube</span><span class="o">.</span><span class="n">addContactors</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="s">&#39;102&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;ASpx3&#39;</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s">&#39;BLEUx&#39;</span><span class="p">)</span>
<span class="n">cube</span><span class="o">.</span><span class="n">imposeDrivenDof</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="s">&#39;105&#39;</span> <span class="p">,</span> <span class="n">component</span><span class="o">=</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">3</span><span class="p">],</span> <span class="n">dofty</span><span class="o">=</span><span class="s">&#39;vlocy&#39;</span><span class="p">)</span>
</pre></div>
</div>
</li>
<li><p class="first">rigid 2D</p>
<p><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.rigidFromMesh2D" title="pylmgc90.pre_lmgc.rigidFromMesh2D"><tt class="xref py py-func docutils literal"><span class="pre">rigidFromMesh2D()</span></tt></a></p>
</li>
<li><p class="first">rigid 3D</p>
<ul class="simple">
<li><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.volumicMeshToRigid3D" title="pylmgc90.pre_lmgc.volumicMeshToRigid3D"><tt class="xref py py-func docutils literal"><span class="pre">volumicMeshToRigid3D()</span></tt></a></li>
<li><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.surfacicMeshToRigid3D" title="pylmgc90.pre_lmgc.surfacicMeshToRigid3D"><tt class="xref py py-func docutils literal"><span class="pre">surfacicMeshToRigid3D()</span></tt></a></li>
</ul>
<p><strong>Example:</strong></p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">body_donut</span> <span class="o">=</span> <span class="n">volumicMeshToRigid3D</span><span class="p">(</span><span class="n">volumic_mesh</span><span class="o">=</span><span class="n">mesh_donut</span><span class="p">,</span> <span class="n">model</span><span class="o">=</span><span class="n">mod</span><span class="p">,</span> <span class="n">material</span><span class="o">=</span><span class="n">tdur</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s">&#39;BLEUx&#39;</span><span class="p">)</span>
</pre></div>
</div>
</li>
</ul>
<p>For the rigid avatar, the mesh is used to define the boundary of the corresponding polygons/polyhedra.</p>
<p>The deformable avatars inherit the group of the original mesh,
allowing to define the desired boundary conditions and to add the contactors on them.</p>
<p>Sometimes, it is wanted to explode the continuous mesh in a collection
of avatars
(if one wants to use cohezive zone model for example). The
function allowing to obtain a container of avatars are:</p>
<ul class="simple">
<li><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.explodeMeshedAvatar2D" title="pylmgc90.pre_lmgc.explodeMeshedAvatar2D"><tt class="xref py py-func docutils literal"><span class="pre">explodeMeshedAvatar2D()</span></tt></a></li>
<li><a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.rigidsFromMesh2D" title="pylmgc90.pre_lmgc.rigidsFromMesh2D"><tt class="xref py py-func docutils literal"><span class="pre">rigidsFromMesh2D()</span></tt></a></li>
</ul>
</div>
<div class="section" id="extracting-a-mesh-from-meshes">
<h2>Extracting a mesh from meshes<a class="headerlink" href="#extracting-a-mesh-from-meshes" title="Permalink to this headline"></a></h2>
<p>Eventually a mesh loaded from a file may contain several parts which
correspond to different avatars. Using  <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.mesh.separateMeshes" title="pylmgc90.pre_lmgc.mesh.separateMeshes"><tt class="xref py py-func docutils literal"><span class="pre">mesh.separateMeshes()</span></tt></a> it
is possible to separate the meshes.</p>
<p><strong>Example:</strong></p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">dim</span><span class="o">=</span><span class="mi">3</span>
<span class="n">complete_mesh</span> <span class="o">=</span> <span class="n">lecture</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;gmsh/3_briques.msh&#39;</span><span class="p">,</span> <span class="n">dim</span><span class="o">=</span><span class="n">dim</span><span class="p">)</span>
<span class="n">entity2mesh</span><span class="o">=</span><span class="n">complete_mesh</span><span class="o">.</span><span class="n">separateMeshes</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="n">dim</span><span class="p">,</span> <span class="n">entity_type</span><span class="o">=</span><span class="s">&quot;geometricalEntity&quot;</span><span class="p">,</span> <span class="n">keep_all_elements</span><span class="o">=</span><span class="bp">False</span><span class="p">)</span>
<span class="k">for</span> <span class="n">volumic_mesh</span> <span class="ow">in</span> <span class="n">entity2mesh</span><span class="o">.</span><span class="n">values</span><span class="p">():</span>
   <span class="n">body</span> <span class="o">=</span> <span class="n">volumicMeshToRigid3D</span><span class="p">(</span><span class="n">volumic_mesh</span><span class="o">=</span><span class="n">volumic_mesh</span><span class="p">,</span> <span class="n">model</span><span class="o">=</span><span class="n">mod</span><span class="p">,</span> <span class="n">material</span><span class="o">=</span><span class="n">pdur</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s">&#39;BLEUx&#39;</span><span class="p">)</span>
   <span class="n">bodies</span><span class="o">.</span><span class="n">addAvatar</span><span class="p">(</span><span class="n">body</span><span class="p">)</span>
</pre></div>
</div>
<p>The output when separting meshes is a dictionary.</p>
<p>By the way it is possible to directly separate a surfacic mesh in
avatars using  <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.surfacicMeshesToRigid3D" title="pylmgc90.pre_lmgc.surfacicMeshesToRigid3D"><tt class="xref py py-func docutils literal"><span class="pre">surfacicMeshesToRigid3D()</span></tt></a></p>
</div>
<div class="section" id="managing-groups">
<h2>Managing groups<a class="headerlink" href="#managing-groups" title="Permalink to this headline"></a></h2>
<p>Groups are necessary to define model, material, contactors, boundary
condition, etc.</p>
<p>When defining material and models with <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.buildMeshedAvatar" title="pylmgc90.pre_lmgc.buildMeshedAvatar"><tt class="xref py py-func docutils literal"><span class="pre">buildMeshedAvatar()</span></tt></a> one
implicitely assumes that all the elements have the same group and
usually uses
default group <em>all</em>.  However it is possible to define several
material and model:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">my_mesh</span> <span class="o">=</span> <span class="n">lecture</span><span class="p">(</span><span class="s">&#39;Mesh.msh&#39;</span><span class="p">,</span> <span class="n">dim</span><span class="p">)</span>
<span class="n">my_mesh</span><span class="o">.</span><span class="n">rankRenumbering</span><span class="p">()</span>
<span class="n">body</span> <span class="o">=</span> <span class="n">avatar</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="nb">type</span><span class="o">=</span><span class="s">&#39;MAILx&#39;</span><span class="p">,</span> <span class="n">dimension</span><span class="o">=</span><span class="n">dim</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">addBulks</span><span class="p">(</span><span class="n">my_mesh</span><span class="o">.</span><span class="n">bulks</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">addNodes</span><span class="p">(</span><span class="n">my_mesh</span><span class="o">.</span><span class="n">nodes</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">defineGroups</span><span class="p">()</span>
<span class="n">body</span><span class="o">.</span><span class="n">defineModel</span><span class="p">(</span><span class="n">model</span><span class="o">=</span><span class="n">modPorous</span><span class="p">,</span> <span class="n">group</span> <span class="o">=</span> <span class="s">&#39;11&#39;</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">defineMaterial</span><span class="p">(</span><span class="n">material</span><span class="o">=</span><span class="n">matBiot</span><span class="p">,</span> <span class="n">group</span> <span class="o">=</span> <span class="s">&#39;11&#39;</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">defineModel</span><span class="p">(</span><span class="n">model</span><span class="o">=</span><span class="n">modFluid</span><span class="p">,</span> <span class="n">group</span> <span class="o">=</span> <span class="s">&#39;12&#39;</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">defineMaterial</span><span class="p">(</span><span class="n">material</span><span class="o">=</span><span class="n">matStokes</span><span class="p">,</span> <span class="n">group</span> <span class="o">=</span> <span class="s">&#39;12&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="applying-boundary-condition-without-group">
<h2>Applying boundary condition without group<a class="headerlink" href="#applying-boundary-condition-without-group" title="Permalink to this headline"></a></h2>
<p>predicates and so on</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">p</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
   <span class="k">return</span> <span class="nb">abs</span><span class="p">(</span><span class="n">x</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="mf">0.0016</span><span class="p">)</span> <span class="o">&lt;</span> <span class="mf">5.e-4</span>

<span class="n">body</span><span class="o">.</span><span class="n">addGroupUsingPredicate</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;relax&#39;</span><span class="p">,</span> <span class="n">predicate</span><span class="o">=</span><span class="n">p</span><span class="p">,</span> <span class="n">super_group</span><span class="o">=</span><span class="s">&#39;12&#39;</span><span class="p">)</span>
<span class="n">body</span><span class="o">.</span><span class="n">imposeDrivenDof</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="s">&#39;relax&#39;</span><span class="p">,</span> <span class="n">component</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">dofty</span><span class="o">=</span><span class="s">&#39;vlocy&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="miscellaneous">
<h2>Miscellaneous<a class="headerlink" href="#miscellaneous" title="Permalink to this headline"></a></h2>
<p>other use of <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.avatar.addContactors" title="pylmgc90.pre_lmgc.avatar.addContactors"><tt class="xref py py-func docutils literal"><span class="pre">avatar.addContactors()</span></tt></a></p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">outil</span><span class="o">.</span><span class="n">addContactors</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="s">&#39;11&#39;</span><span class="p">,</span><span class="nb">type</span><span class="o">=</span><span class="s">&#39;ALpxx&#39;</span><span class="p">,</span><span class="n">color</span><span class="o">=</span><span class="s">&#39;BLUEx&#39;</span><span class="p">,</span><span class="n">reverse</span><span class="o">=</span><span class="s">&#39;yes&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Mesh</a><ul>
<li><a class="reference internal" href="#hand-made-mesh">Hand made mesh</a></li>
<li><a class="reference internal" href="#built-in-generation">Built-in Generation</a></li>
<li><a class="reference internal" href="#importing-a-mesh">Importing a mesh</a></li>
<li><a class="reference internal" href="#mesh-to-avatar">Mesh to avatar</a></li>
<li><a class="reference internal" href="#extracting-a-mesh-from-meshes">Extracting a mesh from meshes</a></li>
<li><a class="reference internal" href="#managing-groups">Managing groups</a></li>
<li><a class="reference internal" href="#applying-boundary-condition-without-group">Applying boundary condition without group</a></li>
<li><a class="reference internal" href="#miscellaneous">Miscellaneous</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="masonry.html"
                        title="previous chapter">Masonry</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="miscellaneous.html"
                        title="next chapter">Miscellaneous</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/mesh.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <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>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="miscellaneous.html" title="Miscellaneous"
             >next</a> |</li>
        <li class="right" >
          <a href="masonry.html" title="Masonry"
             >previous</a> |</li>
mozul's avatar
mozul committed
285
        <li><a href="index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li> 
286
287
288
      </ul>
    </div>
    <div class="footer">
mozul's avatar
mozul committed
289
        &copy; Copyright 2015, CNRS.
290
291
292
293
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>