function out = Model
%
% tiao.m
%
% Model exported on Aug 22 2015, 11:31 by COMSOL 5.0.0.243.
import com.comsol.model.*
import com.comsol.model.util.*
model = ModelUtil.create('Model');
model.modelPath('C:\Users\Administrator\Desktop');
model.modelNode.create('comp1');
model.geom.create('geom1', 2);
model.mesh.create('mesh1', 'geom1');
for i=1:5
tmp = rand(3,1);
r1 = tmp(1) * 0.03 + 0.02; % larger than 0.02, smaller than 0.02+0.03=0.05
x1 = tmp(2) * 0.9 + 0.05; % avoid out of the unit square
y1 = tmp(3) * 0.9 + 0.05; % avoid out of the unit square
eval(sprintf('model.geom(''geom1'').create(''c%d'', ''Circle'');model.geom(''geom1'').feature(''c%d'').set(''pos'', {''%u'' ''%u''});model.geom(''geom1'').feature(''c%d'').set(''r'', ''%u'');',i,i,x1,y1,i,r1));
end
model.geom('geom1').runPre('fin');
out = model;