Hi all,
I've been working to try and develop a plugin to calculate a new plot field to display in PostView. I'm using a material with a specified fiber direction (trans iso mooney rivlin), and I'm looking to use a couple different variables (deformation gradient, stress tensor, specified fiber direction) from each element to calculate a new value and display that for each element in PostView.
I've been working with Steve and Dave to work out the issues I'm having, but I figured the forum might be an easier place of communication.
Steve first sent me a sample plugin that calculates I1 and creates a new plot field, but I'm having trouble getting the sample plugin to run. I'm running on a mac (without an intel compiler), so my first issue was compiling the plugin with the libraries. Dave sent me the g++ libraries, so I've been able to successfully compile the sample plugin and import it into FEBio. When opening FEBio I get the message: "Success loading plugin libFEPlotTest_osxg++.dylib" so I believe the plugin contains all the proper information.
However, when I run a simple simulation to see if it's calculating the new I1 field, I don't see any new output fields in PostView. I also modified the plugin to just write some simple lines in a text file, to see if the plugin is actually being accessed, and the text file is blank after running the simulation. I'm wondering if there's anything else I need to do to get the plugin working in FEBio (besides importing it in the febio.xml file). Do I need to modify the .feb for the simulation to have it calculate the new field I want? Or am I making another mistake somewhere?
Once I'm able to get the sample plugin running, then I'll be working to calculate the things I need, but I need to make sure I can actually create a new field to be viewed in PostView.
If anyone has any ideas, let me know, thanks!
-Chris Korenczuk
I've been working to try and develop a plugin to calculate a new plot field to display in PostView. I'm using a material with a specified fiber direction (trans iso mooney rivlin), and I'm looking to use a couple different variables (deformation gradient, stress tensor, specified fiber direction) from each element to calculate a new value and display that for each element in PostView.
I've been working with Steve and Dave to work out the issues I'm having, but I figured the forum might be an easier place of communication.
Steve first sent me a sample plugin that calculates I1 and creates a new plot field, but I'm having trouble getting the sample plugin to run. I'm running on a mac (without an intel compiler), so my first issue was compiling the plugin with the libraries. Dave sent me the g++ libraries, so I've been able to successfully compile the sample plugin and import it into FEBio. When opening FEBio I get the message: "Success loading plugin libFEPlotTest_osxg++.dylib" so I believe the plugin contains all the proper information.
However, when I run a simple simulation to see if it's calculating the new I1 field, I don't see any new output fields in PostView. I also modified the plugin to just write some simple lines in a text file, to see if the plugin is actually being accessed, and the text file is blank after running the simulation. I'm wondering if there's anything else I need to do to get the plugin working in FEBio (besides importing it in the febio.xml file). Do I need to modify the .feb for the simulation to have it calculate the new field I want? Or am I making another mistake somewhere?
Once I'm able to get the sample plugin running, then I'll be working to calculate the things I need, but I need to make sure I can actually create a new field to be viewed in PostView.
If anyone has any ideas, let me know, thanks!
-Chris Korenczuk
Comment