Elements reordered in log file according to material groups rather than element index
issueid=748 06-10-2016 02:23 PM
Elements reordered in log file according to material groups rather than element index
Elements reordered in log file according to material groups rather than element index

A log file for element stresses might contain something like:
*Title:
*Step = 1
*Time = 0.1
*Data = sx;sy;sz;sxy;syz;sxz
1, -0.000545485, -0.000376348, -0.000569207, 1.74548e-05, -3.7003e-06, 0.000220732
2, 9.87334e-05, 0.000140242, -0.00025998, 1.83216e-05, -2.10893e-05, 5.35872e-05
3, -0.000306459, -0.000340525, -0.000522156, 5.19165e-05, -0.000147047, 0.00021943
4, -0.000694939, -0.000588528, -0.00088467, -3.14866e-05, -0.000201601, -0.000154695
5, -0.000135529, -7.99006e-05, -0.000439047, 1.11936e-05, -5.59761e-05, 9.60911e-05
6, -0.00272406, -0.00272547, -0.00361755, -5.22314e-05, 0.000129214, 8.40091e-05

The first column should here refer to the element indices. This is however not always the case. For a multi-material mesh the log-file remains like this if it is like this (ignore node numbers here):

<Elements mat="1" name="Solid_1" type="tet4">
<elem id="1"> 3626, 594, 5173, 5344</elem>
<elem id="2"> 3622, 4179, 4250, 4922</elem>
<elem id="3"> 164, 208, 153, 2543</elem>
</Elements>
<Elements mat="2" name="Solid_1" type="tet4">
<elem id="4"> 3626, 594, 5173, 5344</elem>
<elem id="5"> 3622, 4179, 4250, 4922</elem>
<elem id="6"> 164, 208, 153, 2543</elem>
</Elements>

I.e. if the elements stay in order. If however the elements are like this:

<Elements mat="1" name="Solid_1" type="tet4">
<elem id="4"> 3626, 594, 5173, 5344</elem>
<elem id="5"> 3622, 4179, 4250, 4922</elem>
<elem id="6"> 164, 208, 153, 2543</elem>
</Elements>
<Elements mat="2" name="Solid_1" type="tet4">
<elem id="1"> 3626, 594, 5173, 5344</elem>
<elem id="2"> 3622, 4179, 4250, 4922</elem>
<elem id="3"> 164, 208, 153, 2543</elem>
</Elements>

The log file labels 1 2 3 4 5 6 will actually refer to 4 5 6 1 2 3. In other words the element indices in the log files seem to be ordered to first occurrence in list perhaps after ordering with material indices first? However once would expect that they are ordered and labelled with their true element indices.

Attached are two feb files illustrating this problem (labelled sorted and unsorted) and their corresponding stress output log files.


Kevin
Issue Details
Issue Number 748
Project FEBio
Category Unknown
Status Unconfirmed
Priority Unknown
Affected Version Unknown
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




06-10-2016 02:25 PM
Issue Changed by kevinmattheusmoerman
  • Attachment febio_bug.zip uploaded

+ Reply