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.

how to remove a domain (using matlab livelink)

Please login with a confirmed email address before reporting spam

Dear All,
I need to delete a domain, but the function "delete entities" selects boundaries.
How to write Matlab function that used to select domains?
Regards.

1 Reply Last Post 27.02.2015, 07:52 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 27.02.2015, 07:52 GMT-5
found the solution:
%%%%%%%%%%
model.geom('geom1').feature.create(tag,'Delete');
model.geom('geom1').feature(tag).selection('input').init(3); % select domain
model.geom('geom1').feature(tag).selection('input').set('imp1',[2]);
%%%%%%%%%%
found the solution: %%%%%%%%%% model.geom('geom1').feature.create(tag,'Delete'); model.geom('geom1').feature(tag).selection('input').init(3); % select domain model.geom('geom1').feature(tag).selection('input').set('imp1',[2]); %%%%%%%%%%

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.