-
Notifications
You must be signed in to change notification settings - Fork 19
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
probelm occur when Using Function :create_matrix in 2D situation #5
Comments
There was a bug where create_matrix didn't call create_cohesive_elements with the correct mesh_dimension. However, I have only tested create_matrix for 3D and as the code is right now it will not work for 2D. I added an error check for this now. I will try make it work for 2D today. |
Thanks a lot! Best regards On Mon, Jan 19, 2015 at 3:54 AM, KristofferC notifications@github.com
|
I've been busy with some other stuff so haven't gotten around looking at it carefully. Will try get it done tomorrow or in the weekend. |
It looks good. Again, Thanks a lot for your help On Fri, Jan 23, 2015 at 12:21 PM, KristofferC notifications@github.com
|
Hi, Dear.Kristoffer
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:
create_matrix(mesh, 0.0001)
create_matrix is EXPERIMENTAL!
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/phon/mesh_tools/create_matrix.py", line 55, in create_matrix
create_cohesive_elements(mesh)
File "/usr/local/lib/python2.7/dist-packages/phon/mesh_tools/create_cohesive_elements.py", line 73, in create_cohesive_elements
grain_id_1 = grains_connected_to_face[0]
IndexError: list index out of range
Could you tell me how to solve it?
The text was updated successfully, but these errors were encountered: