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

Can't see geometric block when transfer a model from Matlab to Comsol

$
0
0
Hi all,

I am running Comsol ver. 4.3 build 4.3.0.151 and Matlab 64 bit ver. r2012a.
I want to build a model in Matlab, to run it and then transfer the model from the Comsol server to Comsol client.
I tried the example in the Comsol help file and coded in Matlab the following (just a copy of the help file example):

model = ModelUtil.create('ImportExample');
model.geom.create('geom1',3);
model.geom('geom1').feature.create('blk1', 'Block');
model.geom('geom1').run;

if I use the following command in Matlab:
mphgeom(model,'geom1', 'facealpha', 0.5);
I get a graph of the block in Matlab figure.

When I transfer this model to Comsol via the command 'File -> Client Server -> Import Model from server...' the model is imported and I can see in the 'Model Builder' the appropriate definitions of the block.
Alas - I can't see the block on the Graphics window even when I push 'build all' as many time as I like :(

I just can't find a way to show anything on the Graphics window.

What am I missing?

Any help will be much appreciated,
Alon

Viewing all articles
Browse latest Browse all 26550

Trending Articles