Hello again,
I am trying to 'automatically' set my boundary conditions for a model generated in matlab with livelink. I know which objects need to have which boundary conditions based on a draw order that I specify but I don't know how to get COMSOL to tell me which boundaries (i.e. face numbers) are associated with which object. I can get a list of face numbers associated with objects by the following (which another user has kindly posted elsewhere on this forum):
upDown = model.geom('geom1').getUpDown;
domain = cell(1,max(upDown(:))+1);
for i = 1:length(upDown)
domain{upDown(1,i)+1}=[domain{upDown(1,i)+1},i];
domain{upDown(2,i)+1}=[domain{upDown(2,i)+1},i];
end
but I don't understand how to link the resulting lists of elements with their associated object since they aren't listed according to draw order.
I am trying to 'automatically' set my boundary conditions for a model generated in matlab with livelink. I know which objects need to have which boundary conditions based on a draw order that I specify but I don't know how to get COMSOL to tell me which boundaries (i.e. face numbers) are associated with which object. I can get a list of face numbers associated with objects by the following (which another user has kindly posted elsewhere on this forum):
upDown = model.geom('geom1').getUpDown;
domain = cell(1,max(upDown(:))+1);
for i = 1:length(upDown)
domain{upDown(1,i)+1}=[domain{upDown(1,i)+1},i];
domain{upDown(2,i)+1}=[domain{upDown(2,i)+1},i];
end
but I don't understand how to link the resulting lists of elements with their associated object since they aren't listed according to draw order.