Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Select mesh-elements and refine mesh there (via Matlab)
Posted 10 mag 2011, 12:34 GMT-4 Interfacing Version 4.1 1 Reply
Please login with a confirmed email address before reporting spam
Hi,
i want to select certain mesh-elements and refine the mesh there. It works for domains, but i can not manage to select e.g. certain triangles in a 2d-geometry mesh and refine there.
Here is my code for the domain selection and refinement:
model.mesh('mesh1').feature().create('ref1', 'Refine');
model.mesh('mesh1').feature('ref1').selection().geom('geom_2d', 2).set([1]); % should be a selection of triangles here instead of domains
model.mesh('mesh1').run;
i want to select certain mesh-elements and refine the mesh there. It works for domains, but i can not manage to select e.g. certain triangles in a 2d-geometry mesh and refine there.
Here is my code for the domain selection and refinement:
model.mesh('mesh1').feature().create('ref1', 'Refine');
model.mesh('mesh1').feature('ref1').selection().geom('geom_2d', 2).set([1]); % should be a selection of triangles here instead of domains
model.mesh('mesh1').run;
1 Reply Last Post 11 mag 2011, 08:19 GMT-4