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.

Blocks vector defined in MATLAB 2014a

Please login with a confirmed email address before reporting spam

Hi all,

I want to use MATLAB to drive Comsol Multiphysics to generate Blocks, the program generates the Blocks through circulation.

for i = 1:nelx
for j = 1:nely
if x(i,j) == 0
model.geom('geom1').create('blk3', 'Block');
model.geom('geom1').feature.duplicate('blk3', 'blk2');
model.geom('geom1').feature('blk3').set('pos', {'j-1' 'nelx-i' '0'});
end
end
end

Is there any possibility to define Blocks vector or geometry array in this circulation within COMSOL? if yes, how?

I appreciate any help in advance.

sincerely

0 Replies Last Post 12 nov 2015, 02:51 GMT-5
COMSOL Moderator

Hello Longxiang Xie

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.