Error in generateMesh using PDE Toolbox
    8 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
  Mike Croucher
    
 2025-4-14
				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
回答(1 个)
  Kautuk Raj
      
 2025-6-6
        
      编辑:Kautuk Raj
      
 2025-6-6
  
      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 个评论
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


