Gmsh中空心圆环的3-D啮合问题

问题描述 投票:1回答:1

我想创建一个空心或厚的半托形,为此,我使用以下命令:

SetFactory ("OpenCASCADE");
Torus (1) = {0,0,0, 170,30, Pi};
Torus (2) = {0,0,0, 170,20, Pi};
BooleanDifference (8) = {Volume {1}; Delete; } {Volume {2}; Delete; };

[当我尝试创建3D网格时,出现以下错误:

PLC Error: A segment and a facet intersect at point
Info: (122,229,106,391, -9.48334).
Info: Segment: [314,311] # -1 (0)
Info: Facet: [7,54,60] # 1
Error: Invalid boundary mesh (segment-facet intersection) on surface 1, intersection (122.229,106.391, -9.48334)
Error: No elements in volume 8

为什么会这样?如何解决?]

mesh discretization
1个回答
0
投票

您的几何定义没有问题。一切都是合法的。

但是,在GEO文件中,您没有指定所需的网格单元尺寸。而且,在这种特殊情况下,GMSH无法使用它选择的默认网格创建合适的四面体网格。

以下内容将使您在空心半托板上创建适当的四面体网格:

Mesh.CharacteristicLengthMin = 5;
Mesh.CharacteristicLengthMax = 10;


SetFactory ("OpenCASCADE");
Torus (1) = {0,0,0, 170,30, Pi};
Torus (2) = {0,0,0, 170,20, Pi};
BooleanDifference (8) = {Volume {1}; Delete; } {Volume {2}; Delete; };

这里,我手动指定了最小和最大元素大小。我的选择是任意的,主要取决于获得吸引人的视觉网格。

您可以在the corresponding section of GMSH documentation中了解更多有关指定网格单元尺寸的各种选项(以及网格单元尺寸本身的信息。)>

© www.soinside.com 2019 - 2024. All rights reserved.