Error in generateMesh using PDE Toolbox
9 views (last 30 days)
Show older comments
I've been trying to get to grips with the PDE Toolbox and I've been using the "DeflectionAnalysisOfBracketExample" example as a guide before I insert my own data and get specific. I'm really just trying to see if my own meshes will work. The mesh in question has the following properties, after I set boundary conditions:
AnalysisType: "structuralStatic"
Geometry: [1×1 fegeometry]
PlanarType: "planeStress"
MaterialProperties: [1×251 materialProperties]
Boundary Conditions
FaceBC: [1×1630 faceBC]
EdgeBC: [0×5245 edgeBC]
VertexBC: [0×4596 vertexBC]
ROMInterfaces: []
Loads
CellLoad: [0×251 cellLoad]
FaceLoad: [1×1630 faceLoad]
EdgeLoad: [0×5245 edgeLoad]
VertexLoad: [0×4596 vertexLoad]
Initial Conditions
CellIC: [0×251 cellIC]
FaceIC: [0×1630 faceIC]
EdgeIC: [0×5245 edgeIC]
VertexIC: [0×4596 vertexIC]
Other Parameters
DampingAlpha: 0
DampingBeta: 0
ReferenceTemperature: []
SolverOptions: [1×1 pde.PDESolverOptions]
Constants
VacuumPermittivity: []
VacuumPermeability: []
StefanBoltzmann: []
But when I go to use generateMesh for projecting the results, I get the following error message:
Error using fegeometry/generateMesh (line 223)
Unable to compute geometry-mesh associativity because the geometry is invalid or the mesh size is insufficient for capturing all
geometric details. Try adjusting Hmax and Hmin.
Error in femodel/generateMesh (line 355)
obj.Geometry_I = generateMesh(obj.Geometry,nvpairs{:});
What I have I done wrong? What am I missing? Is my mesh too big?
1 Comment
Mike Croucher
on 14 Apr 2025
Hi Andrew
I'm not an expert in PDE toolbox at all but it might be easier for someone to debug if you could share the mesh. Would that be possible? Perhaps using a MATLAB Drive link?
You may also be interested in this brand new course on doing FEA in MATLAB Introduction to Finite Element Analysis with MATLAB | Self-Paced Online Courses - MATLAB & Simulink
Answers (1)
Kautuk Raj
on 6 Jun 2025
Edited: Kautuk Raj
on 6 Jun 2025
Hello Andrew,
I invite you to the refer to the following MATLAB Answers post which provides a workaround for the same error, "Unable to compute geometry-mesh associativity because the geometry is invalid or the mesh size is insufficient for capturing all", being faced: https://www.mathworks.com/matlabcentral/answers/2149864-mesh-problems-for-large-aspect-ratio-object
0 Comments
See Also
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!