Skip to content

Commit

Permalink
deploy: 983145f
Browse files Browse the repository at this point in the history
  • Loading branch information
ralberd committed Nov 6, 2024
1 parent e10a968 commit 8f34b34
Show file tree
Hide file tree
Showing 132 changed files with 1,139 additions and 1,491 deletions.
4 changes: 2 additions & 2 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: bd59fd941387a83e9ca6b1b57e0d3ce7
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f13c020c2ae2af9bc5aaffac8229bba5
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 3 additions & 1 deletion _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=01f34227"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../_static/copybutton.js?v=f281be69"></script>
Expand Down Expand Up @@ -130,13 +130,15 @@ <h1>All modules for which code is available</h1>
<li><a href="optimism/material/J2Plastic.html">optimism.material.J2Plastic</a></li>
<li><a href="optimism/material/LinearElastic.html">optimism.material.LinearElastic</a></li>
<li><a href="optimism/material/MaterialUniaxialSimulator.html">optimism.material.MaterialUniaxialSimulator</a></li>
<li><a href="optimism/material/MultiBranchHyperViscoelastic.html">optimism.material.MultiBranchHyperViscoelastic</a></li>
<li><a href="optimism/material/Neohookean.html">optimism.material.Neohookean</a></li>
<li><a href="optimism/material/test/test_Gent.html">optimism.material.test.test_Gent</a></li>
<li><a href="optimism/material/test/test_Hardening.html">optimism.material.test.test_Hardening</a></li>
<li><a href="optimism/material/test/test_HyperVisco.html">optimism.material.test.test_HyperVisco</a></li>
<li><a href="optimism/material/test/test_J2Plastic.html">optimism.material.test.test_J2Plastic</a></li>
<li><a href="optimism/material/test/test_LinearElastic.html">optimism.material.test.test_LinearElastic</a></li>
<li><a href="optimism/material/test/test_MaterialUniaxialSimulator.html">optimism.material.test.test_MaterialUniaxialSimulator</a></li>
<li><a href="optimism/material/test/test_MultiBranchHyperVisco.html">optimism.material.test.test_MultiBranchHyperVisco</a></li>
<li><a href="optimism/material/test/test_RateSensitivity.html">optimism.material.test.test_RateSensitivity</a></li>
<li><a href="optimism/phasefield/MaterialPointSimulator.html">optimism.phasefield.MaterialPointSimulator</a></li>
<li><a href="optimism/phasefield/PhaseField.html">optimism.phasefield.PhaseField</a></li>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/AlSolver.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/BoundConstrainedObjective.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/BoundConstrainedSolver.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/ConstrainedObjective.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/EquationSolver.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/EquationSolverSubspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/FunctionSpace.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/Interpolants.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/J2PlasticPhaseField.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/JaxConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/LU.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/LinAlg.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/Math.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
75 changes: 24 additions & 51 deletions _modules/optimism/Mechanics.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down Expand Up @@ -82,57 +82,30 @@ <h1>Source code for optimism.Mechanics</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">optimism.TensorMath</span> <span class="kn">import</span> <span class="n">tensor_2D_to_3D</span>
<span class="kn">from</span> <span class="nn">optimism</span> <span class="kn">import</span> <span class="n">QuadratureRule</span>
<span class="kn">from</span> <span class="nn">optimism</span> <span class="kn">import</span> <span class="n">Interpolants</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Callable</span>

<span class="kn">import</span> <span class="nn">equinox</span> <span class="k">as</span> <span class="nn">eqx</span>


<span class="c1"># TODO</span>
<span class="c1"># eventually let&#39;s move to some kind of class hierarchy like below</span>
<span class="c1"># that we can derive off of with shared behavior</span>
<span class="c1">#</span>
<span class="c1"># normal python inheritance rules apply to equinox Modules</span>
<span class="c1"># class BaseFunctions(eqx.Module):</span>
<span class="c1"># compute_output_energy_densities_and_stresses: Callable</span>
<span class="c1"># compute_initial_state: Callable</span>


<span class="c1"># TODO further type below so Callable refelcts the actual called argsuments and returns</span>
<div class="viewcode-block" id="MechanicsFunctions">
<a class="viewcode-back" href="../../optimism.html#optimism.Mechanics.MechanicsFunctions">[docs]</a>
<span class="k">class</span> <span class="nc">MechanicsFunctions</span><span class="p">(</span><span class="n">eqx</span><span class="o">.</span><span class="n">Module</span><span class="p">):</span>
<span class="n">compute_strain_energy</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_updated_internal_variables</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_element_stiffnesses</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_output_energy_densities_and_stresses</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_initial_state</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">integrated_material_qoi</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_output_material_qoi</span><span class="p">:</span> <span class="n">Callable</span></div>



<div class="viewcode-block" id="DynamicsFunctions">
<a class="viewcode-back" href="../../optimism.html#optimism.Mechanics.DynamicsFunctions">[docs]</a>
<span class="k">class</span> <span class="nc">DynamicsFunctions</span><span class="p">(</span><span class="n">eqx</span><span class="o">.</span><span class="n">Module</span><span class="p">):</span>
<span class="n">compute_algorithmic_energy</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_updated_internal_variables</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_element_hessians</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_output_energy_densities_and_stresses</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_output_kinetic_energy</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_output_strain_energy</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_initial_state</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">compute_element_masses</span><span class="p">:</span> <span class="n">Callable</span> <span class="c1"># not used for time integration, provided for convenience (spectral analysis, eg)</span>
<span class="n">predict</span><span class="p">:</span> <span class="n">Callable</span>
<span class="n">correct</span><span class="p">:</span> <span class="n">Callable</span></div>



<div class="viewcode-block" id="NewmarkParameters">
<a class="viewcode-back" href="../../optimism.html#optimism.Mechanics.NewmarkParameters">[docs]</a>
<span class="k">class</span> <span class="nc">NewmarkParameters</span><span class="p">(</span><span class="n">eqx</span><span class="o">.</span><span class="n">Module</span><span class="p">):</span>
<span class="n">gamma</span><span class="p">:</span> <span class="nb">float</span> <span class="o">=</span> <span class="mf">0.5</span>
<span class="n">beta</span><span class="p">:</span> <span class="nb">float</span> <span class="o">=</span> <span class="mf">0.25</span></div>

<span class="n">MechanicsFunctions</span> <span class="o">=</span> <span class="n">namedtuple</span><span class="p">(</span><span class="s1">&#39;MechanicsFunctions&#39;</span><span class="p">,</span>
<span class="p">[</span><span class="s1">&#39;compute_strain_energy&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_updated_internal_variables&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_element_stiffnesses&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_output_energy_densities_and_stresses&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_initial_state&#39;</span><span class="p">,</span>
<span class="s1">&#39;integrated_material_qoi&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_output_material_qoi&#39;</span><span class="p">])</span>


<span class="n">DynamicsFunctions</span> <span class="o">=</span> <span class="n">namedtuple</span><span class="p">(</span><span class="s1">&#39;DynamicsFunctions&#39;</span><span class="p">,</span>
<span class="p">[</span><span class="s1">&#39;compute_algorithmic_energy&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_updated_internal_variables&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_element_hessians&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_output_energy_densities_and_stresses&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_output_kinetic_energy&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_output_strain_energy&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_initial_state&#39;</span><span class="p">,</span>
<span class="s1">&#39;compute_element_masses&#39;</span><span class="p">,</span> <span class="c1"># not used for time integration, provided for convenience (spectral analysis, eg)</span>
<span class="s1">&#39;predict&#39;</span><span class="p">,</span>
<span class="s1">&#39;correct&#39;</span><span class="p">])</span>

<span class="n">NewmarkParameters</span> <span class="o">=</span> <span class="n">namedtuple</span><span class="p">(</span><span class="s1">&#39;NewmarkParameters&#39;</span><span class="p">,</span> <span class="p">[</span><span class="s1">&#39;gamma&#39;</span><span class="p">,</span> <span class="s1">&#39;beta&#39;</span><span class="p">],</span> <span class="n">defaults</span><span class="o">=</span><span class="p">[</span><span class="mf">0.5</span><span class="p">,</span> <span class="mf">0.25</span><span class="p">])</span>


<div class="viewcode-block" id="plane_strain_gradient_transformation">
Expand Down
2 changes: 1 addition & 1 deletion _modules/optimism/Mesh.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=01f34227"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
Expand Down
Loading

0 comments on commit 8f34b34

Please sign in to comment.