material.html 17.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
<!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" />
    
    <title>Material definition &mdash; pylmgc90.pre 2013 documentation</title>
    
    <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:    './',
        VERSION:     '2013',
        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>
    <link rel="top" title="pylmgc90.pre 2013 documentation" href="index.html" />
    <link rel="next" title="Model definition" href="model.html" />
    <link rel="prev" title="Philosophy" href="philosophie.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="model.html" title="Model definition"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="philosophie.html" title="Philosophy"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">pylmgc90.pre 2013 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="material-definition">
<h1>Material definition<a class="headerlink" href="#material-definition" title="Permalink to this headline"></a></h1>
<p>A material is defined using <a class="reference internal" href="classes.html#pylmgc90.pre_lmgc.material" title="pylmgc90.pre_lmgc.material"><tt class="xref py py-class docutils literal"><span class="pre">material</span></tt></a>. It consists in a
name ( 5 characters), a type and a list of parameters which depends on
the type.</p>
<div class="section" id="rigid-type">
<h2>RIGID type:<a class="headerlink" href="#rigid-type" title="Permalink to this headline"></a></h2>
<p>only density is necessary</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">tdur</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;TDURx&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;RIGID&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">1000.</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="elas-type">
<h2>ELAS type:<a class="headerlink" href="#elas-type" title="Permalink to this headline"></a></h2>
<p>elastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">ma1</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;ELAS&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">0.25e+4</span><span class="p">,</span>
               <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">0.1e+15</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.2</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="elas-dila-type">
<h2>ELAS_DILA type:<a class="headerlink" href="#elas-dila-type" title="Permalink to this headline"></a></h2>
<p>elastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">ma1</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;ELAS_DILA&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">0.25e+4</span><span class="p">,</span>
               <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">0.1e+15</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.2</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">,</span>
               <span class="n">dilatation</span><span class="o">=</span><span class="mf">1e-5</span><span class="p">,</span> <span class="n">T_ref_meca</span><span class="o">=</span><span class="mf">20.</span> <span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="visco-elas-type">
<h2>VISCO_ELAS type:<a class="headerlink" href="#visco-elas-type" title="Permalink to this headline"></a></h2>
<p>visco elastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">steel</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;VISCO_PLAS&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">8.93e3</span><span class="p">,</span>
                 <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">1.17e11</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.35</span><span class="p">,</span>
                 <span class="n">viscous_model</span><span class="o">=</span><span class="s">&#39;KelvinVoigt&#39;</span><span class="p">,</span> <span class="n">viscous_young</span><span class="o">=</span><span class="mf">1.17e9</span><span class="p">,</span> <span class="n">viscous_nu</span><span class="o">=</span><span class="mf">0.35</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="elas-plas-type">
<h2>ELAS_PLAS type:<a class="headerlink" href="#elas-plas-type" title="Permalink to this headline"></a></h2>
<p>visco elasto plastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">steel</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;ELAS_PLAS&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">8.93e3</span><span class="p">,</span>
                 <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">1.17e11</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.35</span><span class="p">,</span>
                 <span class="n">critere</span><span class="o">=</span><span class="s">&#39;Von-Mises&#39;</span><span class="p">,</span> <span class="n">isoh</span><span class="o">=</span><span class="s">&#39;linear&#39;</span><span class="p">,</span> <span class="n">iso_hard</span><span class="o">=</span><span class="mf">4.e8</span><span class="p">,</span> <span class="n">isoh_coeff</span><span class="o">=</span><span class="mf">1e8</span><span class="p">,</span> <span class="n">cinh</span><span class="o">=</span><span class="s">&#39;none&#39;</span><span class="p">,</span> <span class="n">visc</span><span class="o">=</span><span class="s">&#39;none&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="thermo-elas-type">
<h2>THERMO_ELAS type:<a class="headerlink" href="#thermo-elas-type" title="Permalink to this headline"></a></h2>
<p>thermo elastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">mat</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;Steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;THERMO_ELAS&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">1.0</span><span class="p">,</span>
               <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">,</span> <span class="n">dilatation</span> <span class="o">=</span> <span class="mf">0.0</span><span class="p">,</span>
               <span class="n">T_ref_meca</span> <span class="o">=</span> <span class="mf">0.0</span><span class="p">,</span> <span class="n">conductivity</span><span class="o">=</span><span class="s">&#39;field&#39;</span><span class="p">,</span> <span class="n">specific_capacity</span><span class="o">=</span><span class="s">&#39;field&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="poro-elas-type">
<h2>PORO_ELAS type:<a class="headerlink" href="#poro-elas-type" title="Permalink to this headline"></a></h2>
<p>poro elastic material</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">mat</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;Steel&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;PORO_ELAS&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">1.0</span><span class="p">,</span>
               <span class="n">elas</span><span class="o">=</span><span class="s">&#39;standard&#39;</span><span class="p">,</span> <span class="n">young</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">nu</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">anisotropy</span><span class="o">=</span><span class="s">&#39;isotropic&#39;</span><span class="p">,</span>
               <span class="n">hydro_cpl</span> <span class="o">=</span> <span class="mf">0.0</span><span class="p">,</span> <span class="n">conductivity</span><span class="o">=</span><span class="s">&#39;field&#39;</span><span class="p">,</span> <span class="n">specific_capacity</span><span class="o">=</span><span class="s">&#39;field&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="discrete-type">
<h2>DISCRETE type:<a class="headerlink" href="#discrete-type" title="Permalink to this headline"></a></h2>
<p>give explicitely the matrices of a 1D element</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">mat</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="n">mat_name</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;DISCRETE&#39;</span><span class="p">,</span> <span class="n">masses</span><span class="o">=</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="mf">0.</span><span class="p">],</span>
               <span class="n">stiffnesses</span><span class="o">=</span><span class="p">[</span><span class="n">kx</span><span class="p">,</span> <span class="n">ky</span><span class="p">,</span> <span class="n">kz</span><span class="p">],</span> <span class="n">viscosities</span><span class="o">=</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="mf">0.</span><span class="p">])</span>
</pre></div>
</div>
</div>
<div class="section" id="user-mat-type">
<h2>USER_MAT type:<a class="headerlink" href="#user-mat-type" title="Permalink to this headline"></a></h2>
<p>It is possible to give a MatLib material file</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">acier</span> <span class="o">=</span> <span class="n">material</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&#39;acier&#39;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">&#39;USER_MAT&#39;</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="mf">0.</span><span class="p">,</span> <span class="n">file_mat</span><span class="o">=</span><span class="s">&#39;elas.mat&#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="#">Material definition</a><ul>
<li><a class="reference internal" href="#rigid-type">RIGID type:</a></li>
<li><a class="reference internal" href="#elas-type">ELAS type:</a></li>
<li><a class="reference internal" href="#elas-dila-type">ELAS_DILA type:</a></li>
<li><a class="reference internal" href="#visco-elas-type">VISCO_ELAS type:</a></li>
<li><a class="reference internal" href="#elas-plas-type">ELAS_PLAS type:</a></li>
<li><a class="reference internal" href="#thermo-elas-type">THERMO_ELAS type:</a></li>
<li><a class="reference internal" href="#poro-elas-type">PORO_ELAS type:</a></li>
<li><a class="reference internal" href="#discrete-type">DISCRETE type:</a></li>
<li><a class="reference internal" href="#user-mat-type">USER_MAT type:</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="philosophie.html"
                        title="previous chapter">Philosophy</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="model.html"
                        title="next chapter">Model definition</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/material.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="model.html" title="Model definition"
             >next</a> |</li>
        <li class="right" >
          <a href="philosophie.html" title="Philosophy"
             >previous</a> |</li>
        <li><a href="index.html">pylmgc90.pre 2013 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2013, CNRS.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>