Creating hollow sphere mesh with tetrahedral elements
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
With the help of this file in file exchange I am creating points on the inner and outer surface of a hollow sphere.
clear; clc; close all;
% Description: Attempt at generating a meshed spherical shell with
% tetrahedral elements
scale = 1.2;
generation = 3;
[P1,~] = generateSphereMesh(generation,'tet');
P2 = P1*scale;
X1 = P1(1,:); Y1 = P1(2,:); Z1 = P1(3,:);
X2 = P2(1,:); Y2 = P2(2,:); Z2 = P2(3,:);
X = [X1(:);X2(:)];
Y = [Y1(:);Y2(:)];
Z = [Z1(:);Z2(:)];
DT = delaunay(X,Y,Z);
figure;
XX = [X(:) Y(:) Z(:)];
tetramesh(DT,XX,'FaceAlpha',0.1)
Currently I get tetrahedrals in the entire sphere.
I need only the shell to be filled with tetrahedrals when I use delaunay Triangulation. Is it possible?
0 comentarios
Respuestas (1)
SOUMNATH PAUL
el 8 de Abr. de 2024
Hi,
It looks like you trying to generate a mesh that only fills the shell of a hollow sphere rather than the entire volume. The current method used is generating points on the inner and outer surfaces but then uses “Delaunay triangulation” on all these points which fills the entire volume between these surfaces with tetrahedral.
Kindly use “Constrained Delaunay triangulation” which will allow you to define the outer and inner surfaces as constraints ensuring the tetrahedra's are only generated between these boundaries.
Here is how you can do that, refer to the following link: https://in.mathworks.com/help/matlab/math/delaunay-triangulation.html#bspqi8a-12%22 (check the section "constrained delaunay triangulation")
Hope it helps!
Regards,
Soumnath
0 comentarios
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!