In this work, a 2D contour generation algorithm is proposed for irregular regions. The contour of the physical domain is approximated by mesh segments using the known coordinates of the contour. For this purpose, the algorithm uses a repeating structure that analyzes the known irregular contour coordinates to approximate the physical domain contour by mesh segments. To this end, the algorithm calculates the slope of the line defined by the known point of the irregular contours and the neighboring vertices. In this way, the algorithm calculates the points of the line and its distance to the closest known nodes of the mesh, allowing to obtain the points of the approximate contour. This process is repeated until the approximate contour is obtained. Therefore, this approximate contour generation algorithm, from known nodes of a mesh, is suitable for describing meshes involving geometries with irregular contours and for calculating finite differences in numerical simulations. The contour is evaluated through three geometries, the difference between the areas delimited by the given contour and the approximate contour, the number of nodes and the number of internal points. It can be seen that the increase in geometry complexity implies the need for a greater number of nodes in the contour, generating more refined meshes that allow reaching differences in areas below 2%.
翻译:在此工程中, 为非正常区域建议了 2D 等距 生成算法 。 物理域的轮廓以已知的等距坐标的网状区段相近。 为此, 算法使用一个重复结构, 分析已知的异常等距坐标, 以网状区段近似物理域等距。 为此, 算法计算了由非正常等距点和相邻弯曲所定义的线条的斜度。 这样, 算法计算了线条的点及其与最接近的网格节点的距离, 以便获得近似等距点。 为此, 算法使用一个重复结构, 分析已知的不规则等距坐标坐标坐标, 以近于已知的网形等距坐标。 因此, 这个大约的等距代算法, 适合于描述由已知的等距点和相近的线的线的斜度, 并计算出在数字模拟中的定差数 。 轮廓通过三个地理座段、 由给定的轮廓所划定的区域与最接近的网格节点之间的差, 以便获得近的等距点的点点。 这一过程会重复, 。 在内部的变数中, 可以得出更精化区域中, 的变数 。