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 select Boundaries by coordinates/boxes WHILE building the geometry in Matlab?

Please login with a confirmed email address before reporting spam

Hello,

I am trying to automate my COMSOL model via the LiveLink interface and I am struggling at the geometry part, where I need to transform all my boundaries into "solid".

I tried the following:
index=mphselectbox(model,'geom1',['-wd' 'wd';'-wd' 'wd'],'boundary');
model.geom('geom1').feature.create('csol1', 'ConvertToSolid');
model.geom('geom1').feature('csol1').selection('input').set({index});

This gives me:
"No method 'set' with matching signature found for class 'com.comsol.model.impl.GeomObjectSelectionImpl'.

Error in Salient_Pole_20130906 (line 229)
model.geom('geom1').feature('csol1').selection('input').set({index});"

So I was hoping to be able to select all boundaries inside the "wd" square to transform them into solid. Since there are pretty many boundaries, this would save me a lot of work. But I think that the selection functions via Box or ball do not work for the geometry-creating.

Any tips?

Thanks in advance!

0 Replies Last Post 11.09.2013, 05:50 GMT-4
COMSOL Moderator

Hello Jan

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.