Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

Blocks vector defined in MATLAB 2014a

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

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>