This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
33,826 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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: bcca5536fe390af833a0adc9dd39b00a | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
|
||
<!DOCTYPE html> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Overview: module code — pycalculix 1.1.4 documentation</title> | ||
<link rel="stylesheet" href="../_static/alabaster.css" type="text/css" /> | ||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> | ||
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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> | ||
<script type="text/javascript" src="../_static/language_data.js"></script> | ||
<link rel="index" title="Index" href="../genindex.html" /> | ||
<link rel="search" title="Search" href="../search.html" /> | ||
|
||
<link rel="stylesheet" href="../_static/custom.css" type="text/css" /> | ||
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> | ||
|
||
</head><body> | ||
|
||
|
||
<div class="document"> | ||
<div class="documentwrapper"> | ||
<div class="bodywrapper"> | ||
|
||
|
||
<div class="body" role="main"> | ||
|
||
<h1>All modules for which code is available</h1> | ||
<ul><li><a href="pycalculix/base_classes.html">pycalculix.base_classes</a></li> | ||
<li><a href="pycalculix/cadimporter.html">pycalculix.cadimporter</a></li> | ||
<li><a href="pycalculix/components.html">pycalculix.components</a></li> | ||
<li><a href="pycalculix/connectors.html">pycalculix.connectors</a></li> | ||
<li><a href="pycalculix/environment.html">pycalculix.environment</a></li> | ||
<li><a href="pycalculix/feamodel.html">pycalculix.feamodel</a></li> | ||
<li><a href="pycalculix/geometry.html">pycalculix.geometry</a></li> | ||
<li><a href="pycalculix/installer.html">pycalculix.installer</a></li> | ||
<li><a href="pycalculix/loads.html">pycalculix.loads</a></li> | ||
<li><a href="pycalculix/material.html">pycalculix.material</a></li> | ||
<li><a href="pycalculix/mesh.html">pycalculix.mesh</a></li> | ||
<li><a href="pycalculix/partmodule.html">pycalculix.partmodule</a></li> | ||
<li><a href="pycalculix/problem.html">pycalculix.problem</a></li> | ||
<li><a href="pycalculix/results_file.html">pycalculix.results_file</a></li> | ||
<li><a href="pycalculix/selector.html">pycalculix.selector</a></li> | ||
</ul> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation"> | ||
<div class="sphinxsidebarwrapper"> | ||
<h1 class="logo"><a href="../index.html">pycalculix</a></h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h3>Navigation</h3> | ||
<p class="caption"><span class="caption-text">Contents:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../pycalculix.html">pycalculix package</a></li> | ||
</ul> | ||
|
||
<div class="relations"> | ||
<h3>Related Topics</h3> | ||
<ul> | ||
<li><a href="../index.html">Documentation overview</a><ul> | ||
</ul></li> | ||
</ul> | ||
</div> | ||
<div id="searchbox" style="display: none" role="search"> | ||
<h3 id="searchlabel">Quick search</h3> | ||
<div class="searchformwrapper"> | ||
<form class="search" action="../search.html" method="get"> | ||
<input type="text" name="q" aria-labelledby="searchlabel" /> | ||
<input type="submit" value="Go" /> | ||
</form> | ||
</div> | ||
</div> | ||
<script type="text/javascript">$('#searchbox').show(0);</script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="clearer"></div> | ||
</div> | ||
<div class="footer"> | ||
©2019, Justin Black. | ||
|
||
| | ||
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.1</a> | ||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
306 changes: 306 additions & 0 deletions
306
dist/documentation/_modules/pycalculix/base_classes.html
Large diffs are not rendered by default.
Oops, something went wrong.
436 changes: 436 additions & 0 deletions
436
dist/documentation/_modules/pycalculix/cadimporter.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
|
||
<!DOCTYPE html> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>pycalculix.connectors — pycalculix 1.1.4 documentation</title> | ||
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" /> | ||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> | ||
<script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></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> | ||
<script type="text/javascript" src="../../_static/language_data.js"></script> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../search.html" /> | ||
|
||
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" /> | ||
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> | ||
|
||
</head><body> | ||
|
||
|
||
<div class="document"> | ||
<div class="documentwrapper"> | ||
<div class="bodywrapper"> | ||
|
||
|
||
<div class="body" role="main"> | ||
|
||
<h1>Source code for pycalculix.connectors</h1><div class="highlight"><pre> | ||
<span></span><span class="sd">"""This module stores connector classes, like Contact.</span> | ||
<span class="sd">"""</span> | ||
<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">base_classes</span> | ||
|
||
<div class="viewcode-block" id="SurfaceInteraction"><a class="viewcode-back" href="../../pycalculix.html#pycalculix.connectors.SurfaceInteraction">[docs]</a><span class="k">class</span> <span class="nc">SurfaceInteraction</span><span class="p">(</span><span class="n">base_classes</span><span class="o">.</span><span class="n">Idobj</span><span class="p">):</span> | ||
<span class="sd">"""Makes a surface interaction object.</span> | ||
|
||
<span class="sd"> Args:</span> | ||
<span class="sd"> int_type (str): interaction type</span> | ||
|
||
<span class="sd"> * 'EXPONENTIAL'</span> | ||
<span class="sd"> * 'LINEAR'</span> | ||
|
||
<span class="sd"> *args: following arguments</span> | ||
|
||
<span class="sd"> * int_type = 'EXPONENTIAL'</span> | ||
<span class="sd"> * c0, then p0 must be passed</span> | ||
|
||
<span class="sd"> * int_type = 'LINEAR'</span> | ||
<span class="sd"> * k must be passed</span> | ||
|
||
<span class="sd"> """</span> | ||
|
||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">int_type</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">int_type</span> <span class="o">=</span> <span class="n">int_type</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">c0</span> <span class="o">=</span> <span class="kc">None</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">p0</span> <span class="o">=</span> <span class="kc">None</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">k</span> <span class="o">=</span> <span class="kc">None</span> | ||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_type</span> <span class="o">==</span> <span class="s1">'EXPONENTIAL'</span><span class="p">:</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">c0</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">p0</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> | ||
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_type</span> <span class="o">==</span> <span class="s1">'LINEAR'</span><span class="p">:</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">k</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> | ||
<span class="n">base_classes</span><span class="o">.</span><span class="n">Idobj</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> | ||
|
||
<span class="nd">@property</span> | ||
<span class="k">def</span> <span class="nf">name</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> | ||
<span class="sd">"""SurfaceInteraction name."""</span> | ||
<span class="k">return</span> <span class="s1">'SI</span><span class="si">%i</span><span class="s1">'</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">id</span> | ||
|
||
<div class="viewcode-block" id="SurfaceInteraction.ccx"><a class="viewcode-back" href="../../pycalculix.html#pycalculix.connectors.SurfaceInteraction.ccx">[docs]</a> <span class="k">def</span> <span class="nf">ccx</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> | ||
<span class="sd">"""Writes the surface interaction for the ccx solver."""</span> | ||
<span class="n">res</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"*SURFACE INTERACTION,NAME=</span><span class="si">%s</span><span class="s2">"</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">]</span> | ||
<span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s2">"*SURFACE BEHAVIOR,PRESSURE-OVERCLOSURE=</span><span class="si">%s</span><span class="s2">"</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_type</span><span class="p">)</span> | ||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_type</span> <span class="o">==</span> <span class="s1">'EXPONENTIAL'</span><span class="p">:</span> | ||
<span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s2">"</span><span class="si">%f</span><span class="s2">,</span><span class="si">%f</span><span class="s2">"</span> <span class="o">%</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">c0</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">p0</span><span class="p">))</span> | ||
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_type</span> <span class="o">==</span> <span class="s1">'LINEAR'</span><span class="p">:</span> | ||
<span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s2">"</span><span class="si">%e</span><span class="s2">"</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">k</span><span class="p">)</span> | ||
<span class="c1">#res.append("%e,1." % self.k)</span> | ||
<span class="k">return</span> <span class="n">res</span></div></div> | ||
|
||
<div class="viewcode-block" id="Contact"><a class="viewcode-back" href="../../pycalculix.html#pycalculix.connectors.Contact">[docs]</a><span class="k">class</span> <span class="nc">Contact</span><span class="p">(</span><span class="n">base_classes</span><span class="o">.</span><span class="n">Idobj</span><span class="p">):</span> | ||
<span class="sd">"""Makes a contact which will be between lines which have faces on them.</span> | ||
|
||
<span class="sd"> Args:</span> | ||
<span class="sd"> master_comp (Component): component of master element faces</span> | ||
<span class="sd"> slave_comp (Component): component of slave element faces</span> | ||
<span class="sd"> surf_int (SurfaceInteraction): object which stores closure behavior</span> | ||
<span class="sd"> surf_to_surf (bool): if True surface to surface is used, if False node</span> | ||
<span class="sd"> to surface is used</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">master_comp</span><span class="p">,</span> <span class="n">slave_comp</span><span class="p">,</span> <span class="n">surf_int</span><span class="p">,</span> <span class="n">surf_to_surf</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">master_comp</span> <span class="o">=</span> <span class="n">master_comp</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">slave_comp</span> <span class="o">=</span> <span class="n">slave_comp</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">surf_int</span> <span class="o">=</span> <span class="n">surf_int</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">surf_to_surf</span> <span class="o">=</span> <span class="n">surf_to_surf</span> | ||
<span class="n">base_classes</span><span class="o">.</span><span class="n">Idobj</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> | ||
|
||
<span class="nd">@property</span> | ||
<span class="k">def</span> <span class="nf">name</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> | ||
<span class="sd">"""Contact name."""</span> | ||
<span class="k">return</span> <span class="s1">'CONT</span><span class="si">%i</span><span class="s1">'</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">id</span> | ||
|
||
<div class="viewcode-block" id="Contact.ccx"><a class="viewcode-back" href="../../pycalculix.html#pycalculix.connectors.Contact.ccx">[docs]</a> <span class="k">def</span> <span class="nf">ccx</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> | ||
<span class="sd">"""Writes the contact pair for the ccx solver."""</span> | ||
<span class="n">res</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="n">end</span> <span class="o">=</span> <span class="s1">''</span> | ||
<span class="n">int_name</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">surf_int</span><span class="o">.</span><span class="n">name</span> | ||
<span class="n">m_name</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">master_comp</span><span class="o">.</span><span class="n">name</span> | ||
<span class="n">s_name</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">slave_comp</span><span class="o">.</span><span class="n">name</span> | ||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">surf_to_surf</span><span class="p">:</span> | ||
<span class="n">end</span> <span class="o">=</span> <span class="s1">',TYPE=SURFACE TO SURFACE'</span> | ||
<span class="n">line</span> <span class="o">=</span> <span class="s2">"*CONTACT PAIR,INTERACTION=</span><span class="si">%s%s</span><span class="s2">"</span> <span class="o">%</span> <span class="p">(</span><span class="n">int_name</span><span class="p">,</span> <span class="n">end</span><span class="p">)</span> | ||
<span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">)</span> | ||
<span class="n">line</span> <span class="o">=</span> <span class="s2">"</span><span class="si">%s</span><span class="s2">,</span><span class="si">%s</span><span class="s2">"</span> <span class="o">%</span> <span class="p">(</span><span class="n">s_name</span><span class="p">,</span> <span class="n">m_name</span><span class="p">)</span> | ||
<span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">)</span> | ||
<span class="k">return</span> <span class="n">res</span></div></div> | ||
</pre></div> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation"> | ||
<div class="sphinxsidebarwrapper"> | ||
<h1 class="logo"><a href="../../index.html">pycalculix</a></h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h3>Navigation</h3> | ||
<p class="caption"><span class="caption-text">Contents:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../pycalculix.html">pycalculix package</a></li> | ||
</ul> | ||
|
||
<div class="relations"> | ||
<h3>Related Topics</h3> | ||
<ul> | ||
<li><a href="../../index.html">Documentation overview</a><ul> | ||
<li><a href="../index.html">Module code</a><ul> | ||
</ul></li> | ||
</ul></li> | ||
</ul> | ||
</div> | ||
<div id="searchbox" style="display: none" role="search"> | ||
<h3 id="searchlabel">Quick search</h3> | ||
<div class="searchformwrapper"> | ||
<form class="search" action="../../search.html" method="get"> | ||
<input type="text" name="q" aria-labelledby="searchlabel" /> | ||
<input type="submit" value="Go" /> | ||
</form> | ||
</div> | ||
</div> | ||
<script type="text/javascript">$('#searchbox').show(0);</script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="clearer"></div> | ||
</div> | ||
<div class="footer"> | ||
©2019, Justin Black. | ||
|
||
| | ||
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.1</a> | ||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
Oops, something went wrong.