PDE for mesh element matrix not valid
1 view (last 30 days)
Show older comments
I am trying to import a mesh into the pdecreate command in matlab but i keep getting error that the elements are not connected correctly. The code is attached.
How do i get the element matrix to be correctly input into matlab?
0 Comments
Answers (1)
Prateek
on 17 Oct 2022
Edited: Prateek
on 16 Nov 2022
Hi Anosh,
The nodes matrix in “untitled.m” has all Z's at 0, while elements are tets (4 nodes).
In a solid geometry, all nodes sit in the same plane, and thus the definition in “untitled.m” is invalid. Please make sure the input data for “geometryFromMesh” is consistent for either 2-D or 3-D case.
For details, refer to the documentation: Create 2-D or 3-D geometry from mesh - MATLAB geometryFromMesh (mathworks.com)
Hope this resolves your issue.
Regards,
Prateek.
0 Comments
See Also
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!