<a href="MeshHex8_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno"> 651</span> <span class="comment">// minimum height in y-direction (half of the height because of symmetry)</span></div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno"> 659</span> <span class="comment">// minimum number of fine layers in y-direction (minimum 1, middle layer part of this half)</span></div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno"> 675</span> <span class="comment">// loop over element layers in y-direction, try to coarsen using these rules:</span></div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno"> 676</span> <span class="comment">// (1) element size in y-direction <= distance to origin in y-direction</span></div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno"> 677</span> <span class="comment">// (2) element size in x-(z-)direction should fit the total number of elements in</span></div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno"> 678</span> <span class="comment">// x-(z-)direction (3) a certain number of layers have the minimum size "1" (are fine)</span></div>
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno"> 703</span> <span class="comment">// - update the number of elements in y-direction</span></div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno"> 705</span> <span class="comment">// - proceed to next element layer in y-direction</span></div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno"> 727</span> <span class="comment">// update the number of elements in y-direction</span></div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno"> 729</span> <span class="comment">// proceed to next element layer in y-direction</span></div>
<div class="line"><a id="l00770" name="l00770"></a><span class="lineno"> 770</span> <span class="comment">// compute the number of elements per element layer in y-direction</span></div>
<div class="line"><a id="l00776" name="l00776"></a><span class="lineno"> 776</span> <span class="comment">// compute the number of nodes per node layer in y-direction</span></div>
<div class="line"><a id="l00791" name="l00791"></a><span class="lineno"> 791</span> <span class="comment">// loop over element layers (bottom -> middle, elements become finer)</span></div>
<div class="line"><a id="l00793" name="l00793"></a><span class="lineno"> 793</span> <span class="comment">// - store the first element of the layer</span></div>
<div class="line"><a id="l00795" name="l00795"></a><span class="lineno"> 795</span> <span class="comment">// - add the nodes of this layer</span></div>
<div class="line"><a id="l00805" name="l00805"></a><span class="lineno"> 805</span> <span class="comment">// - add the elements of this layer</span></div>
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno"> 815</span> <span class="comment">// - store the starting node of the next layer</span></div>
<div class="line"><a id="l00819" name="l00819"></a><span class="lineno"> 819</span> <span class="comment">// loop over element layers (middle -> top, elements become coarser)</span></div>
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno"> 821</span> <span class="comment">// - store the first element of the layer</span></div>
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno"> 823</span> <span class="comment">// - add the nodes of this layer</span></div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno"> 833</span> <span class="comment">// - add the elements of this layer</span></div>
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno"> 843</span> <span class="comment">// - store the starting node of the next layer</span></div>
<div class="line"><a id="l00898" name="l00898"></a><span class="lineno"> 898</span> <span class="comment">// current node, number of element layers</span></div>
<div class="line"><a id="l00902" name="l00902"></a><span class="lineno"> 902</span> <span class="comment">// y-position of each main node layer (i.e. excluding node layers for refinement/coarsening)</span></div>
<div class="line"><a id="l00916" name="l00916"></a><span class="lineno"> 916</span> <span class="comment">// get positions along the x- and z-axis</span></div>
<div class="line"><a id="l00920" name="l00920"></a><span class="lineno"> 920</span> <span class="comment">// add nodes of the bottom layer of this element</span></div>
<div class="line"><a id="l00935" name="l00935"></a><span class="lineno"> 935</span> <span class="comment">// add extra nodes of the intermediate layer, for refinement in x-direction</span></div>
<div class="line"><a id="l00937" name="l00937"></a><span class="lineno"> 937</span> <span class="comment">// - get position offset in x- and y-direction</span></div>
<div class="line"><a id="l00953" name="l00953"></a><span class="lineno"> 953</span> <span class="comment">// add extra nodes of the intermediate layer, for refinement in z-direction</span></div>
<div class="line"><a id="l00955" name="l00955"></a><span class="lineno"> 955</span> <span class="comment">// - get position offset in y- and z-direction</span></div>
<div class="line"><a id="l00975" name="l00975"></a><span class="lineno"> 975</span> <span class="comment">// get positions along the x- and z-axis</span></div>
<div class="line"><a id="l00979" name="l00979"></a><span class="lineno"> 979</span> <span class="comment">// add extra nodes of the intermediate layer, for refinement in x-direction</span></div>
<div class="line"><a id="l00981" name="l00981"></a><span class="lineno"> 981</span> <span class="comment">// - get position offset in x- and y-direction</span></div>
<div class="line"><a id="l00997" name="l00997"></a><span class="lineno"> 997</span> <span class="comment">// add extra nodes of the intermediate layer, for refinement in z-direction</span></div>
<div class="line"><a id="l00999" name="l00999"></a><span class="lineno"> 999</span> <span class="comment">// - get position offset in y- and z-direction</span></div>
<div class="line"><a id="l01015" name="l01015"></a><span class="lineno"> 1015</span> <span class="comment">// add nodes of the top layer of this element</span></div>
<div class="line"><a id="l01034" name="l01034"></a><span class="lineno"> 1034</span> <span class="comment">// current element, number of element layers, starting nodes of each node layer</span></div>
<div class="line"><a id="l01039" name="l01039"></a><span class="lineno"> 1039</span> <span class="comment">// loop over all element layers</span></div>
<div class="line"><a id="l01261" name="l01261"></a><span class="lineno"> 1261</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01289" name="l01289"></a><span class="lineno"> 1289</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01329" name="l01329"></a><span class="lineno"> 1329</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01357" name="l01357"></a><span class="lineno"> 1357</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01399" name="l01399"></a><span class="lineno"> 1399</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01427" name="l01427"></a><span class="lineno"> 1427</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01467" name="l01467"></a><span class="lineno"> 1467</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01491" name="l01491"></a><span class="lineno"> 1491</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01533" name="l01533"></a><span class="lineno"> 1533</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01555" name="l01555"></a><span class="lineno"> 1555</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01577" name="l01577"></a><span class="lineno"> 1577</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01605" name="l01605"></a><span class="lineno"> 1605</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01645" name="l01645"></a><span class="lineno"> 1645</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01673" name="l01673"></a><span class="lineno"> 1673</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01715" name="l01715"></a><span class="lineno"> 1715</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01743" name="l01743"></a><span class="lineno"> 1743</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01783" name="l01783"></a><span class="lineno"> 1783</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="line"><a id="l01811" name="l01811"></a><span class="lineno"> 1811</span> <span class="comment">// initialize counter: current index in the node-list "ret"</span></div>
<div class="line"><a id="l01873" name="l01873"></a><span class="lineno"> 1873</span> <span class="comment">// number of element layers in y-direction</span></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1Hex8_1_1FineLayer_html"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1Hex8_1_1FineLayer.html">GooseFEM::Mesh::Hex8::FineLayer</a></div><div class="ttdoc">Mesh with fine middle layer, and coarser elements towards the top and bottom.</div><div class="ttdef"><b>Definition</b> <a href="#l00613">MeshHex8.h:613</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase3d_html"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase3d.html">GooseFEM::Mesh::RegularBase3d</a></div><div class="ttdoc">CRTP base class for regular meshes in 3d.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00552">Mesh.h:552</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase3d_html_a32741c52c79bd48fa16e034346ae1288"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase3d.html#a32741c52c79bd48fa16e034346ae1288">GooseFEM::Mesh::RegularBase3d< Regular >::nelz</a></div><div class="ttdeci">auto nelz() const</div><div class="ttdoc">Number of elements in y-direction == height of the mesh, in units of h,.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00563">Mesh.h:563</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase_html"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase.html">GooseFEM::Mesh::RegularBase</a></div><div class="ttdoc">CRTP base class for regular meshes.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00181">Mesh.h:181</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase_html_a2b1e724266a6ea6ad9c21dcf87f30c8f"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase.html#a2b1e724266a6ea6ad9c21dcf87f30c8f">GooseFEM::Mesh::RegularBase::nely</a></div><div class="ttdeci">auto nely() const</div><div class="ttdoc">Number of elements in y-direction == height of the mesh, in units of h,.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00237">Mesh.h:237</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase_html_a9b57e26ca3bcd0e1109c5295534b4be0"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase.html#a9b57e26ca3bcd0e1109c5295534b4be0">GooseFEM::Mesh::RegularBase::h</a></div><div class="ttdeci">auto h() const</div><div class="ttdoc">Linear edge size of one 'block'.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00246">Mesh.h:246</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Mesh_1_1RegularBase_html_a9bbaff6778108ff92394e5f639bb64ee"><div class="ttname"><a href="classGooseFEM_1_1Mesh_1_1RegularBase.html#a9bbaff6778108ff92394e5f639bb64ee">GooseFEM::Mesh::RegularBase::nelx</a></div><div class="ttdeci">auto nelx() const</div><div class="ttdoc">Number of elements in x-direction == width of the mesh in units of h.</div><div class="ttdef"><b>Definition</b> <a href="Mesh_8h_source.html#l00228">Mesh.h:228</a></div></div>
<div class="ttc" id="anamespaceGooseFEM_html"><div class="ttname"><a href="namespaceGooseFEM.html">GooseFEM</a></div><div class="ttdoc">Toolbox to perform finite element computations.</div><div class="ttdef"><b>Definition</b> <a href="Allocate_8h_source.html#l00014">Allocate.h:14</a></div></div>
<div class="ttc" id="anamespaceGooseFEM_html_acb082fa83b6ad7cf3a04bd7a181cce81"><div class="ttname"><a href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">GooseFEM::AsTensor</a></div><div class="ttdeci">auto AsTensor(const T &arg, const S &shape)</div><div class="ttdoc">"Broadcast" a scalar stored in an array (e.g.</div><div class="ttdef"><b>Definition</b> <a href="Allocate_8h_source.html#l00167">Allocate.h:167</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->