how to turn a 3D matlab figure into a COMSOL 3D entity?

78 views
Skip to first unread message

COMSOL Russian User Group Forum

unread,
Apr 28, 2013, 10:46:57 AM4/28/13
to comsol...@googlegroups.com
I want to create a fibre with some claddings ! Is there anyone who knows
how to turn a 3D matlab figure into a COMSOL 3D entity?Here's the corresponding Matlab program !
function ellip_fibre
a=.5;b=.5;
for n=0:.04:0.2
[theta,z]=meshgrid(0:2*pi/50:2*pi,0:.005:1);
x=(a+n).*cos(theta);
y=sqrt(b^2+z.^3+n.^2).*sin(theta);
mesh(x,y,z)
axis equal
hold on
end
end

Pavel Dergachev

unread,
Apr 28, 2013, 10:51:08 AM4/28/13
to comsol...@googlegroups.com
Добрый вечер!

Это очень просто (для параметра n = 0.2):
MATLAB


COMSOL


Reply all
Reply to author
Forward
0 new messages