{"action":"created","issue":{"url":"https://api.github.com/repos/KristofferC/Phon/issues/5","labels_url":"https://api.github.com/repos/KristofferC/Phon/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/KristofferC/Phon/issues/5/comments","events_url":"https://api.github.com/repos/KristofferC/Phon/issues/5/events","html_url":"https://github.com/KristofferC/Phon/issues/5","id":54720162,"number":5,"title":"probelm occur when Using Function :create_matrix in 2D situation","user":{"login":"mrzhaojyi","id":10521922,"avatar_url":"https://avatars.githubusercontent.com/u/10521922?v=3","gravatar_id":"","url":"https://api.github.com/users/mrzhaojyi","html_url":"https://github.com/mrzhaojyi","followers_url":"https://api.github.com/users/mrzhaojyi/followers","following_url":"https://api.github.com/users/mrzhaojyi/following{/other_user}","gists_url":"https://api.github.com/users/mrzhaojyi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrzhaojyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrzhaojyi/subscriptions","organizations_url":"https://api.github.com/users/mrzhaojyi/orgs","repos_url":"https://api.github.com/users/mrzhaojyi/repos","events_url":"https://api.github.com/users/mrzhaojyi/events{/privacy}","received_events_url":"https://api.github.com/users/mrzhaojyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-01-19T02:18:11Z","updated_at":"2015-01-23T18:00:18Z","closed_at":null,"body":"Hi, Dear.Kristoffer\r\n        I try to generate a 2D mesh with finite thickness and I found phon.mesh_tools.create_matrix.create_matrix(mesh, thickness, order) is able to achieve that. But when I run the code:\r\n--------------------\r\ncreate_matrix(mesh, 0.0001)\r\ncreate_matrix is EXPERIMENTAL!\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/phon/mesh_tools/create_matrix.py\", line 55, in create_matrix\r\n    create_cohesive_elements(mesh)\r\n  File \"/usr/local/lib/python2.7/dist-packages/phon/mesh_tools/create_cohesive_elements.py\", line 73, in create_cohesive_elements\r\n    grain_id_1 = grains_connected_to_face[0]\r\nIndexError: list index out of range\r\n--------------------\r\nCould you tell me how to solve it?\r\n"},"comment":{"url":"https://api.github.com/repos/KristofferC/Phon/issues/comments/71235079","html_url":"https://github.com/KristofferC/Phon/issues/5#issuecomment-71235079","issue_url":"https://api.github.com/repos/KristofferC/Phon/issues/5","id":71235079,"user":{"login":"mrzhaojyi","id":10521922,"avatar_url":"https://avatars.githubusercontent.com/u/10521922?v=3","gravatar_id":"","url":"https://api.github.com/users/mrzhaojyi","html_url":"https://github.com/mrzhaojyi","followers_url":"https://api.github.com/users/mrzhaojyi/followers","following_url":"https://api.github.com/users/mrzhaojyi/following{/other_user}","gists_url":"https://api.github.com/users/mrzhaojyi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrzhaojyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrzhaojyi/subscriptions","organizations_url":"https://api.github.com/users/mrzhaojyi/orgs","repos_url":"https://api.github.com/users/mrzhaojyi/repos","events_url":"https://api.github.com/users/mrzhaojyi/events{/privacy}","received_events_url":"https://api.github.com/users/mrzhaojyi/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T18:00:18Z","updated_at":"2015-01-23T18:00:18Z","body":"It looks good. Again, Thanks a lot for your help\r\n\r\nOn Fri, Jan 23, 2015 at 12:21 PM, KristofferC <notifications@github.com>\r\nwrote:\r\n\r\n> Okey, I started fixing some stuff: This is how it looks like now.\r\n> [image: 2d_cohes]\r\n> <https://cloud.githubusercontent.com/assets/1282691/5879040/22bf680a-a32c-11e4-8e0c-581d6ef8f08b.png>\r\n>\r\n> Note, that the only thing that is happening is that nodes in interfaces\r\n> are moved in their normal direction. No remeshing is being done which means\r\n> that if you either have a too big thickness or that you have a very fine\r\n> mesh you will get elements with bad quality.\r\n>\r\n> I will later experiment with adding a Laplacian smoothing to each grain\r\n> which will hopefully help with the element quality.\r\n>\r\n> While doing this I also found a quite severe bug with the abaqus exporting\r\n> for 2d cohesive elements. Abaqus makes a very weird choice in the way their\r\n> 2d cohesive elements are ordered which lead to this:\r\n> [image: abaq]\r\n> <https://cloud.githubusercontent.com/assets/1282691/5879095/910f5054-a32c-11e4-9e1f-6092241f37ae.png>\r\n>\r\n> However, that should be fixed now. I will keep the issue open until I have\r\n> tried the Laplacian smoothing.\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/KristofferC/Phon/issues/5#issuecomment-71229046>.\r\n>"}}