Skip to content

Commit

Permalink
deploy: fb038b3
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpsilva07 committed Oct 26, 2024
1 parent 303b820 commit d569eca
Show file tree
Hide file tree
Showing 31 changed files with 146 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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: 9d6d6064531b60e40691576712c30d26
config: 3bde6b5d49c18211cdb61f9a6defc594
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions _modules/composipy/core/material.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.core.material &#8212; composipy 1.5.0 documentation</title>
<title>composipy.core.material &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
38 changes: 32 additions & 6 deletions _modules/composipy/core/property.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.core.property &#8212; composipy 1.5.0 documentation</title>
<title>composipy.core.property &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down Expand Up @@ -508,7 +508,24 @@ <h1>Source code for composipy.core.property</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&#39;&#39;&#39;[A] Matrix as numpy.ndarray &#39;&#39;&#39;</span>

<span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_xiA</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span>

<span class="n">U1</span><span class="p">,</span> <span class="n">U2</span><span class="p">,</span> <span class="n">U3</span><span class="p">,</span> <span class="n">U4</span><span class="p">,</span> <span class="n">U5</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">plies</span><span class="o">.</span><span class="n">Invariants</span><span class="p">()</span>
<span class="n">xi1</span><span class="p">,</span> <span class="n">xi2</span><span class="p">,</span> <span class="n">xi3</span><span class="p">,</span> <span class="n">xi4</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_xiA</span>
<span class="n">T</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_total_thickness</span>
<span class="n">A11</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U1</span> <span class="o">+</span> <span class="n">U2</span><span class="o">*</span><span class="n">xi1</span> <span class="o">+</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi3</span><span class="p">)</span>
<span class="n">A12</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="o">-</span><span class="n">U3</span><span class="o">*</span><span class="n">xi3</span> <span class="o">+</span> <span class="n">U4</span><span class="p">)</span>
<span class="n">A13</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U2</span><span class="o">*</span><span class="n">xi2</span><span class="o">/</span><span class="mi">2</span> <span class="o">+</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi4</span><span class="p">)</span>
<span class="n">A21</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="o">-</span><span class="n">U3</span><span class="o">*</span><span class="n">xi3</span> <span class="o">+</span> <span class="n">U4</span><span class="p">)</span>
<span class="n">A22</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U1</span> <span class="o">-</span> <span class="n">U2</span><span class="o">*</span><span class="n">xi1</span> <span class="o">+</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi3</span><span class="p">)</span>
<span class="n">A23</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U2</span><span class="o">*</span><span class="n">xi2</span><span class="o">/</span><span class="mi">2</span> <span class="o">-</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi4</span><span class="p">)</span>
<span class="n">A31</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U2</span><span class="o">*</span><span class="n">xi2</span><span class="o">/</span><span class="mi">2</span> <span class="o">+</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi4</span><span class="p">)</span>
<span class="n">A32</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="n">U2</span><span class="o">*</span><span class="n">xi2</span><span class="o">/</span><span class="mi">2</span> <span class="o">-</span> <span class="n">U3</span><span class="o">*</span><span class="n">xi4</span><span class="p">)</span>
<span class="n">A33</span> <span class="o">=</span> <span class="n">T</span><span class="o">*</span><span class="p">(</span><span class="o">-</span><span class="n">U3</span><span class="o">*</span><span class="n">xi3</span> <span class="o">+</span> <span class="n">U5</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_A</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([[</span><span class="n">A11</span><span class="p">,</span> <span class="n">A12</span><span class="p">,</span> <span class="n">A13</span><span class="p">],</span>
<span class="p">[</span><span class="n">A21</span><span class="p">,</span> <span class="n">A22</span><span class="p">,</span> <span class="n">A23</span><span class="p">],</span>
<span class="p">[</span><span class="n">A31</span><span class="p">,</span> <span class="n">A32</span><span class="p">,</span> <span class="n">A33</span><span class="p">]])</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_A</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_A</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">(</span><span class="mi">9</span><span class="p">)</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span>

Expand All @@ -520,9 +537,18 @@ <h1>Source code for composipy.core.property</h1><div class="highlight"><pre>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">B</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&#39;&#39;&#39;[B] Matrix as numpy.ndarray &#39;&#39;&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_xiB</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span>
<span class="w"> </span><span class="sd">&#39;&#39;&#39;[B] Matrix as numpy.ndarray</span>

<span class="sd"> Note</span>
<span class="sd"> ----</span>
<span class="sd"> Matrix [B] will be zero if defined using lamination parameters. </span>
<span class="sd"> &#39;&#39;&#39;</span>
<span class="k">if</span> <span class="p">(</span><span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_xiA</span> <span class="ow">is</span> <span class="kc">None</span>
<span class="ow">and</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_xiD</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_A</span> <span class="o">=</span> <span class="n">np</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="mf">0.</span><span class="p">],</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="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="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_B</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_B</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">(</span><span class="mi">9</span><span class="p">)</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span>

Expand Down
4 changes: 2 additions & 2 deletions _modules/composipy/core/strength.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.core.strength &#8212; composipy 1.5.0 documentation</title>
<title>composipy.core.strength &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/composipy/core/structure.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.core.structure &#8212; composipy 1.5.0 documentation</title>
<title>composipy.core.structure &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/composipy/nastranapi/pcomp_generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.nastranapi.pcomp_generator &#8212; composipy 1.5.0 documentation</title>
<title>composipy.nastranapi.pcomp_generator &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/composipy/optimize/_maximize_buckling.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.optimize._maximize_buckling &#8212; composipy 1.5.0 documentation</title>
<title>composipy.optimize._maximize_buckling &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/composipy/optimize/_minimize_panel_weight.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>composipy.optimize._minimize_panel_weight &#8212; composipy 1.5.0 documentation</title>
<title>composipy.optimize._minimize_panel_weight &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; composipy 1.5.0 documentation</title>
<title>Overview: module code &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
18 changes: 18 additions & 0 deletions _sources/notebooks/Stress_strain_of_laminate.ipynb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@
"df_strain.head(6) #display the first 6"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Note\n",
"The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.\n",
"When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates."
]
},
{
"cell_type": "code",
"execution_count": 27,
Expand Down Expand Up @@ -404,6 +413,15 @@
"df_stress.head(6) #display the first 6"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Note\n",
"The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.\n",
"When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates."
]
},
{
"cell_type": "code",
"execution_count": 30,
Expand Down
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.5.0',
VERSION: '1.5.1',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &#8212; composipy 1.5.0 documentation</title>
<title>Index &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -120,7 +120,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contents &#8212; composipy 1.5.0 documentation</title>
<title>Contents &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -121,7 +121,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions notebooks/Critical_buckling_varying_BCs.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Critical Buckling Examples With Varying Boundary Conditions &#8212; composipy 1.5.0 documentation</title>
<title>Critical Buckling Examples With Varying Boundary Conditions &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -125,7 +125,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down
10 changes: 5 additions & 5 deletions notebooks/Critical_buckling_verification_study.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Critical Buckling Verification Study &#8212; composipy 1.5.0 documentation</title>
<title>Critical Buckling Verification Study &#8212; composipy 1.5.1 documentation</title>



Expand Down Expand Up @@ -125,7 +125,7 @@



<p class="title logo__title">composipy 1.5.0 documentation</p>
<p class="title logo__title">composipy 1.5.1 documentation</p>

</a></div>

Expand Down Expand Up @@ -365,7 +365,7 @@ <h1>Critical Buckling Verification Study<a class="headerlink" href="#Critical-Bu
<div class="section" id="Simply-Supported-study-case-(SSSS)">
<h2>Simply Supported study case (SSSS)<a class="headerlink" href="#Simply-Supported-study-case-(SSSS)" title="Permalink to this heading">#</a></h2>
<p>This study case aims to verify the Rayleigh-Ritz implementation made with Composipy (Silva, R.P. 2023). Mathematical verification of the Rayleigh-Ritz implementation is made against analytical buckling equation and FEM model. The benchmarking example is a simply supported plate with biaxial load, which considers a quasi-isotropic layup [(45/-45)2/02/902]s and properties according Table below. This example came from Kassapoglou (2010).</p>
<p><img alt="09297766e2034b02b275656b2b9ddd06" class="no-scaled-link" src="../_images/mechanical_prop_verification_problem.png" style="width: 400px; height: 200px;" /></p>
<p><img alt="b0cb615c85ac4f3586885105ea02054e" class="no-scaled-link" src="../_images/mechanical_prop_verification_problem.png" style="width: 400px; height: 200px;" /></p>
<p>Dimension of the square plate is 100 mm and the load ratio (𝑁𝑦/𝑁𝑥) is 0.5. Analytical solution for this problem using Equation below is 234.7 N/mm.</p>
<div class="math notranslate nohighlight">
\[\lambda = \pi^2\frac{[D_{11}m^4 +2(D_{12}+2D_{66})m^2n^2(a/b)^2 + D_{22}n^4(a/b)^4 ]}{a^2 (m^2 + (N_{x}/N_{y}) n^2 (a/b)^2)}\]</div>
Expand Down Expand Up @@ -429,7 +429,7 @@ <h2>Simply Supported study case (SSSS)<a class="headerlink" href="#Simply-Suppor
<div class="section" id="Different-boundary-conditions">
<h2>Different boundary conditions<a class="headerlink" href="#Different-boundary-conditions" title="Permalink to this heading">#</a></h2>
<p>Table below extends the study for different boundary conditions in order to verify polynomial functions presented in section 2.1.3. The results are verified against a NASTRAN FEM model and the maximum difference is 0.7%. Table 6 presents the first buckling mode deformation shape.</p>
<p><img alt="0c2d5103510a4bafbd373959da303470" class="no-scaled-link" src="../_images/first_eigenvalue_BC.png" style="height: 150px;" /></p>
<p><img alt="26214181791d464fafc261b8bcedd1a5" class="no-scaled-link" src="../_images/first_eigenvalue_BC.png" style="height: 150px;" /></p>
<div class="section" id="Clamped-study-case-(CCCC)">
<h3>Clamped study case (CCCC)<a class="headerlink" href="#Clamped-study-case-(CCCC)" title="Permalink to this heading">#</a></h3>
<div class="nbinput docutils container">
Expand Down Expand Up @@ -501,7 +501,7 @@ <h3>Simply supported with one free edge study case (SSSC)<a class="headerlink" h
</div>
<div class="section" id="Comparison-with-NASTRAN-deformed-shape">
<h3>Comparison with NASTRAN deformed shape<a class="headerlink" href="#Comparison-with-NASTRAN-deformed-shape" title="Permalink to this heading">#</a></h3>
<p><img alt="a7ca028ec5074e63ada316d7de2b81dd" class="no-scaled-link" src="../_images/Nastran_deformed.png" style="width: 600px;" /></p>
<p><img alt="c6e7fb3d813a46a2b4c462a5b6863be5" class="no-scaled-link" src="../_images/Nastran_deformed.png" style="width: 600px;" /></p>
</div>
</div>
<div class="section" id="References">
Expand Down
Loading

0 comments on commit d569eca

Please sign in to comment.