Commit fb967829 authored by Rémy Mozul's avatar Rémy Mozul

update sphinx docs

parent 245b1731
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 18d4cbd131087e90d4cf97685dfe9ec3
config: fe71abc29a7abe7fa7ffbd3eda79a4e9
tags: 645f666f9bcd5a90fca523b33c5a78b7
......@@ -5,32 +5,37 @@ from pylmgc90.pre import *
dim = 2
# disk creation
radius = 0.1
disk = avatar(dimension=dim)
disk.addNode( node(coor=numpy.array([0.,0.1]),number=1) )
disk.addBulk( rigid2d() )
disk.defineGroups()
disk.addContactors(shape='DISKx',color='BLUEx',byrd=radius)
# foundation creation
floor = avatar(dimension=dim)
floor.addNode( node(coor=numpy.array([0.,-0.05]),number=1) )
floor.addBulk( rigid2d() )
floor.defineGroups()
floor.addContactors(shape='JONCx',color='BLUEx',axe1=1.,axe2=0.05)
# materials, model and groups definition
mat = material(name='TDURx',materialType='RIGID',density=1000.)
mut = material(name='MOUxx',materialType='RIGID',density=100.)
mod = model(name='rigid', physics='MECAx', element='Rxx2D', dimension=dim)
disk.defineModel(model=mod)
disk.defineMaterial(material=mut)
disk.computeRigidProperties()
floor.defineModel(model=mod)
floor.defineMaterial(material=mat)
floor.computeRigidProperties()
radius = 0.1
disk = rigidDisk(r=radius, center=[0.,0.1], model=mod, material= mat, color='BLUEx')
floor= rigidJonc(axe1=1., axe2=0.05, center=[0.,-0.05], model=mod, material=mat, color='BLUEx')
## disk creation
#radius = 0.1
#disk = avatar(dimension=dim)
#disk.addNode( node(coor=numpy.array([0.,0.1]),number=1) )
#disk.addBulk( rigid2d() )
#disk.defineGroups()
#disk.addContactors(shape='DISKx',color='BLUEx',byrd=radius)
#
## foundation creation
#floor = avatar(dimension=dim)
#floor.addNode( node(coor=numpy.array([0.,-0.05]),number=1) )
#floor.addBulk( rigid2d() )
#floor.defineGroups()
#floor.addContactors(shape='JONCx',color='BLUEx',axe1=1.,axe2=0.05)
#
#disk.defineModel(model=mod)
#disk.defineMaterial(material=mut)
#disk.computeRigidProperties()
#floor.defineModel(model=mod)
#floor.defineMaterial(material=mat)
#floor.computeRigidProperties()
# boundary condition
floor.imposeDrivenDof(component=[1,2,3],dofty='vlocy')
......
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Overview: module code &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>Overview: module code &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel="stylesheet" href="../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
......@@ -14,16 +14,18 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2015.2',
VERSION: '2017.rc1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</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>
<link rel="top" title="pylmgc90.pre 2015.2 documentation" href="../index.html" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
......@@ -35,7 +37,7 @@
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
</ul>
</div>
......@@ -105,12 +107,12 @@
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
&#169; Copyright 2017, CNRS, UM.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.2.
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pylmgc90.pre.IO.evolution2File &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>pylmgc90.pre.IO.evolution2File &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel="stylesheet" href="../../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
......@@ -14,17 +14,18 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../../',
VERSION: '2015.2',
VERSION: '2017.rc1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</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>
<link rel="top" title="pylmgc90.pre 2015.2 documentation" href="../../../../index.html" />
<link rel="up" title="Module code" href="../../../index.html" />
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
......@@ -36,8 +37,8 @@
<li class="right" >
<a href="../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" accesskey="U">Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
......@@ -49,7 +50,7 @@
<h1>Source code for pylmgc90.pre.IO.evolution2File</h1><div class="highlight"><pre>
<span></span><span class="c1"># module gerant l&#39;ecriture du fichier d&#39;evolution pour l&#39;application des conditions limites</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.error</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.error</span> <span class="k">import</span> <span class="o">*</span>
<div class="viewcode-block" id="writeEvolution"><a class="viewcode-back" href="../../../../classes.html#pylmgc90.pre.writeEvolution">[docs]</a><span class="k">def</span> <span class="nf">writeEvolution</span><span class="p">(</span><span class="n">f</span><span class="p">,</span> <span class="n">instants</span><span class="p">,</span> <span class="n">path</span><span class="o">=</span><span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s1">&#39;evolution.dat&#39;</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
......@@ -68,13 +69,13 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># on verifie que la fonction donnee est bien appelable</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">callable</span><span class="p">(</span><span class="n">f</span><span class="p">):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">callable</span><span class="p">(</span><span class="n">f</span><span class="p">):</span>
<span class="n">showError</span><span class="p">(</span><span class="s2">&quot;given function is not callable!&quot;</span><span class="p">)</span>
<span class="c1"># on ouvre le fichier d&#39;evolution en ecriture</span>
<span class="n">fid</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="n">name</span><span class="p">),</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span>
<span class="k">print</span> <span class="s1">&#39;</span><span class="se">\n</span><span class="s1">Debut Ecriture du fichier </span><span class="se">\t</span><span class="s1">:</span><span class="se">\t</span><span class="s1">&#39;</span> <span class="o">+</span> <span class="n">name</span>
<span class="nb">print</span> <span class="s1">&#39;</span><span class="se">\n</span><span class="s1">Debut Ecriture du fichier </span><span class="se">\t</span><span class="s1">:</span><span class="se">\t</span><span class="s1">&#39;</span> <span class="o">+</span> <span class="n">name</span>
<span class="c1"># on ecrit le couple t, f(t) pour chaque instant t</span>
<span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">instants</span><span class="p">:</span>
......@@ -83,7 +84,7 @@
<span class="c1"># on ferme le fichier</span>
<span class="n">fid</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
<span class="k">print</span> <span class="s1">&#39;Fin Ecriture du fichier </span><span class="se">\t</span><span class="s1">:</span><span class="se">\t</span><span class="s1">&#39;</span> <span class="o">+</span> <span class="n">name</span></div>
<span class="nb">print</span> <span class="s1">&#39;Fin Ecriture du fichier </span><span class="se">\t</span><span class="s1">:</span><span class="se">\t</span><span class="s1">&#39;</span> <span class="o">+</span> <span class="n">name</span></div>
</pre></div>
</div>
......@@ -114,13 +115,13 @@
<li class="right" >
<a href="../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" >Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
&#169; Copyright 2017, CNRS, UM.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.2.
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pylmgc90.pre.avatar.bulk.bulk &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>pylmgc90.pre.avatar.bulk.bulk &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel="stylesheet" href="../../../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../../../_static/pygments.css" type="text/css" />
......@@ -14,17 +14,18 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../../../',
VERSION: '2015.2',
VERSION: '2017.rc1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</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>
<link rel="top" title="pylmgc90.pre 2015.2 documentation" href="../../../../../index.html" />
<link rel="up" title="Module code" href="../../../../index.html" />
<link rel="index" title="Index" href="../../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../../search.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
......@@ -36,8 +37,8 @@
<li class="right" >
<a href="../../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" accesskey="U">Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
......@@ -49,13 +50,13 @@
<h1>Source code for pylmgc90.pre.avatar.bulk.bulk</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.shared.bulk_behav</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.shared.model</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.shared.bulk_behav</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.shared.model</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">import</span> <span class="nn">numpy</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.config.lmgc90dicts</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.config.lmgc90dicts</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.error</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.error</span> <span class="k">import</span> <span class="o">*</span>
<span class="c1">## @class bulk</span>
......@@ -63,7 +64,7 @@
<span class="c1"># description </span>
<div class="viewcode-block" id="bulk"><a class="viewcode-back" href="../../../../../classes.html#pylmgc90.pre.bulk">[docs]</a><span class="k">class</span> <span class="nc">bulk</span><span class="p">():</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">elem_dim</span><span class="p">,</span> <span class="n">connectivity</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> <span class="n">geometricalEntity</span><span class="o">=</span><span class="s1">&#39;1&#39;</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="n">nbNodes</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">elem_dim</span><span class="p">,</span> <span class="n">connectivity</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> <span class="n">geometricalEntity</span><span class="o">=</span><span class="s1">&#39;1&#39;</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">nbNodes</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot; __init__(self, elem_dim, connectivity, physicalEntity=&#39;1&#39;, geometricalEntity=&#39;1&#39;, number=None, nbNodes=None)</span>
<span class="sd"> this function initializes a new bulk</span>
......@@ -93,14 +94,14 @@
<span class="c1"># le numero du bulk est inconnu pour l&#39;instant et sera defini lors de son</span>
<span class="c1"># ajout a un avatar</span>
<span class="bp">self</span><span class="o">.</span><span class="n">number</span> <span class="o">=</span> <span class="bp">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">number</span> <span class="o">=</span> <span class="kc">None</span>
<span class="c1">#fd necessaire pour garder le lien avec le maillage de depart</span>
<span class="bp">self</span><span class="o">.</span><span class="n">originalnumber</span><span class="o">=</span><span class="n">number</span>
<span class="c1"># si l&#39;utilisateur a donne un nombre de noeuds</span>
<span class="k">if</span> <span class="n">nbNodes</span> <span class="o">!=</span> <span class="bp">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">nbNodes</span> <span class="o">!=</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># on lui indique que c&#39;est inutile</span>
<span class="n">showWarning</span><span class="p">(</span><span class="s2">&quot;assign a number of nodes to an element is useless since its can be computed from the connectivity!&quot;</span><span class="p">)</span>
......@@ -125,8 +126,8 @@
<span class="bp">self</span><span class="o">.</span><span class="n">geometricalEntity</span> <span class="o">=</span> <span class="n">geometricalEntity</span>
<span class="c1"># on initialise a vide le modele et le materiau portes par l&#39;element</span>
<span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="bp">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">material</span> <span class="o">=</span> <span class="bp">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">material</span> <span class="o">=</span> <span class="kc">None</span>
<span class="c1">## @brief define material of the bulk</span>
<span class="c1">#</span>
......@@ -136,7 +137,7 @@
<span class="sd"> &#39;mat&#39; is either a string or a of the class &#39;material&#39;</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># si aucun modele n&#39;est associe a l&#39;element</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">==</span> <span class="bp">None</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">==</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># on lance une excpetion</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Cannot add material to the bulk&quot;</span><span class="p">)</span>
......@@ -276,13 +277,13 @@
<li class="right" >
<a href="../../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" >Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
&#169; Copyright 2017, CNRS, UM.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.2.
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pylmgc90.pre.avatar.bulks &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>pylmgc90.pre.avatar.bulks &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel="stylesheet" href="../../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
......@@ -14,17 +14,18 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../../',
VERSION: '2015.2',
VERSION: '2017.rc1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</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>
<link rel="top" title="pylmgc90.pre 2015.2 documentation" href="../../../../index.html" />
<link rel="up" title="Module code" href="../../../index.html" />
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
......@@ -36,8 +37,8 @@
<li class="right" >
<a href="../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" accesskey="U">Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
......@@ -47,10 +48,10 @@
<div class="body" role="main">
<h1>Source code for pylmgc90.pre.avatar.bulks</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.container</span> <span class="kn">import</span> <span class="o">*</span>
<span></span><span class="kn">from</span> <span class="nn">pylmgc90.pre.utilities.container</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">bulk.bulk</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">groups</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">bulk.bulk</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">groups</span> <span class="k">import</span> <span class="o">*</span>
<span class="c1">## @class bulks(sequence_container)</span>
<span class="c1"># bulk iterator</span>
......@@ -106,13 +107,13 @@
<li class="right" >
<a href="../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" >Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
&#169; Copyright 2017, CNRS, UM.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.2.
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pylmgc90.pre.avatar.contactor.contactor &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>pylmgc90.pre.avatar.contactor.contactor &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel="stylesheet" href="../../../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../../../_static/pygments.css" type="text/css" />
......@@ -14,17 +14,18 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../../../',
VERSION: '2015.2',
VERSION: '2017.rc1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</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>
<link rel="top" title="pylmgc90.pre 2015.2 documentation" href="../../../../../index.html" />
<link rel="up" title="Module code" href="../../../../index.html" />
<link rel="index" title="Index" href="../../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../../search.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
......@@ -36,8 +37,8 @@
<li class="right" >
<a href="../../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" accesskey="U">Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
......@@ -50,10 +51,10 @@
<span></span><span class="kn">import</span> <span class="nn">numpy</span>
<span class="kn">import</span> <span class="nn">copy</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.config.lmgc90dicts</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.config.lmgc90dicts</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.avatar.bulks</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.avatar.bulk.bulk</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.avatar.bulks</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">pylmgc90.pre.avatar.bulk.bulk</span> <span class="k">import</span> <span class="o">*</span>
<span class="c1">## @class contactor</span>
<span class="c1">#</span>
......@@ -77,7 +78,7 @@
<span class="c1">## @brief default constructor</span>
<span class="c1">#</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">elements</span><span class="p">,</span> <span class="n">shape</span><span class="p">,</span> <span class="n">color</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">elements</span><span class="p">,</span> <span class="n">shape</span><span class="p">,</span> <span class="n">color</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;__init__(self, elements, shape, color, number=None)</span>
<span class="sd"> allow to define a contactor</span>
......@@ -114,7 +115,7 @@
<span class="n">element_type</span><span class="o">=</span><span class="n">first_element</span><span class="o">.</span><span class="n">etype</span>
<span class="c1"># pour chaque autre element de la liste</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">xrange</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">elements</span><span class="p">)):</span>
<span class="k">for</span> <span class="n">i</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="nb">len</span><span class="p">(</span><span class="n">elements</span><span class="p">)):</span>
<span class="n">ele</span> <span class="o">=</span> <span class="n">elements</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="c1"># si ce n&#39;est pas un element</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">ele</span><span class="p">,</span> <span class="n">bulk</span><span class="p">):</span>
......@@ -133,7 +134,7 @@
<span class="k">if</span> <span class="ow">not</span> <span class="n">shape</span> <span class="ow">in</span> <span class="n">geo2contactor</span><span class="p">[</span><span class="n">element_type</span><span class="p">]:</span>
<span class="c1"># on construit un message d&#39;erreur</span>
<span class="n">msg</span><span class="o">=</span><span class="s1">&#39;Incompatible element (</span><span class="si">%s</span><span class="s1">) and contactor type (</span><span class="si">%s</span><span class="s1">)</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span><span class="p">(</span><span class="n">element_type</span><span class="p">,</span> <span class="n">shape</span><span class="p">)</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">!=</span> <span class="bp">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">!=</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">msg</span><span class="o">+=</span><span class="s1">&#39;for contactor :</span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="nb">str</span><span class="p">(</span><span class="n">number</span><span class="p">)</span>
<span class="c1"># on l&#39;affiche</span>
<span class="n">showError</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
......@@ -153,13 +154,13 @@
<span class="c1"># si tout est bon, on cree le contacteur</span>
<span class="c1"># si l&#39;utilisateur attribue un numero au contacteur</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">!=</span> <span class="bp">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">!=</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># on lui indique qu&#39;il ne sera pas utilise</span>
<span class="n">showWarning</span><span class="p">(</span><span class="s1">&#39;assigning an index to a contactor is useless&#39;</span><span class="p">)</span>
<span class="c1"># le numero du contacteur est inconnu pour l&#39;instant et sera defini lors de son</span>
<span class="c1"># ajout a un avatar</span>
<span class="bp">self</span><span class="o">.</span><span class="n">number</span> <span class="o">=</span> <span class="bp">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">number</span> <span class="o">=</span> <span class="kc">None</span>
<span class="c1"># on stocke la liste d&#39;elements sur laquelle repose le contacteur</span>
<span class="bp">self</span><span class="o">.</span><span class="n">elements</span> <span class="o">=</span> <span class="n">elements</span>
......@@ -255,13 +256,13 @@
<li class="right" >
<a href="../../../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2015.2 documentation</a> &raquo;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" >Module code</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="../../../../../index.html">pylmgc90.pre 2017.rc1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, CNRS.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
&#169; Copyright 2017, CNRS, UM.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.2.
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pylmgc90.pre.avatar.contactors &mdash; pylmgc90.pre 2015.2 documentation</title>
<title>pylmgc90.pre.avatar.contactors &#8212; pylmgc90.pre 2017.rc1 documentation</title>
<link rel=