Results 1 to 10 of 10

Thread: Visualizing fibers and fiber stretch

  1. #1
    Join Date
    Oct 2012
    Location
    Maryland
    Posts
    6

    Default Visualizing fibers and fiber stretch

    Hi,

    Has anyone found a simple way to visualize fibers, or fiber stretch in PostView? Normally use a wrapper script that takes the symmetry vectors from the model, tensor data from the solution, and writes a .txt file with the information, then add it to PreView as a data field (vectors for fibers, and scalars or fiber stretch).

    It never occurred me to ask if there was a built-in way to do this...

    Thanks,

    Dave.

  2. #2
    Join Date
    Nov 2007
    Location
    Salt Lake City, UTAH
    Posts
    2,329

    Default

    Hi Dave,

    If you add the following to the plotfile section in your feb input file:

    Code:
    <var type="fiber vector"/>
    FEBio will export the fiber vectors to the plot file. In PostView you can visualize them using a vector field.

    To visualize fiber stretch, you can add

    Code:
    <var type="fiber stretch"/>
    Cheers,

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

  3. #3
    Join Date
    Oct 2012
    Location
    Maryland
    Posts
    6

    Default

    That is perfect.

    Thanks,

    Dave.

  4. #4

    Default

    I'm not sure I'm getting this to work correctly. As a simple example, for a 20% uniaxial stretch along the X axis, I am getting a fiber stretch in postview of 1.2 whether I align the fibers in the x direction or the y direction. I thought maybe I had incorrectly assigned fiber alignment, but I checked that for the Y direction the effective stress was equivalent to the same test with no fibers present, and with fibers aligned in the x direction the stress is orders of magnitude greater. I am using a solid mixture material, is it possible this feature is not available for solid mixtures, or am I doing something else wrong?

    Thanks!

    Nathan
    Attached Files Attached Files

  5. #5

    Default

    I dug a little deeper on the forum and found a post from Gerard that explains the situation better. I've copied his answer here for reference for anybody that reads this thread later:

    Displaying the fiber direction using <var type="fiber vector"/> will only show the x-direction of the material axes' xyz-coordinate system. The parameters theta and phi represent fiber directions relative to these local material axes. Unfortunately, you will not be able to visualize these theta-phi directions directly in PostView using this command. (Also keep in mind that the user is free to add any number of fiber materials in a solid mixture, yet the <var type="fiber vector"/> command can only plot one such direction.)

    I agree that it would be nice to visualize fiber directions as a material deforms. In practice, I believe it would not be easy to implement that feature, but you could submit a feature request and Steve and I could discuss it to decide what could be done.

  6. #6
    Join Date
    Jun 2019
    Location
    Colombia
    Posts
    10

    Default

    Hi,

    I am using FEBio Studio 1.0, FEBio 3.0. And these variables (fiber vector and fiber stretch) are not being plotted. I was able to see them using FEBio 2.9.1 and PostView 2.5. What could be the cause of this?

    Kind regards,
    Alex

  7. #7
    Join Date
    Nov 2007
    Location
    Salt Lake City, UTAH
    Posts
    2,329

    Default

    Hi Alex,

    In FEBio3, fibers are defined as an explicit material property. This is different in FEBio2, where the fiber direction was usually the first column of the local material axes. This means that the "fiber vector" and "fiber stretch" plot variables are only stored if the material has this fiber property. Currently, only the top-level (elastic) material is checked, so if your fiber is embedded in a solid mixture, it will also not work. If you can send me your input file, or at least your material definition, I will look into this a little more and try to come up with a solution.

    Cheers,

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

  8. #8
    Join Date
    Jun 2019
    Location
    Colombia
    Posts
    10

    Default

    Fibers07.feb

    Hi Steve,

    This is an example of input file, I am trying to use different families of fibers. It would be nice to visually verify the orientation of fibers, especially when user-defined distributions are used. Thank you for your time.

    Alex

  9. #9
    Join Date
    Nov 2007
    Location
    Salt Lake City, UTAH
    Posts
    2,329

    Default

    Hi Alex,

    I have this working now in the development version of FEBio3. Since multiple components of the solid mixture can have fiber properties, you need to specify which component you want to get the fiber vector from. The syntax is:

    Code:
    <var type="fiber vector['solid[1]']=fiber1"/>
    The square brackets allow you to provide a filter. In this case, the filter is the name of the material component, which is solid[1]. The text after the equal sign (fiber1), is the name of the plot variable as it will show up in FEBioStudio. If you'd like to try this version out, please send me an email (steve dot maas at utah dot edu), and I'll point you to our development version.

    Cheers,

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

  10. #10
    Join Date
    Jun 2019
    Location
    Colombia
    Posts
    10

    Default

    Hi Steve,

    Yes, I am interested in trying this version and this feature. I am sending you the email. I appreciate your commitment.

    Regards,
    Alex

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •