Prestrain in FEBio 2.5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • MiguelA
    Junior Member
    • Mar 2017
    • 18

    Prestrain in FEBio 2.5

    Hi,
    I'm trying to apply pre-strain in FEBio using the plugin. I have my own script to generate the .feb file and I'm using the 2.5 format. The example feb files of the plugin seem to use the 2.0 format.

    The example file test9_ps.feb the prestrain gradient matrix is defined by element like this:

    Code:
    	<Geometry>
    		<Nodes>
    			...
    		</Nodes>
    		<Elements type="hex8" mat="1" elset="Part1">
    			...
    		</Elements>
    		<ElementData>
    			<element id="1"><F0>1.04067,-0.000651485,-0.000651485,0.0542267,0.983246,0.00321706,0.0542267,0.00321706,0.983246</F0></element>
    			<element id="2"><F0>1.03972,-0.00041242,-0.000300378,0.0630071,0.980724,0.00556343,0.0244616,0.00101116,0.986989</F0></element>
    			...
    	</Geometry>

    However, if I switch the same file to version 2.5 I get the error:
    Code:
    FATAL ERROR: unrecognized tag "ElementData" (line 384)
    In my file I have the material axis defined as below. Should the definition of the gradient now be done in the MeshData section as well? If so, what is the "var"?
    Code:
        <MeshData>
            <ElementData elem_set="Part1" var="mat_axis">
                <elem lid="1">
                    <a>-0.514589820563471,0.7972243861088063,0.31564314465213966</a>
                    <d>-0.8574364796137658,-0.4784536168681043,-0.18943289031575739</d>
                </elem>
                ...
            </ElementData>
        </MeshData>
    Best Regards,
    Miguel
  • maas
    Lead Code Developer
    • Nov 2007
    • 3400

    #2
    Hi Miguel,

    The ElementData is not supported in the 2.5 format. Instead, in this format all mesh data is defined in the new MeshData section. Thus, yes, you need to specify the gradient in this section. The "var" would be "F0". Please give that a try and let us know if you still have problems.

    Cheers,

    Steve
    Department of Bioengineering, University of Utah
    Scientific Computing and Imaging institute, University of Utah

    Comment

    • MiguelA
      Junior Member
      • Mar 2017
      • 18

      #3
      Thank you Steve.
      Based on your suggestion I ended used the format below and it didn't give any errors when loading the file.

      Code:
          <MeshData>
              <ElementData elem_set="Part1" var="F0">
                  <elem lid="1">1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0</elem>
                   ...
                  <elem lid="149">1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0</elem>
              </ElementData>
          </MeshData>
      Now the problem is that there seems to be some issue with the application of this plugin the way I'm applying it, but I'll open a different thread for that

      Comment

      Working...
      X
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎