Delete
Delete elements from mesh.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"Delete");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection();
model.component(<ctag>).mesh(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).getType(property);
Description
Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Delete") to delete elements from the mesh.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the geometric entity selection. Allowed selections are meshed geometric entities of any dimension and the entire geometry, which can be partially meshed.
The following properties are available:
on | off
Deleting elements corresponding to a specific domain, all elements on adjacent domains of higher dimension are deleted as well.
Example
Create a mesh of a 2D geometry with 3 domains. First, delete the elements belonging to Domain 3 only. Then delete the elements belonging to Domain 1 and all adjacent domains of lower dimensions that can be deleted. At last, delete the edge elements belonging to Edge 1. The elements belonging to the adjacent domain (Domain 2) are deleted as well.
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1", 2);
MeshSequence m= model.component("comp1").mesh().create("mesh1", "geom1");
 
g.create("R1", "Rectangle");
g.create("C1", "Circle");
g.run();
 
m.create("ftri1", "FreeTri");
 
m.create("del1","Delete");
m.feature("del1").selection().geom(2).set(3);
m.feature("del1").set("deladj","off");
 
m.create("del2","Delete");
m.feature("del2").selection().geom(2).set(1);
m.feature("del2").set("deladj","on");
 
m.create("del3","Delete");
m.feature("del3").selection().geom(1).set(1);
 
m.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1', 2);
m = model.component('comp1').mesh.create('mesh1', 'geom1');
 
g.create('R1', 'Rectangle');
g.create('C1', 'Circle');
g.run;
 
m.create('ftri1', 'FreeTri');
 
m.create('del1','Delete');
m.feature('del1').selection().geom(2).set(3);
m.feature('del1').set('deladj','off');
 
m.create('del2','Delete');
m.feature('del2').selection().geom(2).set(1);
m.feature('del2').set('deladj','on');
 
m.create('del3','Delete');
m.feature('del3').selection().geom(1).set(1);
 
m.run;
See Also
FreeTet, Map, Sweep