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.
Using Matlab Interface for defining the geometry
Posted 4 lug 2011, 11:10 GMT-4 Geometry Version 3.5a 0 Replies
Please login with a confirmed email address before reporting spam
I try to use the "geomsurf"-function in order to split a cylinder in 2 subdomains. Thereby, I oriented myself on the example given in the "Matlab Interface guide" in the chapter 3D Face Objects. I start and unfortunately already failed with a very simple example by using just the surface of a smaller cylinder as splitting surface (Later on there should be some structure on the surface of the smaller cylinder).
So I start by creating the smaller cylinder
r=2e-7;
[z,phi]=meshgrid(0:1e-8:2e-7,0:pi/32:pi*2);
x=r.*cos(phi);
y=r.*sin(phi);
f=geomsurf(x,y,z);
Creation of the bigger cylinder and building of the composite object
cyl=cylinder3(1.5e-6,2e-7)
g=geomcoerce('solid',{f,cyl});
But if I now try to plot g with
geomplot(g)
I received the warnings
Warning: Face 3 failed to be rendered.
Warning: Face 4 failed to be rendered.
And if I split the object (split(g)) the result contains only 1 subdomain.
Thanks in advance for any hints
Hello Frank Meyer
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.