A recursive calculation method for the distance from a spatial point to a given point set
Through recursive calculation methods and balanced binary tree structure, the distance from space points to given points is quickly calculated, which solves the problem of slow computing speed in the existing technology, significantly reduces time costs, and improves the performance of computational fluid mechanics software.
Patent Information
- Application Number
- CN202411935665.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-26
AI Technical Summary
The prior art has a lower calculation speed in computational fluid mechanics, resulting in higher time costs for implicit assembly of overlapping grids and non-constant flow field simulations.
Recursive calculation method is adopted to initialize the geometric data of a given point set through a vector container, and generate a balanced binary tree search structure in a recursive mode, quickly calculate the distance between a spatial point and a given point set, and locate the nearest point, and finally release dynamic memory to optimize performance.
During the implicit assembly and non-static flow field simulation of overlapping grids on the order of millions to tens of millions, the calculation time cost of distance parameters is significantly reduced and the performance of computational fluid mechanics software is improved.