Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2d51038 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-engelstad committed Aug 29, 2024
1 parent ed812e5 commit 5ccac17
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 121 deletions.
12 changes: 6 additions & 6 deletions _modules/tacs/constraints/volume.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,19 @@ <h1>Source code for tacs.constraints.volume</h1><div class="highlight"><pre>
<span class="c1"># will be inconsistent</span>
<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">iComp</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">edgeToFace</span><span class="p">[</span><span class="n">edgeKey</span><span class="p">][:</span><span class="o">-</span><span class="mi">1</span><span class="p">]):</span>
<span class="k">for</span> <span class="n">jComp</span> <span class="ow">in</span> <span class="n">edgeToFace</span><span class="p">[</span><span class="n">edgeKey</span><span class="p">][</span><span class="n">i</span> <span class="o">+</span> <span class="mi">1</span> <span class="p">:]:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">iComp</span><span class="p">][</span>
<span class="n">jComp</span>
<span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">jComp</span><span class="p">][</span><span class="n">iComp</span><span class="p">]</span> <span class="o">=</span> <span class="kc">False</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">iComp</span><span class="p">][</span><span class="n">jComp</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">jComp</span><span class="p">][</span><span class="n">iComp</span><span class="p">]</span>
<span class="p">)</span> <span class="o">=</span> <span class="kc">False</span>
<span class="c1"># If this component shares an edge with another component</span>
<span class="c1"># but the edge ordering is reversed, the normal orientations</span>
<span class="c1"># will be consistent</span>
<span class="n">flippedEdgeKey</span> <span class="o">=</span> <span class="p">(</span><span class="n">edgeKey</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">edgeKey</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
<span class="k">if</span> <span class="n">flippedEdgeKey</span> <span class="ow">in</span> <span class="n">edgeToFace</span><span class="p">:</span>
<span class="k">for</span> <span class="n">iComp</span> <span class="ow">in</span> <span class="n">edgeToFace</span><span class="p">[</span><span class="n">edgeKey</span><span class="p">]:</span>
<span class="k">for</span> <span class="n">jComp</span> <span class="ow">in</span> <span class="n">edgeToFace</span><span class="p">[</span><span class="n">flippedEdgeKey</span><span class="p">]:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">iComp</span><span class="p">][</span>
<span class="n">jComp</span>
<span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">jComp</span><span class="p">][</span><span class="n">iComp</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">iComp</span><span class="p">][</span><span class="n">jComp</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span><span class="p">[</span><span class="n">jComp</span><span class="p">][</span><span class="n">iComp</span><span class="p">]</span>
<span class="p">)</span> <span class="o">=</span> <span class="kc">True</span>

<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adjacentOrientationMatch</span> <span class="o">=</span> <span class="kc">None</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/tacs/problems/buckling.html
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ <h1>Source code for tacs.problems.buckling</h1><div class="highlight"><pre>
<span class="n">states</span><span class="p">[:]</span> <span class="o">=</span> <span class="n">eigVector</span><span class="o">.</span><span class="n">getArray</span><span class="p">()</span>
<span class="k">return</span> <span class="n">eigVal</span><span class="p">,</span> <span class="n">eigVector</span><span class="o">.</span><span class="n">getArray</span><span class="p">()</span></div>


<div class="viewcode-block" id="BucklingProblem.getModalError">
<a class="viewcode-back" href="../../../pytacs/buckling.html#tacs.problems.BucklingProblem.getModalError">[docs]</a>
<span class="k">def</span> <span class="nf">getModalError</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span>
Expand Down
4 changes: 1 addition & 3 deletions _modules/tacs/pytacs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,7 @@ <h1>Source code for tacs.pytacs</h1><div class="highlight"><pre>
<span class="n">Yc</span> <span class="o">=</span> <span class="n">matInfo</span><span class="o">.</span><span class="n">Yc</span>
<span class="n">S12</span> <span class="o">=</span> <span class="n">matInfo</span><span class="o">.</span><span class="n">S</span>

<span class="k">if</span> <span class="p">(</span>
<span class="n">S12</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Xt</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Xc</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Yt</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Yc</span> <span class="o">==</span> <span class="mi">0</span>
<span class="p">):</span>
<span class="k">if</span> <span class="n">S12</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Xt</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Xc</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Yt</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">Yc</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_TACSWarning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;MAT8 card </span><span class="si">{</span><span class="n">matInfo</span><span class="o">.</span><span class="n">mid</span><span class="si">}</span><span class="s2"> has a zero strength, check Xc, Xt, Yc, Yt, and S12.&quot;</span>
<span class="s2">&quot;Otherwise Tsai-Wu Failure criterion is undefined or infinity.&quot;</span>
Expand Down
Loading

0 comments on commit 5ccac17

Please sign in to comment.