Error when joining stiffnessmatrix and mesh #1019
Unanswered
recepkaya7
asked this question in
Q&A
Replies: 1 comment
-
Which mesh type you have? Triangular, tetrahedral, quadrilateral? Can you try to replace A = stiffness.assemble(mesh) by A = stiffness.assemble(Basis(mesh, ElementTriP1())) You need to pick correct element for your mesh. One of the following: ElementTriP1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a mesh file with .vtk extension with properties. When combining the stiffness matrix with my mesh file, I get this error:
AttributeError Traceback (most recent call last)
Input In [20], in <cell line: 33>()
File ~\anaconda3\lib\site-packages\skfem\assembly\form\biliear_form.py:146, in
File ~\anaconda3\lib\site-packages\skfem\assembly\form\biliear_form.py:72, in
AttributeError: 'Mesh' object has no attribute 'nelems'.
How can I solve this problem?
I'm new to this and would appreciate your help..
Beta Was this translation helpful? Give feedback.
All reactions