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
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