- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试从 gmsh 中的简单几何形状构建大型结构,并且我想使用结构化(四边形)网格。我首先创建该形状,然后根据需要经常复制和翻译它以构建我的最终结构。
问题是,即使我将原始形状的线和面定义为超限的,一旦我复制并翻译它,这个属性就会丢失。检查正方形的示例代码:
Point(1) = {0, 0, 0, 1};
Point(2) = {0, 1, 0, 1};
Point(3) = {1, 1, 0, 1};
Point(4) = {1, 0, 0, 1};
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(5) = {1, 2, 3, 4};
Plane Surface(6) = {5};
Transfinite Line {1, 2, 3, 4} = 10 Using Progression 1;
Transfinite Surface {6};
Recombine Surface {6};
Translate {0, 1, 0} {
Duplicata { Surface{6}; }
}
我获得了带有结构化网格的原始正方形,但复制的正方形没有此属性。当我复制表面时是否可以保留结构化网格?
EDIT: It seems that there is indeed no possibility to duplicate a structured volume or surface. The problem is that these properties are directly related to the mesh itself and not the geometry. And the mesh cannot be duplicated.
最佳答案
这是可能的。
您可以使用 GMSH Geometry.CopyMeshingMethod
属性来负责复制复制或平移几何实体的网格划分方法。默认情况下,它是关闭的。要打开它,您只需将以下行添加到 GEO 文件的开头即可。
Geometry.CopyMeshingMethod = 1;
现在,比较一下:
在 GMSH 3.0.5 上测试,但应该适用于任何现代版本。
关于2d - gmsh 中的重复结构化表面/网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49197879/
请问如何在 ubuntu 16.04LTS 上安装最新版本的 gmsh,即 gmsh 3.0.7?使用 sudo apt install gmsh 它只会安装 gmsh 2.10.1。 我也更新和升级
我正在尝试从 gmsh 中的简单几何形状构建大型结构,并且我想使用结构化(四边形)网格。我首先创建该形状,然后根据需要经常复制和翻译它以构建我的最终结构。 问题是,即使我将原始形状的线和面定义为超限的
我刚刚在 gmsh 中用直线连接了两个点,但如何撤消它? 最佳答案 GMSH 不是一个与其他工具非常相似的 CAD 工具。它提供了一个GUI;然而,并不是所有的操作都可以通过它完成,即使是那些可以完成
我维护a little Python package在用于网格表示的不同格式之间进行转换 à la 这些文件可能会变得很大,因此在使用 Python 读取它们时,高效地读取它们很重要。 最常用的格式之
我对 Python 非常陌生,如果这是一个愚蠢的问题,我很抱歉。无论如何,当我尝试运行我在 PyCharm (Python IDE) 上安装的包时,我收到此错误: Traceback (most re
我想创建一个空心或厚半圆环,为此,我使用以下命令: SetFactory ("OpenCASCADE"); Torus (1) = {0,0,0, 170,30, Pi}; Torus (2) = {
我正在尝试对由 3 种 Material 组成的复杂几何体进行网格划分,如下所示: 几何图形是从 *.stp 文件导入的。 我在地理文件中定义了几个物理表面和 3 个物理域: Physical Sur
我正在尝试编写一个脚本,该脚本将使用 Gmsh Python API 自动网格化几何形状以进行 CFD 分析。我遇到了一些问题: 首先,我希望能够编写 Gmsh 脚本文件 (.geo) 以便进行调试。
我是 fipy 的新手,所以如果我问一些应该显而易见的问题,请原谅我的无知。但是我无法运行一个已经存在的(并且在其他机器上工作)脚本,得到 EnvironmentError: Gmsh version
我已经生成了一个 gmsh 网格,并通过 Gmsh2D 导入到 FiPy 中。我想解决表面问题以设置边界条件,但我不知道如何操作。 在我在文档中发现的 FiPy 示例中,建议命名某些行以便稍后处理它们
我是一名优秀的程序员,十分优秀!