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
Posted 2015年11月12日 GMT-5 02:51 Interfacing, Geometry, Parameters, Variables, & Functions Version 5.0 0 Replies
Please login with a confirmed email address before reporting spam
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
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.