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.

Error: 2197 When Subtracting Solid Objects

Please login with a confirmed email address before reporting spam

The operation for subtracting objects sometimes results in an empty object.

I get the same result regardless of whether I use Comsol with Matlab or Comsol.

Here is the code for Comsol with Matlab:

L =1.484657283537885e+002;
b1 = block3(L,L,L,'base','corner','pos',[-L/2 -L/2 -L/2]);
b2 = block3(2*L,2*L,2*L,'base','corner','pos',[-L -L -L]);
b3 = b2-b1;
s1 = sphere3(R, 'pos', [74.749418189234774 55.704195981109351 44.950288914795586]);
s2 = s1 - b3;

b4 = b1 - s2; % this is an empty object

geomplot(b1 - s1) % this is what b4 should look like



0 Replies Last Post 2010年10月12日 GMT-4 15:06
COMSOL Moderator

Hello Shaun Eshraghi

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.