-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
febioStruct2xml #24
Comments
Thanks for posting this issue. To try to understand what is going on, can you tell me the versions for MATLAB, GIBBON and FEBio on both computers? Is there a demo that you used to make your code? If so what demo did you use? My guess is that this is due to a different FEBio (and GIBBON) version. There have been some changes in the way contact is defined. I'll highlight it below. First of all, I should say there are old demos and new demos. The file names for the old ones starts with % -> Surfaces
febio_spec.Geometry.Surface{1}.ATTR.name='contact_master';
febio_spec.Geometry.Surface{1}.tri3.ATTR.lid=(1:1:size(F_contact_master,1))';
febio_spec.Geometry.Surface{1}.tri3.VAL=F_contact_master;
febio_spec.Geometry.Surface{2}.ATTR.name='contact_slave';
febio_spec.Geometry.Surface{2}.quad4.ATTR.lid=(1:1:size(F_contact_slave,1))';
febio_spec.Geometry.Surface{2}.quad4.VAL=F_contact_slave; Then you add these to the contact section like this: febio_spec.Contact.contact{1}.ATTR.surface_pair=febio_spec.Geometry.SurfacePair{1}.ATTR.name; |
Let me know how you get on |
Hi, Matlab on the original PC is R2017b, on the new one is R2017a, and FEBio on both pcs is version 2.7.1. I am doing some parametric studies and using GIBBON to automate the process. I did not look at the demos to create the geometry in MATLAB, but created initial geometries in PreView (v 2.0.0) , then imported it into MATLAB using xml2struct from GIBBON. When I compared the two output feb files from different febioStruct2xml to detect differences, the contact surface information (shown above) + a line in element information was altered. Thank you for your quick response. |
I've also opened #25 to create the inverse of |
Oh, I remember now I had to create another function to get rid of other imported structs to match the proper febio structure. My geometry simply is a slice with layers having different material properties welded together under a rigid body. I can share .feb file if that makes it more clearer. Thanks. |
Let me know if that extra step you mention solves your issue. I think this is not a bug but simply an XML import issue. It sounds like you can fix it but let me know if you need help. BTW If you do want to code the model (in which case you can easily manipulate mesh density and other parameters) you could check out: |
The extra step was implemented within my code both before and after switching to newer febioStruct2xml before reporting this issue. But I do agree XML import maybe the issue here as my function altering imported xml was written roughly to get rid of excess structures. Thank you for leading me to the Demo, I will see if I can apply my geometry as shown. |
I'll close this issue for now. Let me know if you need more help. |
Hello,
I have recently installed GIBBON code onto a different pc and found my existing code did not work, realized some information in the output xml file differs from input FEB struct.
As one example from my code, in Matlab the input FEB struct was,
which outputs .feb file as in:
When I changed back to febioStruct2xml from my older pc, this issue did not occur.
Thank you!
The text was updated successfully, but these errors were encountered: