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

Please login with a confirmed email address before reporting spam

Hi,

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


0 Replies Last Post 4 juil. 2011, 11:10 UTC−4
COMSOL Moderator

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.