Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Can't see geometric block when transfer a model from Matlab to Comsol
Posted 16.10.2012, 09:31 GMT-4 Interfacing, Results & Visualization Version 4.3a 0 Replies
Please login with a confirmed email address before reporting spam
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
Hello Alon Rozen
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.