WO2023077693A1 - Autocad-based method for positioning wind turbines on mountain wind farm - Google Patents

Autocad-based method for positioning wind turbines on mountain wind farm Download PDF

Info

Publication number
WO2023077693A1
WO2023077693A1 PCT/CN2022/078174 CN2022078174W WO2023077693A1 WO 2023077693 A1 WO2023077693 A1 WO 2023077693A1 CN 2022078174 W CN2022078174 W CN 2022078174W WO 2023077693 A1 WO2023077693 A1 WO 2023077693A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
points
positioning
wind turbine
coordinate
Prior art date
Application number
PCT/CN2022/078174
Other languages
French (fr)
Chinese (zh)
Inventor
王亚松
陈克鑫
赵泽光
史琬男
宿维忠
孙凯航
王晓东
汤学云
李利飞
聂磊
Original Assignee
中国电建集团河北省电力勘测设计研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国电建集团河北省电力勘测设计研究院有限公司 filed Critical 中国电建集团河北省电力勘测设计研究院有限公司
Publication of WO2023077693A1 publication Critical patent/WO2023077693A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Definitions

  • the invention relates to the technical field of wind turbine positioning in mountainous wind farms, in particular to an AutoCAD-based wind turbine positioning method in mountainous wind farms.
  • the layout design of wind turbines in mountain wind farms includes the following layout principles:
  • the range of influence of the fan is elliptical, and the range of influence between fans cannot overlap;
  • the technical problem to be solved in the present invention is to provide an AutoCAD-based fan positioning method for mountainous wind farms, which realizes fast and batch automatic fan placement in complex mountainous wind farms with a large number of elevation points and contour lines and irregular distribution , which greatly improves work efficiency and provides strong support for actual engineering design.
  • An AutoCAD-based method for positioning wind turbines in mountainous wind farms comprising the following steps:
  • the z coordinate grouping and sorting specifically includes the following steps:
  • the ellipse angle cutting method specifically includes the following steps:
  • described nine palace grid coordinate indexing method specifically comprises the following steps:
  • s is the step size
  • i x is the index value of point p in the x-axis direction
  • i y is the index value of point p in the y-axis direction
  • x min is the minimum coordinate of x in the grouping set L ap
  • y min is the grouping The smallest coordinate of y in the set L ap .
  • S5 specifically includes the following steps:
  • S6 specifically includes the following steps:
  • S6.3 specifically includes the following steps:
  • z pgag is the z coordinate of p gag ;
  • AutoCAD uses Visual Studio 2020 to create a new class library based on the .net framework3.5 version of the C# programming language, and introduces two acdbmgd.dll and acmgd.dll under the AutoCAD 2010 installation directory into the class library.
  • the present invention automatically extracts the height and trend of mountain beams in the site area by applying z-coordinate grouping and sorting, and automatically deploys machines according to self-defined layout parameters, which conforms to actual engineering design.
  • the present invention completes the rapid determination of the relationship between two ellipses under a large number of coordinate points, and simplifies the process of judging whether the influence ranges of the candidate wind turbine positioning point and the selected wind turbine positioning point intersect with each other by the ellipse angle cutting method.
  • the speed of the wind turbine positioning method has been improved.
  • the present invention completes the rapid judgment of the position relationship between the points under the massive coordinate points and the circle, and can quickly select all the points in the nine-square grid where the circle is located, and judge whether there is a slope, which simplifies the wind turbine positioning method the process of.
  • Fig. 1 is the flow chart of fan location method of the present invention
  • Fig. 2 is a schematic diagram of the layout range in the present invention.
  • Fig. 3 is a schematic diagram showing a grid according to the index value group in the present invention.
  • Fig. 4 is a schematic diagram of a nine-square grid coordinate set L ga in the present invention.
  • Fig. 5 is a schematic diagram of the scope of influence of the blower fan in the present invention.
  • Fig. 6 is a schematic diagram of the locations of selected fan positioning points and alternative fan positioning points in the present invention.
  • Fig. 7 is a schematic diagram of fans arranged according to L e in the present invention.
  • AutoCAD An AutoCAD-based method for positioning wind turbines in mountainous wind farms.
  • AutoCAD uses Visual Studio 2020 to create a new .net framework version 3.5 class library based on the C# programming language, and introduces acdbmgd.dll and acmgd in the AutoCAD 2010 installation directory into the class library.
  • dll two files use the api interface of AutoCAD.NET provided by the above two class libraries to carry out secondary development of AutoCAD.
  • the api interface provided by AutoCAD.NET, obtain the relevant information in the AutoCAD drawing, such as the three-dimensional coordinates of all the connection points of the polyline representing the contour line, the three-dimensional coordinates of the block representing the elevation point, and use the api interface
  • the vector in the vector is rotated and the included angle is calculated to calculate the layout position of the fan, and finally complete the positioning of the fan.
  • an AutoCAD-based method for positioning wind turbines in mountainous wind farms specifically includes the following steps:
  • S1.2 Contours are expressed in the form of multi-line segments, and elevation points are expressed in the form of blocks. Select the layout range, close the polyline P, search for all the multi-line segments and blocks in the drawing, and save the found multi-line segments and blocks. All points are put into the range point set L ap , and the expression form of the point is (x, y, z);
  • the graph shows the layout range of a certain mountain in Xuanhua, Hebei.
  • i x is the index value of point p in the x-axis direction
  • i y is the index value of point p in the y-axis direction.
  • (int) is a rounding function
  • the index of all points within the circular range covered by the installed fan with point p as the center is a nine-square grid.
  • the range of influence of the fan is set as an ellipse with the fan as the center, a as the major axis radius, and b as the minor axis radius.
  • the ellipticity ⁇ b ⁇ a; the horizontal interval of the fans is 2 ⁇ a , the vertical interval of the fan is 2 ⁇ b, and the rotation angle of the fan is set to ⁇ .
  • V 1 is the vector from the selected wind turbine positioning point to the candidate wind turbine positioning point.
  • the distance from the arc of the ellipse to the center of the circle is 1/4 arc, that is, the arc of 0° to 90° is sufficient.
  • the AutoCAD-based fan positioning method for mountain wind farms was applied in a mountain area in Xuanhua, Hebei province to generate a set of fan positioning points L e , and the fans were arranged according to the results.
  • the center of the ellipse is the position of the fan
  • the ellipse is the range of influence of the fan.
  • the present invention comprehensively considers the altitude of the mountainous wind farm, the range of influence between the fans, and the main conditions for the arrangement of fans with height differences within the installation range by applying the z-coordinate grouping and sorting, the ellipse angle cutting method, and the nine-square grid coordinate indexing method. , Realize the positioning of wind turbines in mountainous wind farms, automatically extract the height and trend of mountain beams in the site area, and automatically deploy machines according to custom layout parameters, which is in line with actual engineering design.

Abstract

An AutoCAD-based method for positioning wind turbines on a mountain wind farm. The method comprises: closing non-contour and non-elevation-point layers in an AutoCAD drawing, and only retaining contour and elevation-point layers, placing, into a range point set Lap, all points in contours and elevation points within an arrangement range, and setting a wind turbine positioning point set Le (S1); processing the points in the range point set Lap, and performing grouping and sorting on the basis of z coordinates, so as to obtain grouping sets Lg (S2); constructing a distance set Ld by using an elliptical angle cutting method (S3); solving, by using a 9-box-grid coordinate indexing method, index value sets of all points within a circular range covered by wind turbines mounted by taking a point p as the center of a circle, and solving a 9-box-grid coordinate set Lga which corresponds to the index value sets (S4); sequentially taking points on the basis of the order in which the grouping sets Lg in S2 are arranged, determining, by means of the elliptical angle cutting method in S3, whether the range of influence of an alternative wind turbine positioning point intersects with the range of influence of a selected wind turbine positioning point, and performing screening to obtain a wind turbine positioning point to be selected (S5); by means of the 9-box-grid coordinate indexing method in S4, determining whether there is a slope within the range in which wind turbines are arranged at the wind turbine positioning point to be selected in S5, and screening wind turbine positioning points (S6); and placing the wind turbine positioning points in S6 into the wind turbine positioning point set Le, and arranging wind turbines on the basis of the wind turbine positioning point set Le (S7).

Description

一种基于AutoCAD的山地风电场风机定位方法An AutoCAD-based positioning method for wind turbines in mountainous wind farms 技术领域technical field
本发明涉及山地风电场风机定位技术领域,尤其是一种基于AutoCAD的山地风电场风机定位方法。The invention relates to the technical field of wind turbine positioning in mountainous wind farms, in particular to an AutoCAD-based wind turbine positioning method in mountainous wind farms.
背景技术Background technique
山地风电场风机布置设计中,包括如下布置原则:The layout design of wind turbines in mountain wind farms includes the following layout principles:
1、从海拔高处向海拔低依次处布置风机;1. Arrange fans from high altitude to low altitude;
2、风机的影响范围为椭圆形,风机之间的影响范围不能重叠;2. The range of influence of the fan is elliptical, and the range of influence between fans cannot overlap;
3、安装风机需要考虑区域内是否有斜坡,判断斜坡的范围为圆形。3. When installing the fan, it is necessary to consider whether there is a slope in the area, and judge that the range of the slope is circular.
由于在山地风电场风机布置设计中,地形图内高程点、等高线数量繁多且分布不规则,手动定位工作量大、效率低下。因此,急需一种依托AutoCAD软件能够自动、快速、批量地实现风机定位的方法。Due to the large number of elevation points and contour lines in the topographic map and irregular distribution in the layout design of wind turbines in mountainous wind farms, the manual positioning workload is heavy and the efficiency is low. Therefore, there is an urgent need for a method that relies on AutoCAD software to automatically, quickly and batch-wise realize the positioning of wind turbines.
发明内容Contents of the invention
本发明需要解决的技术问题是提供一种基于AutoCAD的山地风电场风机定位方法,实现了快速、批量地在高程点、等高线数量繁多且分布不规则的复杂山地风电场中进行风机自动布置,极大地提高了工作效率,为实际工程的设计提供了强有力的支持。The technical problem to be solved in the present invention is to provide an AutoCAD-based fan positioning method for mountainous wind farms, which realizes fast and batch automatic fan placement in complex mountainous wind farms with a large number of elevation points and contour lines and irregular distribution , which greatly improves work efficiency and provides strong support for actual engineering design.
为解决上述技术问题,本发明所采用的技术方案是:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is:
一种基于AutoCAD的山地风电场风机定位方法,包括以下步骤:An AutoCAD-based method for positioning wind turbines in mountainous wind farms, comprising the following steps:
S1、关闭AutoCAD图纸中的非等高线以及非高程点图层,只保留等高线和高程点图层;将布置范围内等高线与高程点中所有的点放入范围点集L ap中,并设置风机定位点集合L eS1. Turn off the non-contour lines and non-elevation point layers in the AutoCAD drawing, and only keep the contour line and elevation point layers; put all the points in the contour lines and elevation points within the layout range into the range point set L ap , and set the fan positioning point set L e ;
S2、对范围点集L ap中的点进行处理,并根据z坐标分组排序,得到分组 集合L gS2. Process the points in the range point set L ap , and group and sort according to the z coordinates to obtain the group set L g ;
S3、应用椭圆角度切割法,构建距离集合L dS3. Using the ellipse angle cutting method to construct a distance set L d ;
S4、应用九宫格坐标索引法,求解以点p为圆心安装风机覆盖的圆形范围内所有点的索引值集合,并求解索引值集合对应的九宫格坐标集合L gaS4. Apply the Jiugongge coordinate indexing method to solve the index value set of all points within the circular range covered by the installed fan with the point p as the center, and solve the Jiugongge coordinate set L ga corresponding to the index value set;
S5、根据S2中分组集合L g排列顺序依次取点,根据S3中椭圆角度切割法判断备选风机定位点与已选风机定位点的影响范围是否相交,筛选得到待选风机定位点; S5, according to the arrangement order of the grouping set L g in S2, take points sequentially, judge whether the influence ranges of the candidate wind turbine positioning points and the selected wind turbine positioning points intersect according to the ellipse angle cutting method in S3, and screen to obtain the wind turbine positioning points to be selected;
S6、根据S4中九宫格坐标索引法,判断S5中的待选风机定位点布置风机范围内是否有斜坡,筛选风机定位点;S6, according to the nine-square grid coordinate indexing method in S4, judge whether there is a slope within the range of the wind turbine positioning points to be selected in S5, and screen the wind turbine positioning points;
S7、将S6中风机定位点放入风机定位点集合L e中,根据风机定位点集合L e布置风机。 S7. Put the fan positioning points in S6 into the fan positioning point set L e , and arrange the fans according to the fan positioning point set L e .
本发明技术方案的进一步改进在于:S2中,z坐标分组排序具体包括以下步骤:The further improvement of the technical solution of the present invention is that: in S2, the z coordinate grouping and sorting specifically includes the following steps:
S2.3.1根据z坐标对L ap中的点进行分组,将z坐标相同的点分为一组,放入分组子集L gi中; S2.3.1 Group the points in L ap according to the z coordinates, group the points with the same z coordinates into a group, and put them into the grouping subset L gi ;
S2.3.2根据z坐标对分组集合L g中c个分组子集L gi进行降序排列; S2.3.2 Arrange the c grouping subsets L gi in the grouping set L g in descending order according to the z coordinate;
S2.3.3根据x坐标值对分组集合L g中c个分组子集L gp进行升序排列; S2.3.3 Arrange the c grouping subsets L gp in the grouping set L g in ascending order according to the x coordinate value;
S2.3.4将S2.3.3排列后的分组子集L gp根据y坐标值对分组集合L g中c个分组子集L gp进行升序排列。 S2.3.4 Arranging the grouping subsets L gp arranged in S2.3.3 in ascending order according to the y coordinate value of the c grouping subsets L gp in the grouping set L g .
本发明技术方案的进一步改进在于:S3中,所述椭圆角度切割法具体包括以下步骤:The further improvement of the technical solution of the present invention is: in S3, the ellipse angle cutting method specifically includes the following steps:
S3.1设定长轴半径为a,短轴半径为b,旋转角度为α的椭圆;S3.1 Set the ellipse whose major axis radius is a, minor axis radius is b, and rotation angle is α;
S3.2以0.1°为步长将椭圆的0°到90°分为901份,计算每个角度椭圆上的点到圆心的距离,并放入距离集合L d中。 S3.2 Divide the ellipse from 0° to 90° into 901 parts with a step size of 0.1°, calculate the distance from the point on the ellipse at each angle to the center of the circle, and put it into the distance set L d .
本发明技术方案的进一步改进在于:S4中,所述九宫格坐标索引法具体 包括以下步骤:The further improvement of the technical solution of the present invention is: in S4, described nine palace grid coordinate indexing method specifically comprises the following steps:
S4.1将L ap中所有点在x轴方向和y方向进行索引值分组; S4.1 Group index values of all points in L ap in the x-axis direction and y-direction;
S4.2将L ap中所有的点按照索引值[i x,i y]分组为索引集合L xyS4.2 Group all points in L ap into index sets L xy according to index values [i x , i y ];
S4.3设定风机半径为r s,计算在以点p为圆心安装风机覆盖的圆形范围内点的索引值集合,包括x轴索引值集合为I xs和y轴索引值集合I ysS4.3 Set the fan radius as r s , calculate the index value set of points within the circular range covered by the installed fan with point p as the center, including the x-axis index value set I xs and the y-axis index value set I ys ;
S4.4构建九宫格坐标集合L gaS4.4 Construct a nine-square grid coordinate set L ga .
本发明技术方案的进一步改进在于:S4.1中,L ap中点p(x p,y p)索引值的公式如下所示: The further improvement of the technical solution of the present invention is: in S4.1, the formula of the index value of the midpoint p(x p , y p ) of L ap is as follows:
i x=(int)((x p-x min)/s) i x =(int)((x p -x min )/s)
i y=(int)((y p-y min)/s) i y =(int)((y p -y min )/s)
其中,s为步长,i x为p点在x轴方向的索引值,i y为p点在y轴方向的索引值,x min为分组集合L ap中x的最小坐标,y min为分组集合L ap中y的最小坐标。 Among them, s is the step size, i x is the index value of point p in the x-axis direction, i y is the index value of point p in the y-axis direction, x min is the minimum coordinate of x in the grouping set L ap , and y min is the grouping The smallest coordinate of y in the set L ap .
本发明技术方案的进一步改进在于:S5中具体包括以下步骤:The further improvement of the technical solution of the present invention is: S5 specifically includes the following steps:
S5.1设定计数变量i=1,取分组子集L gi,设定计数变量j=1,设定计数变量k=1; S5.1 Set counting variable i=1, take grouping subset L gi , set counting variable j=1, set counting variable k=1;
S5.2取备选风机定位点p ij=L gi[j],取已选风机定位点p e=L e[k],计算备选风机定位点p ij与已选风机定位点p e的距离d; S5.2 Take the alternative fan positioning point p ij = L gi [j], take the selected fan positioning point p e = L e [k], and calculate the relationship between the candidate fan positioning point p ij and the selected fan positioning point p e distance d;
S5.3判断距离d,如果d>2b,则继续判断,否则舍弃,j=j+1,k=1,返回S5.2;S5.3 judge the distance d, if d>2b, continue to judge, otherwise discard, j=j+1, k=1, return to S5.2;
S5.4构建距离向量V 1,计算向量V 0与V 1的夹角β; S5.4 Construct the distance vector V 1 , and calculate the angle β between the vector V 0 and V 1 ;
S5.5将β值转换为0~90°内的数值;S5.5 Convert the β value to a value within 0-90°;
S5.6取转换后的β值对应的距离集合L d中的距离d β,进行判断。 S5.6 Take the distance d β in the distance set L d corresponding to the converted β value, and make a judgment.
本发明技术方案的进一步改进在于:S6中具体包括以下步骤:The further improvement of the technical solution of the present invention is that: S6 specifically includes the following steps:
S6.1设定斜坡计算落差为h sS6.1 Set the slope to calculate the fall as h s ;
S6.2根据S4中九宫格坐标索引法,求解索引值集合对应的九宫格坐标集合L gaS6.2 According to the Jiugongge coordinate index method in S4, solve the Jiugongge coordinate set L ga corresponding to the index value set;
S6.3判断九宫格坐标集合L ga中是否存在两点高度大于落差h s的斜坡。 S6.3 Determine whether there are slopes whose heights of two points are greater than the drop h s in the nine-square grid coordinate set L ga .
本发明技术方案的进一步改进在于:S6.3中具体包括以下步骤:The further improvement of the technical solution of the present invention is: S6.3 specifically includes the following steps:
S6.3.1设定计数变量g=1;S6.3.1 Set counting variable g=1;
S6.3.2取点p gag=L ga[g]; S6.3.2 Take point p gag = L ga [g];
S6.3.3如果z pgag≠z pij并且|z pgag-z pij|≤h s,则将点p gag的z坐标z pgag放入高度集合L z中,其中,z pij是点p ij的z坐标; S6.3.3 If z pgag ≠ z pij and |z pgag - z pij | ≤ h s , put the z coordinate z pgag of point p gag into the height set L z , where z pij is the z coordinate of point p ij ;
S6.3.4取高度集合L z中的最大值z max与最小值z min,计算过程如下: S6.3.4 Take the maximum value z max and the minimum value z min in the height set L z , and the calculation process is as follows:
z min=min(z min,z pgag) z min = min(z min , z pgag )
z max=max(z max,z pgag) z max = max(z max , z pgag )
其中,z pgag是p gag的z坐标; where z pgag is the z coordinate of p gag ;
S6.3.5如果z max-z min>h s,则待选风机定位点布置风机范围内有斜坡,舍弃此待选风机定位点p ijS6.3.5 If z max -z min >h s , there is a slope within the range of the wind turbine positioning point to be selected, and the positioning point p ij of the wind turbine to be selected is discarded;
S6.3.6如果g≤C ga,则g=g+1,跳至S6.3.2; S6.3.6 If g≤C ga , then g=g+1, skip to S6.3.2;
S6.3.7待选风机定位点布置风机范围内无斜坡,此待选风机定位点p ij成为风机定位点p ijS6.3.7 Arrangement of the positioning point of the wind turbine to be selected There is no slope within the range of the wind turbine, and the positioning point p ij of the wind turbine to be selected becomes the positioning point p ij of the wind turbine.
本发明技术方案的进一步改进在于:AutoCAD通过使用Visual Studio 2020新建基于C#编程语言的.net framework3.5版本的类库,在类库中引入AutoCAD 2010安装目录下的acdbmgd.dll以及acmgd.dll两个文件,使用所述类库提供的AutoCAD.NET的api接口,进行二次开发。The further improvement of the technical solution of the present invention is that: AutoCAD uses Visual Studio 2020 to create a new class library based on the .net framework3.5 version of the C# programming language, and introduces two acdbmgd.dll and acmgd.dll under the AutoCAD 2010 installation directory into the class library. A file, using the AutoCAD.NET api interface provided by the class library for secondary development.
由于采用了上述技术方案,本发明取得的技术进步是:Owing to having adopted above-mentioned technical scheme, the technical progress that the present invention obtains is:
1、本发明通过应用z坐标分组排序,自动提取场址区域内山梁高度及走势,优按照自定义布置参数进行自动布机,符合实际的工程设计。1. The present invention automatically extracts the height and trend of mountain beams in the site area by applying z-coordinate grouping and sorting, and automatically deploys machines according to self-defined layout parameters, which conforms to actual engineering design.
2、本发明通过应用椭圆角度切割法,完成海量坐标点下两椭圆关系的快 速判定,简化了椭圆角度切割法判断备选风机定位点与已选风机定位点的影响范围是否相交的判断过程,提升了风机定位方法的速度。2. By using the ellipse angle cutting method, the present invention completes the rapid determination of the relationship between two ellipses under a large number of coordinate points, and simplifies the process of judging whether the influence ranges of the candidate wind turbine positioning point and the selected wind turbine positioning point intersect with each other by the ellipse angle cutting method. The speed of the wind turbine positioning method has been improved.
3、本发明通过应用九宫格坐标索引法,完成海量坐标点下点与圆位置关系的快速判断,可以快速选定圆所在九宫格内所有的点,并进行是否有斜坡的判断,简化了风机定位方法的过程。3. By applying the nine-square grid coordinate indexing method, the present invention completes the rapid judgment of the position relationship between the points under the massive coordinate points and the circle, and can quickly select all the points in the nine-square grid where the circle is located, and judge whether there is a slope, which simplifies the wind turbine positioning method the process of.
4、通过本发明的方法,实现了快速、批量地在高程点、等高线数量繁多且分布不规则的复杂山地风电场中进行自动布机,极大地提高了工作效率,为实际工程的设计提供了强有力的支持。4. Through the method of the present invention, the automatic deployment of machines in complex mountainous wind farms with a large number of elevation points and contour lines and irregular distribution is realized quickly and in batches, which greatly improves work efficiency and is a great contribution to the design of actual projects. Provided strong support.
附图说明Description of drawings
图1是本发明风机定位方法流程图;Fig. 1 is the flow chart of fan location method of the present invention;
图2是本发明中布置范围示意图;Fig. 2 is a schematic diagram of the layout range in the present invention;
图3是本发明中按照索引值组后呈现网格状示意图;Fig. 3 is a schematic diagram showing a grid according to the index value group in the present invention;
图4是本发明中九宫格坐标集合L ga示意图; Fig. 4 is a schematic diagram of a nine-square grid coordinate set L ga in the present invention;
图5是本发明中风机的影响范围示意图;Fig. 5 is a schematic diagram of the scope of influence of the blower fan in the present invention;
图6是本发明中已选风机定位点与备选风机定位点位置示意图;Fig. 6 is a schematic diagram of the locations of selected fan positioning points and alternative fan positioning points in the present invention;
图7是本发明中根据L e布置风机示意图。 Fig. 7 is a schematic diagram of fans arranged according to L e in the present invention.
具体实施方式Detailed ways
下面结合附图及实施例对本发明做进一步详细说明:Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail:
一种基于AutoCAD的山地风电场风机定位方法,AutoCAD使用Visual Studio 2020新建基于C#编程语言的.net framework3.5版本的类库,在类库中引入AutoCAD 2010安装目录下的acdbmgd.dll以及acmgd.dll两个文件,使用以上两个类库提供的AutoCAD.NET的api接口,对AutoCAD进行二次开发。An AutoCAD-based method for positioning wind turbines in mountainous wind farms. AutoCAD uses Visual Studio 2020 to create a new .net framework version 3.5 class library based on the C# programming language, and introduces acdbmgd.dll and acmgd in the AutoCAD 2010 installation directory into the class library. dll two files, use the api interface of AutoCAD.NET provided by the above two class libraries to carry out secondary development of AutoCAD.
利用C#编程语言,通过AutoCAD.NET提供的api接口,获取AutoCAD图纸中的相关信息,如代表等高线的多段线的所有连接点三维坐标,代表高程点的块的三维坐标,并利用api接口中的向量进行向量的旋转、求夹角等方法, 计算出风机布置位置,最终完成风机的定位。Using the C# programming language, through the api interface provided by AutoCAD.NET, obtain the relevant information in the AutoCAD drawing, such as the three-dimensional coordinates of all the connection points of the polyline representing the contour line, the three-dimensional coordinates of the block representing the elevation point, and use the api interface The vector in the vector is rotated and the included angle is calculated to calculate the layout position of the fan, and finally complete the positioning of the fan.
如图1所示,一种基于AutoCAD的山地风电场风机定位方法,具体包括以下步骤:As shown in Figure 1, an AutoCAD-based method for positioning wind turbines in mountainous wind farms specifically includes the following steps:
S1、关闭AutoCAD图纸中的非等高线以及非高程点图层,只保留等高线和高程点图层;将布置范围内等高线与高程点中所有的点放入范围点集L ap中,并设置风机定位点集合L e,具体包括以下步骤: S1. Turn off the non-contour lines and non-elevation point layers in the AutoCAD drawing, and only keep the contour line and elevation point layers; put all the points in the contour lines and elevation points within the layout range into the range point set L ap , and set the fan positioning point set L e , which specifically includes the following steps:
S1.1关闭AutoCAD图纸中的非等高线以及非高程点图层,只保留等高线和高程点图层;S1.1 Turn off the non-contour lines and non-elevation point layers in the AutoCAD drawing, and only keep the contour line and elevation point layers;
S1.2等高线的表现形式为多线段,高程点的表现形式为块,选择布置范围,闭合多段线P,查找图纸中所有的多线段、块,并将查找到的多线段和块的所有点放入范围点集L ap中,点的表现形式为(x,y,z); S1.2 Contours are expressed in the form of multi-line segments, and elevation points are expressed in the form of blocks. Select the layout range, close the polyline P, search for all the multi-line segments and blocks in the drawing, and save the found multi-line segments and blocks. All points are put into the range point set L ap , and the expression form of the point is (x, y, z);
如图2所示,图形为河北宣化某山地的布置范围。As shown in Figure 2, the graph shows the layout range of a certain mountain in Xuanhua, Hebei.
S1.3设置风机定位点集合L e,大小为f nS1.3 Set the fan positioning point set L e , the size of which is f n .
S2、对范围点集L ap中的点进行处理,并根据z坐标分组排序,得到分组集合L gS2. Process the points in the range point set L ap , and group and sort according to the z coordinates to obtain the group set L g ;
S2.1对L ap内的点进行去重,排除L ap中的重复点; S2.1 deduplicates the points in the L ap , and excludes the duplicate points in the L ap ;
S2.2对L ap内的点进行过滤,排除L ap中不在闭合多段线P中的点; S2.2 Filter the points in L ap , and exclude the points in L ap that are not in the closed polyline P;
S2.3对L ap内的点进行z坐标分组排序,得到分组集合L g,具体包括以下步骤: S2.3 Perform z-coordinate grouping and sorting on the points in L ap to obtain the grouping set L g , which specifically includes the following steps:
S2.3.1根据z坐标对L ap中的点进行分组,将z坐标相同的点分为一组,放入分组子集L gi中,c个分组子集L gi构成分组集合L g,其中,c为正整数,i为1~c之间的正整数; S2.3.1 Group the points in L ap according to the z coordinates, divide the points with the same z coordinates into a group, put them into the grouping subset L gi , and c grouping subsets L gi constitute the grouping set L g , where, c is a positive integer, i is a positive integer between 1 and c;
S2.3.2根据z坐标对分组集合L g中c个分组子集L gi进行降序排列; S2.3.2 Arrange the c grouping subsets L gi in the grouping set L g in descending order according to the z coordinate;
S2.3.3分别根据x坐标值对分组集合L g中c个分组子集L gp进行升序排列后,得到集合L gx,比较判断每个分组子集中的第一个点x坐标,并取x的最 小坐标点x minS2.3.3 After sorting the c subsets L gp of the grouping set L g in ascending order according to the x coordinate value, the set L gx is obtained, compare and judge the x coordinate of the first point in each grouping subset, and take the value of x Minimum coordinate point x min ;
S2.3.4分别根据y坐标值对分组集合L g中c个分组子集L gp进行升序排列后,得到集合L gy,比较判断每个分组子集中的第一个点y坐标,并取y的最小坐标点y minS2.3.4 After sorting the c subsets L gp in the grouping set L g in ascending order according to the y coordinate value, the set L gy is obtained, compare and judge the y coordinate of the first point in each grouping subset, and take the value of y Minimum coordinate point y min .
S3、应用椭圆角度切割法,构建距离集合L dS3. Using the ellipse angle cutting method to construct a distance set L d ;
S3.1设定圆心为(0,0,0),长轴半径为a,短轴半径为b,旋转角度为α的椭圆;S3.1 Set the center of the circle as (0,0,0), the radius of the major axis is a, the radius of the minor axis is b, and the rotation angle is α;
S3.2以0.1°为步长将椭圆的0°到90°分为901份,计算每个角度椭圆上的点到圆心的距离,并放入距离集合L d中。 S3.2 Divide the ellipse from 0° to 90° into 901 parts with a step size of 0.1°, calculate the distance from the point on the ellipse at each angle to the center of the circle, and put it into the distance set L d .
S4、应用九宫格坐标索引法,求解以点p为圆心安装风机覆盖的圆形范围内所有点的索引值集合,并求解索引值集合对应的九宫格坐标集合L gaS4. Apply the Jiugongge coordinate indexing method to solve the index value set of all points within the circular range covered by the installed fan with the point p as the center, and solve the Jiugongge coordinate set L ga corresponding to the index value set;
S4.1将L ap中所有点在x轴方向和y方向进行分别进行索引值分组,设定分组步长为s,则点p(x p,y p)的索引值公式如下所示: S4.1 Group the index values of all points in L ap in the x-axis direction and y-direction respectively, set the grouping step size as s, then the index value formula of point p(x p , y p ) is as follows:
i x=(int)((x p-x min)/s) i x =(int)((x p -x min )/s)
i y=(int)((y p-y min)/s) i y =(int)((y p -y min )/s)
其中,i x为p点在x轴方向的索引值,i y为p点在y轴方向的索引值。 Among them, i x is the index value of point p in the x-axis direction, and i y is the index value of point p in the y-axis direction.
S4.2将L ap中所有的点按照索引值[i x,i y]分组为索引集合L xyS4.2 Group all points in L ap into index sets L xy according to index values [i x , i y ];
如图所示3,L ap中所有的点按照索引值[i x,i y]分组后呈现网格状,索引集合L xy的格式为[x,y,L xyp],其中x为i x的值,y为i y的值,L xyp是相同[i x,i y]下的点的集合; As shown in Figure 3, all the points in L ap are grouped according to the index value [i x , i y ] and present a grid shape. The format of the index set L xy is [x, y, L xyp ], where x is i x The value of , y is the value of i y , L xyp is the set of points under the same [i x , i y ];
S4.3设定风机半径为r s,计算在以点p为圆心安装风机覆盖的圆形范围内点的索引值集合,包括x轴索引值集合为I xs和y轴索引值集合I ysS4.3 Set the fan radius as r s , calculate the index value set of points within the circular range covered by the installed fan with point p as the center, including the x-axis index value set I xs and the y-axis index value set I ys ;
S4.3.1设定x轴索值引集合为I xs,大小为C ixs,设定y轴索引值集合为I ys,大小为C iysS4.3.1 Set the set of x-axis index values as I xs with a size of C ixs , set the set of y-axis index values as I ys with a size of C iys ;
S4.3.2将p的索引值[i x,i y]中的i x放入x轴索引值集合I xs,将i y放入y轴 索引值集合I ysS4.3.2 Put i x in the index value [i x , i y ] of p into the x-axis index value set I xs , put i y into the y-axis index value set I ys ;
S4.3.3计算以点p为圆心安装风机覆盖的半径为r s的圆形上最左侧点x轴方向索引i xmin、最右侧点x轴方向索引i xmax,并放入x轴索引值集合I xs,计算最下侧点y轴方向索引i ymin、最上侧点y轴方向索引i ymax,并放入y轴索引值集合为I ys,计算x轴索引值集合I xs大小C ixs、y轴索引值集合I ys大小为C iys,计算过程如下所示: S4.3.3 Calculate the x-axis direction index i xmin of the leftmost point and the x-axis direction index i xmax of the rightmost point on the circle of radius r s covered by the installed fan with point p as the center, and put the x-axis index value Set I xs , calculate the y-axis direction index i ymin of the lowest point, and the y-axis direction index i ymax of the uppermost point, and put the y-axis index value set as I ys , calculate the x-axis index value set I xs size C ixs , The size of the y-axis index value set I ys is C iys , and the calculation process is as follows:
i xmin=(int)((x p-r s-x min)/s) i xmin =(int)((x p -r s -x min )/s)
i xmax=(int)((x p+r s-x min)/s) i xmax =(int)((x p +r s -x min )/s)
i ymin=(int)((y p-r s-y min)/s) i ymin =(int)((y p -r s -y min )/s)
i ymax=(int)((y p+r s-y min)/s) i ymax =(int)((y p +r s -y min )/s)
C ixs=i xmax-i xmin C ixs =i xmax -i xmin
C iys=i ymax-i ymin C iys =i ymax -i ymin
式中,(int)为取整函数。In the formula, (int) is a rounding function.
S4.3.4去除x轴索引集合I xs、y轴索引集合I ys的重复项。 S4.3.4 Remove duplicate items of the x-axis index set I xs and the y-axis index set I ys .
S4.4构建九宫格坐标集合L ga,大小为C gaS4.4 Construct a nine-square grid coordinate set L ga , the size of which is C ga ;
如图4所示,在步长s与半径r s的比例为1:1~1:1.5之间并且点p位置合适时,以点p为圆心安装风机覆盖的圆形范围内所有点的索引方格为九宫格。 As shown in Figure 4, when the ratio of the step size s to the radius r s is between 1:1 and 1:1.5 and the position of point p is appropriate, the index of all points within the circular range covered by the installed fan with point p as the center The square grid is a nine-square grid.
S4.4.1构建九宫格坐标集合L gaS4.4.1 Construct the nine-square grid coordinate set L ga ;
S4.4.2.设定初始值,设定计数量m=1,n=1;S4.4.2. Set the initial value, set the counting quantity m=1, n=1;
S4.4.3取y m=I ys[m]; S4.4.3 Take y m = I ys [m];
S4.4.4取x m=I xs[n]; S4.4.4 take x m = I xs [n];
S4.4.5将L ap[i x=x m,i y=y m]放入L gaS4.4.5 Put L ap [i x = x m , i y = y m ] into L ga ;
S4.4.6n=n+1,如果n≤C ixs,则跳至S4.4.4; S4.4.6n=n+1, if n≤C ixs , skip to S4.4.4;
S4.4.7m=m+1,如果m≤C iys,则跳至S4.4.3; S4.4.7m=m+1, if m≤C iys , skip to S4.4.3;
S4.4.8得到大小为C ga的九宫格坐标集合L ga,如图4所示,九宫格坐标集 合L ga包括所有阴影范围内的点。 S4.4.8 Obtain the nine-square grid coordinate set L ga with size C ga , as shown in Figure 4 , the nine-square grid coordinate set L ga includes all points within the shaded range.
S5、根据S2中分组集合L g排列顺序依次取点,根据S3中椭圆角度切割法判断备选风机定位点与已选风机定位点的影响范围是否相交,筛选得到待选风机定位点; S5, according to the arrangement order of the grouping set L g in S2, take points sequentially, judge whether the influence ranges of the candidate wind turbine positioning points and the selected wind turbine positioning points intersect according to the ellipse angle cutting method in S3, and screen to obtain the wind turbine positioning points to be selected;
如图所示5,设定风机的影响范围为以风机为圆心,以a为长轴半径,以b为短轴半径的椭圆,椭圆率ρ=b÷a;风机的水平间隔为2×a,风机的垂直间隔为2×b,设定风机的旋转角度为α。As shown in Figure 5, the range of influence of the fan is set as an ellipse with the fan as the center, a as the major axis radius, and b as the minor axis radius. The ellipticity ρ=b÷a; the horizontal interval of the fans is 2×a , the vertical interval of the fan is 2×b, and the rotation angle of the fan is set to α.
单位向量V t=[x=1,y=0],单位向量逆时针V t旋转α得到椭圆参考向量V 0The unit vector V t =[x=1, y=0], and the unit vector V t is rotated counterclockwise by α to obtain the ellipse reference vector V 0 .
风机定位点集合L e中,选择第一个风机定位点时无需进行风机定位点的影响范围判断。 In the wind turbine positioning point set L e , when selecting the first wind turbine positioning point, it is not necessary to judge the influence range of the wind turbine positioning point.
确保风机定位点的影响范围不相交,具体包括以下步骤:Ensure that the influence ranges of the wind turbine positioning points do not intersect, including the following steps:
S5.1设定计数变量i=1,取分组子集L gi,设定计数变量j=1,设定计数变量k=1; S5.1 Set counting variable i=1, take grouping subset L gi , set counting variable j=1, set counting variable k=1;
S5.2取备选风机定位点p ij=L gi[j],取已选风机定位点p e=L e[k],计算备选风机定位点p ij与已选风机定位点p e的距离d; S5.2 Take the alternative fan positioning point p ij = L gi [j], take the selected fan positioning point p e = L e [k], and calculate the relationship between the candidate fan positioning point p ij and the selected fan positioning point p e distance d;
S5.3判断距离d,如果d>2b,则继续判断,否则因距离太近舍弃备选风机定位点,重新选取备选风机定位点与已选风机定位点进行比较,j=j+1,k=1,返回S5.2;S5.3 Judging the distance d, if d>2b, continue to judge, otherwise discard the alternative wind turbine positioning point because the distance is too short, reselect the alternative wind turbine positioning point and compare the selected wind turbine positioning point, j=j+1, k=1, return to S5.2;
S5.4构建距离向量V 1,计算向量V 0与V 1的夹角β,并保留1位小数; S5.4 Construct the distance vector V 1 , calculate the angle β between the vector V 0 and V 1 , and keep 1 decimal place;
如图6所示,V 1为已选风机定位点指向备选风机定位点的向量。 As shown in Figure 6, V 1 is the vector from the selected wind turbine positioning point to the candidate wind turbine positioning point.
S5.5将β值转换为0~90°内的数值;S5.5 Convert the β value to a value within 0-90°;
根据椭圆分别关于长轴和短轴对称,椭圆圆弧到圆心的距离取1/4圆弧,即0~90°圆弧即可。According to the symmetry of the ellipse about the major axis and the minor axis respectively, the distance from the arc of the ellipse to the center of the circle is 1/4 arc, that is, the arc of 0° to 90° is sufficient.
S5.5.1若β<0,则β=β+360;S5.5.1 If β<0, then β=β+360;
S5.5.2若β>180,则β=β-180;S5.5.2 If β>180, then β=β-180;
S5.5.3若β>90,则β=180-β;S5.5.3 If β>90, then β=180-β;
S5.6取转换后的β值对应的距离集合L d中的距离d β,进行判断,若d>2×d β,说明影响范围不相交,则备选风机定位点p ij成为待选风机定位点p ij,否则因距离太近舍弃备选风机定位点,重新选取备选风机定位点与已选风机定位点进行比较,j=j+1,k=1,返回S5.2。 S5.6 Take the distance d β in the distance set L d corresponding to the converted β value, and make a judgment. If d>2×d β , it means that the influence ranges are disjoint, and the candidate wind turbine positioning point p ij becomes the wind turbine to be selected Orientation point p ij , otherwise, discard the alternative wind turbine anchor point because the distance is too short, reselect the alternative wind turbine anchor point and compare it with the selected wind turbine anchor point, j=j+1, k=1, return to S5.2.
S6、根据S4中九宫格坐标索引法,判断S5中的待选风机定位点p ij布置风机范围内是否有斜坡,筛选风机定位点; S6. According to the nine-square grid coordinate indexing method in S4, judge whether there is a slope within the fan range of the fan positioning point p ij to be selected in S5, and screen the fan positioning point;
S6.1设定斜坡计算落差为h sS6.1 Set the slope to calculate the fall as h s ;
S6.2根据S4中九宫格坐标索引法,求解以待选风机定位点p ij为圆心安装风机覆盖的圆形范围内所有点的索引值集合,并求解索引值集合对应的九宫格坐标集合L gaS6.2 According to the Jiugongge coordinate indexing method in S4, solve the index value set of all points within the circular range covered by the installed fan with the positioning point p ij of the fan to be selected as the center, and solve the Jiugongge coordinate set L ga corresponding to the index value set;
S6.3判断九宫格坐标集合L ga中是否存在两点高度大于落差h s的斜坡; S6.3 Judging whether there are two slopes whose height is greater than the drop hs in the Jiugongge coordinate set Lga ;
S6.3.1设定计数变量g=1;S6.3.1 Set counting variable g=1;
S6.3.2取点p gag=L ga[g]; S6.3.2 Take point p gag = L ga [g];
S6.3.3如果z pgag≠z pij并且|z pgag-z pij|≤h s,则将点p gag的z坐标z pgag放入高度集合L z中,其中,z pij是点p ij的z坐标。 S6.3.3 If z pgag ≠ z pij and |z pgag - z pij | ≤ h s , put the z coordinate z pgag of point p gag into the height set L z , where z pij is the z coordinate of point p ij .
S6.3.4取高度集合L z中的最大值z max与最小值z min,计算过程如下: S6.3.4 Take the maximum value z max and the minimum value z min in the height set L z , and the calculation process is as follows:
z min=min(z min,z pgag) z min = min(z min , z pgag )
z max=max(z max,z pgag) z max = max(z max , z pgag )
S6.3.5如果z max-z min>h s,则待选风机定位点布置风机范围内有斜坡,舍弃此待选风机定位点p ij,并进行S5; S6.3.5 If z max -z min >h s , there is a slope within the range of the wind turbine positioning point to be selected, discard the positioning point p ij of the wind turbine to be selected, and proceed to S5;
S6.3.6如果g≤C ga,则g=g+1,跳至S6.3.2; S6.3.6 If g≤C ga , then g=g+1, skip to S6.3.2;
S6.3.7待选风机定位点布置风机范围内无斜坡,此待选风机定位点p ij成为风机定位点p ijS6.3.7 Arrangement of the positioning point of the wind turbine to be selected There is no slope within the range of the wind turbine, and the positioning point p ij of the wind turbine to be selected becomes the positioning point p ij of the wind turbine.
S7、将S6中风机定位点p ij放入风机定位点集合L e中,根据风机定位点集 合L e布置风机; S7. Put the fan positioning point p ij in S6 into the fan positioning point set L e , and arrange the fans according to the fan positioning point set L e ;
S7.1将风机定位点放入风机定位点集合L e中; S7.1 put the wind turbine positioning point into the wind turbine positioning point set L e ;
S7.2判断风机数量f是否达到需要布置的风机数量f n,若f=f n,根据L e布置风机,若f<f n,风机数量f=f+1,则进行S5。 S7.2 Judging whether the number f of fans reaches the number f n of fans to be arranged, if f=f n , arrange the fans according to L e , if f<f n , the number of fans f=f+1, go to S5.
如图7所示,河北宣化某山地应用基于AutoCAD的山地风电场风机定位方法,生成风机定位点集合L e,根据结果布置风机,其中,椭圆圆心为是风机位置,椭圆为风机影响范围。 As shown in Fig. 7, the AutoCAD-based fan positioning method for mountain wind farms was applied in a mountain area in Xuanhua, Hebei Province to generate a set of fan positioning points L e , and the fans were arranged according to the results. Among them, the center of the ellipse is the position of the fan, and the ellipse is the range of influence of the fan.
综上所述,本发明通过应用z坐标分组排序、椭圆角度切割法、九宫格坐标索引法,综合考虑了山地风电场海拔高度、风机间的影响范围、安装范围内高度差的风机布置的主要条件,实现了山地风电场风机定位,自动提取场址区域内山梁高度及走势,优按照自定义布置参数进行自动布机,符合实际的工程设计。In summary, the present invention comprehensively considers the altitude of the mountainous wind farm, the range of influence between the fans, and the main conditions for the arrangement of fans with height differences within the installation range by applying the z-coordinate grouping and sorting, the ellipse angle cutting method, and the nine-square grid coordinate indexing method. , Realize the positioning of wind turbines in mountainous wind farms, automatically extract the height and trend of mountain beams in the site area, and automatically deploy machines according to custom layout parameters, which is in line with actual engineering design.

Claims (9)

  1. 一种基于AutoCAD的山地风电场风机定位方法,其特征在于:包括以下步骤:A method for positioning wind turbines in mountainous wind farms based on AutoCAD is characterized in that: comprising the following steps:
    S1、关闭AutoCAD图纸中的非等高线以及非高程点图层,只保留等高线和高程点图层;将布置范围内等高线与高程点中所有的点放入范围点集L ap中,并设置风机定位点集合L eS1. Turn off the non-contour lines and non-elevation point layers in the AutoCAD drawing, and only keep the contour line and elevation point layers; put all the points in the contour lines and elevation points within the layout range into the range point set L ap , and set the fan positioning point set L e ;
    S2、对范围点集L ap中的点进行处理,并根据z坐标分组排序,得到分组集合L gS2. Process the points in the range point set L ap , and group and sort according to the z coordinates to obtain the group set L g ;
    S3、应用椭圆角度切割法,构建距离集合L dS3. Using the ellipse angle cutting method to construct a distance set L d ;
    S4、应用九宫格坐标索引法,求解以点p为圆心安装风机覆盖的圆形范围内所有点的索引值集合,并求解索引值集合对应的九宫格坐标集合L gaS4. Apply the Jiugongge coordinate indexing method to solve the index value set of all points within the circular range covered by the installed fan with the point p as the center, and solve the Jiugongge coordinate set L ga corresponding to the index value set;
    S5、根据S2中分组集合L g排列顺序依次取点,根据S3中椭圆角度切割法判断备选风机定位点与已选风机定位点的影响范围是否相交,筛选得到待选风机定位点; S5, according to the arrangement order of the grouping set L g in S2, take points sequentially, judge whether the influence ranges of the candidate wind turbine positioning points and the selected wind turbine positioning points intersect according to the ellipse angle cutting method in S3, and screen to obtain the wind turbine positioning points to be selected;
    S6、根据S4中九宫格坐标索引法,判断S5中的待选风机定位点布置风机范围内是否有斜坡,筛选风机定位点;S6, according to the nine-square grid coordinate indexing method in S4, judge whether there is a slope within the range of the wind turbine positioning points to be selected in S5, and screen the wind turbine positioning points;
    S7、将S6中风机定位点放入风机定位点集合L e中,根据风机定位点集合L e布置风机。 S7. Put the fan positioning points in S6 into the fan positioning point set L e , and arrange the fans according to the fan positioning point set L e .
  2. 根据权利要求1所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S2中,z坐标分组排序具体包括以下步骤:A kind of AutoCAD-based fan positioning method for mountain wind farms according to claim 1, characterized in that: in S2, the z-coordinate grouping and sorting specifically includes the following steps:
    S2.3.1根据z坐标对L ap中的点进行分组,将z坐标相同的点分为一组,放入分组子集L gi中; S2.3.1 Group the points in L ap according to the z coordinates, group the points with the same z coordinates into a group, and put them into the grouping subset L gi ;
    S2.3.2根据z坐标对分组集合L g中c个分组子集L gi进行降序排列; S2.3.2 Arrange the c grouping subsets L gi in the grouping set L g in descending order according to the z coordinate;
    S2.3.3分别根据x坐标值对分组集合L g中c个分组子集L gp进行升序排列; S2.3.3 Arrange the c grouping subsets L gp in the grouping set L g in ascending order respectively according to the x coordinate value;
    S2.3.4分别根据y坐标值对分组集合L g中c个分组子集L gp进行升序排列。 S2.3.4 Arrange the c grouping subsets L gp in the grouping set L g in ascending order respectively according to the y coordinate value.
  3. 根据权利要求1所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S3中,所述椭圆角度切割法具体包括以下步骤:A kind of AutoCAD-based fan positioning method for mountain wind farm according to claim 1, characterized in that: in S3, the ellipse angle cutting method specifically comprises the following steps:
    S3.1设定长轴半径为a,短轴半径为b,旋转角度为α的椭圆;S3.1 Set the ellipse whose major axis radius is a, minor axis radius is b, and rotation angle is α;
    S3.2以0.1°为步长将椭圆的0°到90°分为901份,计算每个角度椭圆上的点到圆心的距离,并放入距离集合L d中。 S3.2 Divide the ellipse from 0° to 90° into 901 parts with a step size of 0.1°, calculate the distance from the point on the ellipse with each angle to the center of the circle, and put it into the distance set L d .
  4. 根据权利要求1所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S4中,所述九宫格坐标索引法具体包括以下步骤:A kind of AutoCAD-based fan positioning method for mountain wind farms according to claim 1, characterized in that: in S4, the nine-square grid coordinate index method specifically includes the following steps:
    S4.1将L ap中所有点在x轴方向和y方向进行索引值分组; S4.1 Group index values of all points in L ap in the x-axis direction and y-direction;
    S4.2将L ap中所有的点按照索引值[i x,i y]分组为索引集合L xyS4.2 Group all the points in L ap into an index set L xy according to the index value [i x , i y ];
    S4.3设定风机半径为r s,计算在以点p为圆心安装风机覆盖的圆形范围内点的索引值集合,包括x轴索引值集合为I xs和y轴索引值集合I ysS4.3 Set the fan radius as r s , calculate the index value set of points within the circular range covered by the installed fan with point p as the center, including the x-axis index value set I xs and the y-axis index value set I ys ;
    S4.4构建九宫格坐标集合L gaS4.4 Construct a nine-square grid coordinate set L ga .
  5. 根据权利要求4所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S4.1中,L ap中点p(x p,y p)索引值的公式如下所示: A kind of method for positioning wind turbines in mountainous wind farms based on AutoCAD according to claim 4, characterized in that: in S4.1, the formula of the index value of the L ap midpoint p (x p , y p ) is as follows:
    i x=(int)((x p-x min)/s) i x =(int)((x p -x min )/s)
    i y=(int)((y p-y min)/s) i y =(int)((y p -y min )/s)
    其中,s为步长,i x为p点在x轴方向的索引值,i y为p点在y轴方向的索引值,x min为分组集合L ap中x的最小坐标,y min为分组集合L ap中y的最小坐标。 Among them, s is the step size, i x is the index value of point p in the x-axis direction, i y is the index value of point p in the y-axis direction, x min is the minimum coordinate of x in the grouping set L ap , and y min is the grouping The smallest coordinate of y in the set L ap .
  6. 根据权利要求1所述的一种基于AutoCAD的山地风电场风机定位方法, 其特征在于:S5中具体包括以下步骤:A kind of AutoCAD-based fan positioning method for mountain wind farm according to claim 1, characterized in that: S5 specifically comprises the following steps:
    S5.1设定计数变量i=1,取分组子集L gi,设定计数变量j=1,设定计数变量k=1; S5.1 Set counting variable i=1, take grouping subset L gi , set counting variable j=1, set counting variable k=1;
    S5.2取备选风机定位点p ij=L gi[j],取已选风机定位点p e=L e[k],计算备选风机定位点p ij与已选风机定位点p e的距离d; S5.2 Take the alternative fan positioning point p ij = L gi [j], take the selected fan positioning point p e = L e [k], and calculate the relationship between the candidate fan positioning point p ij and the selected fan positioning point p e distance d;
    S5.3判断距离d,如果d>2b,则继续判断,否则舍弃,j=j+1,k=1,返回S5.2;S5.3 judge the distance d, if d>2b, continue to judge, otherwise discard, j=j+1, k=1, return to S5.2;
    S5.4构建距离向量V 1,计算向量V 0与V 1的夹角β; S5.4 Construct the distance vector V 1 , and calculate the angle β between the vector V 0 and V 1 ;
    S5.5将β值转换为0~90°内的数值;S5.5 Convert the β value to a value within 0-90°;
    S5.6取转换后的β值对应的距离集合L d中的距离d β,进行判断。 S5.6 Take the distance d β in the distance set L d corresponding to the converted β value, and make a judgment.
  7. 根据权利要求1所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S6中具体包括以下步骤:A kind of AutoCAD-based fan positioning method in mountain wind farm according to claim 1, characterized in that: S6 specifically comprises the following steps:
    S6.1设定斜坡计算落差为h sS6.1 Set the slope to calculate the fall as h s ;
    S6.2根据S4中九宫格坐标索引法,求解索引值集合对应的九宫格坐标集合L gaS6.2 According to the Jiugongge coordinate index method in S4, solve the Jiugongge coordinate set L ga corresponding to the index value set;
    S6.3判断九宫格坐标集合L ga中是否存在两点高度大于落差h s的斜坡。 S6.3 Determine whether there are slopes whose heights of two points are greater than the drop h s in the nine-square grid coordinate set L ga .
  8. 根据权利要求7所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:S6.3中具体包括以下步骤:A kind of AutoCAD-based fan positioning method for mountain wind farm according to claim 7, characterized in that: S6.3 specifically comprises the following steps:
    S6.3.1设定计数变量g=1;S6.3.1 Set counting variable g=1;
    S6.3.2取点p gag=L ga[g]; S6.3.2 Take point p gag = L ga [g];
    S6.3.3如果z pgag≠z pij并且|z pgag-z pij|≤h s,则将点p gag的z坐标z pgag放入高度集合L z中,其中,z pij是点p ij的z坐标; S6.3.3 If z pgag ≠ z pij and |z pgag - z pij | ≤ h s , put the z coordinate z pgag of point p gag into the height set L z , where z pij is the z coordinate of point p ij ;
    S6.3.4取高度集合L z中的最大值z max与最小值z min,计算过程如下: S6.3.4 Take the maximum value z max and the minimum value z min in the height set L z , and the calculation process is as follows:
    z min=min(z min,z pgag) z min = min(z min , z pgag )
    z max=max(z max,z pgag) z max = max(z max , z pgag )
    其中,z pgag是p gag的z坐标; where z pgag is the z coordinate of p gag ;
    S6.3.5如果z max-z min>h s,则待选风机定位点布置风机范围内有斜坡,舍弃此待选风机定位点p ijS6.3.5 If z max -z min >h s , there is a slope within the range of the wind turbine positioning point to be selected, and the positioning point p ij of the wind turbine to be selected is discarded;
    S6.3.6如果g≤C ga,则g=g+1,跳至S6.3.2; S6.3.6 If g≤C ga , then g=g+1, skip to S6.3.2;
    S6.3.7待选风机定位点布置风机范围内无斜坡,此待选风机定位点p ij成为风机定位点p ijS6.3.7 Arrangement of the positioning point of the wind turbine to be selected There is no slope within the range of the wind turbine, and the positioning point p ij of the wind turbine to be selected becomes the positioning point p ij of the wind turbine.
  9. 根据权利要求1~8任一项所述的一种基于AutoCAD的山地风电场风机定位方法,其特征在于:AutoCAD通过使用Visual Studio 2020新建基于C#编程语言的.net framework3.5版本的类库,在类库中引入AutoCAD 2010安装目录下的acdbmgd.dll以及acmgd.dll两个文件,使用所述类库提供的AutoCAD.NET的api接口,进行二次开发。A method for positioning wind turbines in mountainous wind farms based on AutoCAD according to any one of claims 1 to 8, characterized in that: AutoCAD uses Visual Studio 2020 to create a class library based on the .net framework 3.5 version of the C# programming language, Introduce the two files acdbmgd.dll and acmgd.dll under the AutoCAD 2010 installation directory into the class library, and use the API interface of AutoCAD.NET provided by the class library to carry out secondary development.
PCT/CN2022/078174 2021-11-04 2022-02-28 Autocad-based method for positioning wind turbines on mountain wind farm WO2023077693A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111300628.XA CN114021235B (en) 2021-11-04 2021-11-04 Mountain wind power plant fan positioning method based on AutoCAD
CN202111300628.X 2021-11-04

Publications (1)

Publication Number Publication Date
WO2023077693A1 true WO2023077693A1 (en) 2023-05-11

Family

ID=80060761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/078174 WO2023077693A1 (en) 2021-11-04 2022-02-28 Autocad-based method for positioning wind turbines on mountain wind farm

Country Status (2)

Country Link
CN (1) CN114021235B (en)
WO (1) WO2023077693A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114021235B (en) * 2021-11-04 2022-12-27 中国电建集团河北省电力勘测设计研究院有限公司 Mountain wind power plant fan positioning method based on AutoCAD

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592130A (en) * 2008-05-30 2009-12-02 通用电气公司 The method that is used for the wind turbine layout of wind power plant
CN104050323A (en) * 2014-06-20 2014-09-17 中国电建集团昆明勘测设计研究院有限公司 High altitude mountainous area fuzzy multi-criteria wind power plant site selection method
US20200311835A1 (en) * 2018-03-29 2020-10-01 Beijing Goldwind Science & Creation Windpower Equipment Co., Ltd. Mesoscale data-based automatic wind turbine layout method and device
EP3741991A1 (en) * 2019-05-23 2020-11-25 E.ON Digital Technology GmbH Method for dynamic real-time optimization of the performance of a wind park and wind park
CN112700349A (en) * 2019-10-22 2021-04-23 北京金风科创风电设备有限公司 Anemometer tower site selection method and device
US20210312101A1 (en) * 2018-08-20 2021-10-07 Vestas Wind Systems A/Svestas Wind Systems A/S Method for determining a wind turbine layout
CN114021235A (en) * 2021-11-04 2022-02-08 中国电建集团河北省电力勘测设计研究院有限公司 Mountain wind power plant fan positioning method based on AutoCAD

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6738585B1 (en) * 2019-11-28 2020-08-12 東亜道路工業株式会社 MOBILE POSITION INFORMATION ACQUISITION METHOD, MOBILE BODY POSITION INFORMATION ACQUISITION SYSTEM, AND COMPUTER PROGRAM FOR MOVING BODY POSITION INFORMATION
CN111897365B (en) * 2020-08-27 2022-09-02 中国人民解放军国防科技大学 Autonomous vehicle three-dimensional path planning method for contour line guide line
CN112862720B (en) * 2021-02-24 2023-07-11 飞燕航空遥感技术有限公司 Denoising method and system for diffuse reflection noise of glass plate in airborne LiDAR point cloud

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592130A (en) * 2008-05-30 2009-12-02 通用电气公司 The method that is used for the wind turbine layout of wind power plant
CN104050323A (en) * 2014-06-20 2014-09-17 中国电建集团昆明勘测设计研究院有限公司 High altitude mountainous area fuzzy multi-criteria wind power plant site selection method
US20200311835A1 (en) * 2018-03-29 2020-10-01 Beijing Goldwind Science & Creation Windpower Equipment Co., Ltd. Mesoscale data-based automatic wind turbine layout method and device
US20210312101A1 (en) * 2018-08-20 2021-10-07 Vestas Wind Systems A/Svestas Wind Systems A/S Method for determining a wind turbine layout
EP3741991A1 (en) * 2019-05-23 2020-11-25 E.ON Digital Technology GmbH Method for dynamic real-time optimization of the performance of a wind park and wind park
CN112700349A (en) * 2019-10-22 2021-04-23 北京金风科创风电设备有限公司 Anemometer tower site selection method and device
CN114021235A (en) * 2021-11-04 2022-02-08 中国电建集团河北省电力勘测设计研究院有限公司 Mountain wind power plant fan positioning method based on AutoCAD

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MYTILINOU VARVARA, LOZANO-MINGUEZ ESTIVALIZ, KOLIOS ATHANASIOS: "A Framework for the Selection of Optimum Offshore Wind Farm Locations for Deployment", ENERGIES, vol. 11, no. 7, pages 1855, XP093063056, DOI: 10.3390/en11071855 *

Also Published As

Publication number Publication date
CN114021235B (en) 2022-12-27
CN114021235A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
WO2023077693A1 (en) Autocad-based method for positioning wind turbines on mountain wind farm
CN104361616B (en) A kind of topography and geomorphology file acquisition method assessed for wind energy turbine set wind-resources
CN109711474A (en) A kind of aluminium material surface defects detection algorithm based on deep learning
CN101256069B (en) Method for measuring high furnace burden face appearance and material flow track using laser ranging technique
CN104680509B (en) A kind of real-time circular printing image defect detection method
CN104200522A (en) Two-dimensional cable data based three-dimensional cable model generation method
CN101901494A (en) Method and system for automatically realizing map lettering
CN111309945B (en) Method and system for accurately classifying inspection pictures of unmanned aerial vehicle
CN110322038B (en) Method and equipment for automatically arranging fans based on mesoscale data
CN103714384B (en) Layout method based on Move Mode sequence and the integrated circuit of heredity taboo
CN104715092B (en) A kind of quick method for setting up Label and figure annexation in level layout verification
CN110826498A (en) Transient power quality detection method based on HHT
CN111682592B (en) Distributed wind power plant power optimization method and device
CN107577891A (en) The broken planar defect automatic identification of structural member and modification method based on attribute adjacent map
CN110136257B (en) Automatic three-dimensional modeling method for mountain photovoltaic power station
AU2017401372A1 (en) Geographic information processing device, geographic information processing method, and program
CN107544098A (en) Generation method, device, storage medium and the processor of roughness of ground surface
CN110119596B (en) A kind of place editing system based on Revit
CN112488135A (en) Method for classifying BIM three-dimensional image features of transformer substation
CN111967152A (en) Method for correcting standard k-model by adding k-source term
CN110163962A (en) A method of based on Smart 3D oblique photograph technology export actual landform contour
CN106844443B (en) The rapid correction method and system of a kind of map vector
CN111177969B (en) Two-dimensional random aggregate generation and feeding method capable of controlling aggregate spacing
CN114297787A (en) Method and device for generating fan arrangement scheme, electronic equipment and storage medium
CN108197360A (en) The automatic dividing system of turbine rotor grid and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22888734

Country of ref document: EP

Kind code of ref document: A1