Results 1 to 9 of 9

Thread: Multiple damage variables and Plugin question

  1. #1
    Join Date
    Jan 2015
    Posts
    11

    Default Multiple damage variables and Plugin question

    Hi,
    Actaully I have two questions:

    1)I have built a damage model which has multiple damage materials and I was wondering how I could access the damage result variable for each of those material? I tried to dig into the source code to possibly build in a plugin or add to code but I am having some problems with plugin basics too.
    2)For practicing purposes, I am trying to make a .dll from the example Neohookeanpi plugin example on the website. I use codeblock IDE with a gcc compiler. I make a project for making a dynamic link library (dll) file and include three source codes provided in Neohookeanpi example plugin. i.e. dllmai.cpp FENeoHookeanPI.cpp and its header FENeoHookeanPI.h. I compile the header file and add directories and libraries as mentioned in Developer's Manual. However, I am unable to compile the dllmain.cpp. The error I am getting is: dllmain.o No such file or directory
    I was wondering if you had experience using codeblock IDE or any potential solution for this primitive problem?

    Thanks,
    Babak
    Last edited by asixbabak; 12-03-2015 at 06:47 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    652

    Default

    Hi Babak,

    Are you still trying to resolve this issue? I can help you with your item (1), let me know.

    Best,

    Gerard

  3. #3
    Join Date
    Dec 2007
    Posts
    652

    Default

    Hi Babak,

    Are you still trying to resolve this issue? I can help you with your item (1), let me know.

    Best,

    Gerard

  4. #4
    Join Date
    Jan 2015
    Posts
    11

    Default

    Dear Dr. Ateshian,

    I haven't yet resolved that issue, so I would be glad if you could do so.

    I appreciate your help.
    Babak

  5. #5
    Join Date
    Jan 2015
    Posts
    11

    Default

    Dear Dr. Ateshian,

    I haven't yet resolved that issue, so I would be glad if you could do so.

    I appreciate your help.
    Babak

  6. #6
    Join Date
    Dec 2007
    Posts
    652

    Default

    Hi Babak,

    Try this plugin: PlotNestedDamagePI.zip. It creates a plot variable called nested_damage_pi to let you save the damage for each damage material nested in a solid mixture. Let's say that your solid mixture contains five nested materials (not all of them need to be damage materials). If you want to save the damage in the second and fourth nested materials you can use
    Code:
    <var type="nested_damage_pi[2]"/>
    <var type="nested_damage_pi[4]"/>
    Try it out and let me know if that works for you. If the plugin does not work, you can copy these classes to FEBioMechPlot.h and FEBioMechPlot.cpp and register the plot variable in FEBioMech.cpp.

    I have implemented a similar plot variable ("nested damage") that will be included in the next FEBio release (2.5).

    Best,

    Gerard

  7. #7

    Default

    Hi everybody

    I tried to compile the code which was uploaded by Dr.Ateshian (PlotNestedDamagePI.zip) but I encountered an error message as following:

    1>c:\users\pars\desktop\example\plugin\new\feplotn esteddamagepi.h(7): error C2504: 'FEDataStream' : base class undefined.

    I tried to find 'FEDataStream' class in "FECore/FEPlotData.h" header file but I couldn't find such a class. I guessed maybe it has been replaced with another class with a different name but I couldn't recognize. could you please help me with this problem.

    Thanks,

    Faezeh

  8. #8
    Join Date
    Nov 2007
    Location
    Salt Lake City, UTAH
    Posts
    1,683

    Default

    Hi Faezeh,

    It looks like he gave you a plugin that will only compile on our development version (2.5), not the current release version (2.4). I'll see if someone can fix that. Or if you have the FEBio source code you can look at other plot fields and see what the right syntax should be.

    Cheers,

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

  9. #9
    Join Date
    Dec 2008
    Location
    Salt Lake City, UT
    Posts
    377

    Default

    Hi Faezeh,

    I changed the plugin code to work with FEBio 2.4.2. Let me know if you have any problems.

    Best,

    Dave
    Attached Files Attached Files
    Department of Bioengineering, University of Utah
    Scientific Computing and Imaging institute, University of Utah

Posting Permissions

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