Skip to content

Commit

Permalink
build based on aa1c3f2
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed May 21, 2024
1 parent e48f9f2 commit d4e72be
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 51 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-02T08:40:11","documenter_version":"1.2.1"}}
{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-21T06:42:01","documenter_version":"1.2.1"}}
35 changes: 10 additions & 25 deletions dev/examples/compact_tension.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
"source": [
"As we see, in addition to the sets created in Abaqus, the cellsets also include a set\n",
"for each abaqus element type (useful if you for example defined reduced integration\n",
"in only part of the domain and want to have this in Ferrite). Finally, facesets are\n",
"automatically created by default (can be turned off by `generate_facesets=false`\n",
"in only part of the domain and want to have this in Ferrite). Finally, facetsets are\n",
"automatically created by default (can be turned off by `generate_facetsets=false`\n",
"argument) based on the nodesets:"
],
"metadata": {}
Expand All @@ -130,46 +130,31 @@
{
"cell_type": "markdown",
"source": [
"Clearly, the faceset `\"CrackZone\"` doesn't make much sense, but unless the mesh is\n",
"very large it doesn't hurt. The facesets can be created manually from each nodeset\n",
"by using the `create_faceset` function:"
"Clearly, the facetset `\"CrackZone\"` doesn't make much sense, but unless the mesh is\n",
"very large it doesn't hurt. The facetsets can be created manually from each nodeset\n",
"by using the `create_facetset` function:"
],
"metadata": {}
},
{
"outputs": [],
"cell_type": "code",
"source": [
"faceset = create_faceset(grid, getnodeset(grid,\"Hole\"));"
"facetset = create_facetset(grid, getnodeset(grid,\"Hole\"));"
],
"metadata": {},
"execution_count": 5
},
{
"cell_type": "markdown",
"source": [
"This can if desired be merged into the grid by"
"This can, if desired, be merged into the grid by\n",
"```julia\n",
"addfaceset!(grid, \"HoleManual\", facetset)\n",
"```"
],
"metadata": {}
},
{
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[(\"CrackZone\", 2491), (\"Hole\", 38), (\"HoleManual\", 38), (\"Symmetry\", 53)]\n"
]
}
],
"cell_type": "code",
"source": [
"merge!(Ferrite.getfacesets(grid), Dict(\"HoleManual\" => faceset))\n",
"println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])"
],
"metadata": {},
"execution_count": 6
},
{
"cell_type": "markdown",
"source": [
Expand Down
5 changes: 1 addition & 4 deletions dev/examples/compact_tension.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ println([(key, length(set)) for (key, set) in Ferrite.getcellsets(grid)])

println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])

faceset = create_faceset(grid, getnodeset(grid,"Hole"));

merge!(Ferrite.getfacesets(grid), Dict("HoleManual" => faceset))
println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])
facetset = create_facetset(grid, getnodeset(grid,"Hole"));

# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl
10 changes: 3 additions & 7 deletions dev/examples/compact_tension/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
println(unique(typeof.(getcells(grid)))) # The different cell types in the grid</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">Ferrite.Grid{2, Union{Ferrite.Triangle, Ferrite.Quadrilateral}, Float64}
DataType[Ferrite.Triangle, Ferrite.Quadrilateral]</code></pre><p>Furthermore, the node and cell sets are imported</p><pre><code class="language-julia hljs">println([(key, length(set)) for (key, set) in Ferrite.getnodesets(grid)])
println([(key, length(set)) for (key, set) in Ferrite.getcellsets(grid)])</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">[(&quot;CrackZone&quot;, 649), (&quot;Hole&quot;, 38), (&quot;Symmetry&quot;, 54)]
[(&quot;CrackZone&quot;, 631), (&quot;Hole&quot;, 38), (&quot;CPS3&quot;, 47), (&quot;CPS4R&quot;, 999), (&quot;Symmetry&quot;, 53)]</code></pre><p>As we see, in addition to the sets created in Abaqus, the cellsets also include a set for each abaqus element type (useful if you for example defined reduced integration in only part of the domain and want to have this in Ferrite). Finally, facesets are automatically created by default (can be turned off by <code>generate_facesets=false</code> argument) based on the nodesets:</p><pre><code class="language-julia hljs">println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">[(&quot;CrackZone&quot;, 2491), (&quot;Hole&quot;, 38), (&quot;Symmetry&quot;, 53)]</code></pre><p>Clearly, the faceset <code>&quot;CrackZone&quot;</code> doesn&#39;t make much sense, but unless the mesh is very large it doesn&#39;t hurt. The facesets can be created manually from each nodeset by using the <code>create_faceset</code> function:</p><pre><code class="language-julia hljs">faceset = create_faceset(grid, getnodeset(grid,&quot;Hole&quot;));</code></pre><p>This can if desired be merged into the grid by</p><pre><code class="language-julia hljs">merge!(Ferrite.getfacesets(grid), Dict(&quot;HoleManual&quot; =&gt; faceset))
println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">[(&quot;CrackZone&quot;, 2491), (&quot;Hole&quot;, 38), (&quot;HoleManual&quot;, 38), (&quot;Symmetry&quot;, 53)]</code></pre><h2 id="compact-tension-plain-program"><a class="docs-heading-anchor" href="#compact-tension-plain-program">Plain Program</a><a id="compact-tension-plain-program-1"></a><a class="docs-heading-anchor-permalink" href="#compact-tension-plain-program" title="Permalink"></a></h2><p>Below follows a version of the program without any comments. The file is also available here: <a href="../compact_tension.jl">compact_tension.jl</a></p><pre><code class="language-julia hljs">using Ferrite, FerriteMeshParser
[(&quot;CrackZone&quot;, 631), (&quot;Hole&quot;, 38), (&quot;CPS3&quot;, 47), (&quot;CPS4R&quot;, 999), (&quot;Symmetry&quot;, 53)]</code></pre><p>As we see, in addition to the sets created in Abaqus, the cellsets also include a set for each abaqus element type (useful if you for example defined reduced integration in only part of the domain and want to have this in Ferrite). Finally, facetsets are automatically created by default (can be turned off by <code>generate_facetsets=false</code> argument) based on the nodesets:</p><pre><code class="language-julia hljs">println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">[(&quot;CrackZone&quot;, 2491), (&quot;Hole&quot;, 38), (&quot;Symmetry&quot;, 53)]</code></pre><p>Clearly, the facetset <code>&quot;CrackZone&quot;</code> doesn&#39;t make much sense, but unless the mesh is very large it doesn&#39;t hurt. The facetsets can be created manually from each nodeset by using the <code>create_facetset</code> function:</p><pre><code class="language-julia hljs">facetset = create_facetset(grid, getnodeset(grid,&quot;Hole&quot;));</code></pre><p>This can, if desired, be merged into the grid by</p><pre><code class="language-julia hljs">addfaceset!(grid, &quot;HoleManual&quot;, facetset)</code></pre><h2 id="compact-tension-plain-program"><a class="docs-heading-anchor" href="#compact-tension-plain-program">Plain Program</a><a id="compact-tension-plain-program-1"></a><a class="docs-heading-anchor-permalink" href="#compact-tension-plain-program" title="Permalink"></a></h2><p>Below follows a version of the program without any comments. The file is also available here: <a href="../compact_tension.jl">compact_tension.jl</a></p><pre><code class="language-julia hljs">using Ferrite, FerriteMeshParser

grid = get_ferrite_grid(&quot;compact_tension.inp&quot;)

Expand All @@ -18,9 +17,6 @@

println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])

faceset = create_faceset(grid, getnodeset(grid,&quot;Hole&quot;));
facetset = create_facetset(grid, getnodeset(grid,&quot;Hole&quot;));

merge!(Ferrite.getfacesets(grid), Dict(&quot;HoleManual&quot; =&gt; faceset))
println([(key, length(set)) for (key, set) in Ferrite.getfacesets(grid)])

# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Home</a><a class="docs-footer-nextpage" href="../user_element/">User element »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Thursday 2 May 2024 08:40">Thursday 2 May 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Home</a><a class="docs-footer-nextpage" href="../user_element/">User element »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Tuesday 21 May 2024 06:42">Tuesday 21 May 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/examples/user_element/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
println(typeof(grid))
println(unique(typeof.(getcells(grid)))) # The different cell types in the grid

# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../compact_tension/">« 2d mixed mesh import</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Thursday 2 May 2024 08:40">Thursday 2 May 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../compact_tension/">« 2d mixed mesh import</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Tuesday 21 May 2024 06:42">Tuesday 21 May 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit d4e72be

Please sign in to comment.