How can I refine a subdomain in the PDE Toolbox mesh generation tool?
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Zoi T.
 el 7 de Sept. de 2016
  
    
    
    
    
    Editada: Sean Littleton
 el 15 de En. de 2021
            Hello,
I would like to refine a part of my domain without refining the whole mesh. Say for example that I have a unit square domain R1, which contains a circular sub-domain E1. Can I refine only E1 up to a desired element size, without imposing the same mesh size in the rest of the domain?
0 comentarios
Respuesta aceptada
  michio
    
 el 7 de Sept. de 2016
        I assume your problem is in 2D, then refinemesh function accepts an extra input argument "it", that is interpreted as a list of subdomains to refine, if it is a row vector.
6 comentarios
  MarionJ
      
 el 30 de Jun. de 2017
				It is not possible. I had the same problem. You have to use assempde, parabolic etc. if you want to refine mesh in certain Domains.
  Ali Hammouche
 el 23 de Jul. de 2020
				How to generate a triangular mesh by MATLAB with the line joining the cell centre is orthogonal to the edges of the triangle?
Más respuestas (2)
  Devosmita Chatterjee
 el 29 de Oct. de 2017
        How to refine a mesh for the poisson equation problem in a unitsquare domain by placing many triangles around the point (0.5,0.5) using Adaptive Finite Element Method and a posteriori error estimation? We need to find adaptive meshes for the problem with solution u=a*exp(-a*(r^2)), a =400 using two refinements, four refinements, six refinements, ten refinements. Can anyone provide me the Matlab code for this problem?
0 comentarios
  Ian Jentz
 el 2 de Oct. de 2020
        
      Editada: Ian Jentz
 el 2 de Oct. de 2020
  
      There is now a port of refinemesh() available for PDEModel.  Like refinemesh(), it works for 2D linear triangular geometries only.
This is likely how would run your problem:
create your model as a pde model
 model=createpde;
proceed with your geometry definitions.
When you get to meshing, you instantiate your mesh as usuall, but then can refine the mesh on a particular face using refinePDEMmesh().
 generateMesh(model);
 FaceID = 1; % the face ID of your E1 face?
 model = refinePDEMmesh(model,FaceID);
1 comentario
  Sean Littleton
 el 15 de En. de 2021
				
      Editada: Sean Littleton
 el 15 de En. de 2021
  
			Hello,
Thank you for sharing this function. It is almost exactly what I need, except for the fact that it does not work with quadratic triangular elements -- the very elements that I need to use for my problem. Are there any plans to add this functionality in the future? If not, is there an approach you would recommend?
Note: The triangular elements I am using are still geometrically linear. The extra nodes are only used for the quadratic shape functions, since I need the derivatives of the solution to be continuous.
Ver también
Categorías
				Más información sobre General PDEs en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






