-
Notifications
You must be signed in to change notification settings - Fork 8
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
Example fails to run #1
Comments
I have got exactly the same problem and I am looking back to GmshReader and trying to understand the problem. elemType, matID and geoIDs cannot be defined. The update on 2 Feb 2019 told old msh files are not compatible since the gorups are labeled by integers not strings. But I am only using a random .msh file to see if it reads and unfortunately fails it. I also don't use scons but make command. Do you have a suggestion how to solve it? |
Please pay attention to this:
now in gmsh, you have to use string to label physical groups, like this
* Physical Surface("elastic") = {16, 20}; // elastic
Physical Surface("damage") = {18}; // damage
Physical Point("loadPnt") = {6}; // load;
Physical Line("fixedPnts") = {1}; // fixed;
Not back compatible with old msh files where physical groups are labeled by integers!!!
So, in your mesh you have to define some node groups.
… On 26 Jul 2021, at 7:39 pm, dilekguzel ***@***.***> wrote:
I have got exactly the same problem and I am looking back to GmshReader and trying to understand the problem. elemType, matID and geoIDs cannot be defined. The update on 2 Feb 2019 told old msh files are not compatible since the gorups are labeled by integers not strings. But I am only using a random .msh file to see if it reads and unfortunately fails it. I also don't use scons but make command. Do you have a suggestion how to solve it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJB663DKGUTFIBVH624553TZUUL7ANCNFSM4VCIECMQ>.
|
Or in other words, your Gmsh file must be like this: $MeshFormat |
Please get the updated code. I checked it, it works. |
Yes it is working exactly as you said, thank you for the answer and explanation. |
Hello Prof. Nguyen, for 3D models does the --interface work? I have got segmentation fault after the code goes to InterfaceBuilder and doFor3dMatInterface for a 9 point, 4 surface and 4 element case, (my example case) the code finds bulk1 and bulk2 for 4 times and later gives segmentation fault(core dumped). Do you have any suggestions regarding this? Because in your paper I have read you have obtained 3d different test cases. However when I use one-fiber-3D.msh file with the physical groups as you have described earlier I got again the same fault. |
The problem is caused by the fact that for another element that shares the same node code tries to create new nodes so overall duplicatedNodes are exceeding the limit. For example a 16 element problem which has 1 interface in the middle means there are 9 nodes duplicated and 8 elements are interface elements. But after the first 4 elements and we have again same nodes on the other side of the interface and those 4 cannot be treated in 3d. In 2d everything works but for 3d I think the treatment for the same nodes may be lacking or I cannot find a way. In your article "An open source program to generate zero-thickness cohesive interface elements", Figure 17a shows the material interface debonding, so I am probably missing something. Do you have any suggestions? |
Can u send me the geo file that you having problem? Not one-fiber-3D.geo as I got segmentation fault with it. In the past, it worked for 3D interfaces, but after many modifications I did not check 3D interface. |
With this file: L=2; n1 = 1; // ------------------- Point(1) = {0,0,0,M}; // ------------------- Line Loop(1) = {1,2,-7,6}; Transfinite Line{1,4,7} = n1; Transfinite Surface{1} = {1,2,7,6}; Recombine Surface{1}; // ------------------- Plane Surface(1) = {1}; //+ // ---------------------- Physical Line("bottom") = {1}; // bottom edge // Where the crack will grow and interface elements should be inserted I was able to generate interface elements for 3D without modifications to the current code. |
I have used tgis geometry but now that I am comparing with yours I am missing two physical lines. |
I have also managed to obtain results for a vertical crack, a horizontal crack, complex shapes and the cylinder, structured mesh and tetrahedrons as well, I think the problem was the lack of physical lines. Now I don't think there is an issue. |
Great to hear.
… On 4 Aug 2021, at 12:04 am, dilekguzel ***@***.***> wrote:
I have also managed to obtain results for a vertical crack, a horizontal crack, complex shapes and the cylinder, structured mesh and tetrahedrons as well, I think the problem was the lack of physical lines. Now I don't think there is an issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJB662Z5Y5BCT6IYH72OETT27ZNTANCNFSM4VCIECMQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Since I couldn't use the program for my mesh (either .inp or .msh), I tried to reproduce the example mentioned in the README.
I typed
scons
and thenwith the files copied to the proper directory (where the executable is). I get the following message printed to the terminal:
The text was updated successfully, but these errors were encountered: