CN112214858B - Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field - Google Patents

Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field Download PDF

Info

Publication number
CN112214858B
CN112214858B CN202010922217.3A CN202010922217A CN112214858B CN 112214858 B CN112214858 B CN 112214858B CN 202010922217 A CN202010922217 A CN 202010922217A CN 112214858 B CN112214858 B CN 112214858B
Authority
CN
China
Prior art keywords
east
south
north
taking
photovoltaic panels
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010922217.3A
Other languages
Chinese (zh)
Other versions
CN112214858A (en
Inventor
王亚松
黄大伟
宿维忠
郝巍
王忆南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PowerChina Hebei Electric Power Engineering Co Ltd
Original Assignee
PowerChina Hebei Electric Power Engineering Co Ltd
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 PowerChina Hebei Electric Power Engineering Co Ltd filed Critical PowerChina Hebei Electric Power Engineering Co Ltd
Priority to CN202010922217.3A priority Critical patent/CN112214858B/en
Publication of CN112214858A publication Critical patent/CN112214858A/en
Application granted granted Critical
Publication of CN112214858B publication Critical patent/CN112214858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Photovoltaic Devices (AREA)

Abstract

The invention discloses an automatic arrangement method of photovoltaic panels in an irregular field based on AutoCAD, which belongs to the field of photovoltaic panel arrangement design and specifically comprises the steps of establishing a coordinate system in the AutoCAD, arranging each photovoltaic panel according to the east-west direction and the south-north direction, setting a plurality of photovoltaic panel groups in the east-west direction and the south-north direction, and setting the distance between groups and the distance between each photovoltaic panel in each group. The photovoltaic panel is uniformly and tidily arranged in a field by considering the grouping of the east-west direction and the south-north direction, and accords with the actual engineering design.

Description

Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field
Technical Field
The invention relates to the field of photovoltaic panel arrangement design, in particular to an automatic photovoltaic panel arrangement method.
Background
In the arrangement design of the photovoltaic panels, the number of the photovoltaic panels is large, the arrangement place of the photovoltaic panels is irregular, the manual arrangement workload is large, and the efficiency is low. A novel photovoltaic panel arrangement method is provided in a thesis of photovoltaic panel arrangement and intelligent partitioning based on a greedy algorithm, but only a final arrangement result is published, no specific technical means is recorded, and a method capable of automatically, rapidly and massively arranging photovoltaic panels in batches is urgently needed in the industry.
Disclosure of Invention
The invention aims to provide a method for automatically, quickly and massively arranging photovoltaic panels.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
automatic CAD-based automatic arrangement method for photovoltaic panels in irregular fields is characterized in that: a coordinate system is established in AutoCAD, each photovoltaic panel is arranged in the east-west direction and the south-north direction, the east-west direction and the south-north direction respectively comprise a plurality of photovoltaic panel groups, and the distance between the groups and the distance between each photovoltaic panel in each group are set.
The technical scheme of the invention is further improved as follows: a maximum rectangular area is defined outside the irregular field according to the south-north and east-west directions, each photovoltaic panel group is arranged in the rectangular area, and the photovoltaic panels which are arranged between the rectangular area and the irregular field and are crossed with the irregular field are removed.
The technical scheme of the invention is further improved as follows: the method comprises the following steps:
a. starting;
b. taking a layout field as a closed multi-line segment P, the length of the photovoltaic panel is L, the width of the photovoltaic panel is W, and the number of each group of photovoltaic panels in the east-west direction is X c The distance between east and west direction groups is X gd The interval between the photovoltaic panels in the east-west direction is X d The number of each group of photovoltaic panels in the north-south direction is Y c The distance between the north and south sets is Y gd The distance between the photovoltaic panels in the south and north is Y d;
c. Calculating the minimum coordinate of the east-west direction of the multi-line segment P as X min The maximum coordinate in the east-west direction is X max The minimum coordinate in the north-south direction is Y min The maximum coordinate in the north-south direction is Y max;
d. Taking the coordinate set in the east-west direction as X, temporary variable X t =X min Counting variable C x =0;
e. If X t ≤X max L, then cycling from step f to step g;
f. x is to be t Put into set X
g. Let C x =C x +1, judgment C x Divided by X c Whether to divide evenly or not, if so, let X t =X t +L+X gd Else X t =X t +L+X d
h. Taking coordinate set in north and south directions as Y, and taking temporary variable Y t =Y min Taking a temporary counting variable C y =0;
i. If Y is t ≤Y max -W, then cycling j through k;
j. will Y t Put into a collectionY
k. Let C y =C y +1, judgment C y Divided by Y c Whether it is divided evenly or not, if so, let Y t =Y t +L+Y gd Otherwise Y t =Y t +L+Y d
l, taking the number of the sets X as X lc The number of elements of the set Y is Y lc The final set of photovoltaic panels is XY, count variable I =0;
m, taking Y i =Y[I]+ W/2, take the temporary line segment S [ (X) min -2,Y i ),(X max +2,Y i )];
n, calling IntersectWidth function of AutoCAD lp And to X lp Sorting in ascending order, taking X lp Number of (A) is X lpc Since P is a closed polyline, then X lp Is even number, take X lp2 =X lp /2;
o, let coordinate set X in multiline segment P be X e Taking a counting variable J =0;
p, taking a counting variable as K =0;
q if X [ K ]]≥X lp [J×2]And X [ K ]]≤X lp [J×2+1]Then X [ K ] is added]Adding to set X e
r, K = K +1 and K<X lc Repeating the step q;
s, J = J +1 and J<X lp2 Repeating steps p to r;
t, taking set X e Is X ec Count variable M =0;
u, the photovoltaic panel is a rectangle R, the length of the R is L, the width of the R is W, and the central coordinate is (X) e [M]+L/2,Y[I]);
v, calling an intersectlength function to calculate the intersection point of the rectangle R and the multi-line segment P, and if the intersection point does not exist, putting the rectangle R into the set XY;
w, I = I +1 and I<Y lc Repeating steps m to v;
x, drawing the rectangles stored in the XY set into the AutoCAD;
and y, ending.
Due to the adoption of the technical scheme, the invention has the technical progress that:
the automatic arrangement method of the photovoltaic panels in the irregular field based on the AutoCAD considers the grouping of the east-west direction and the south-north direction, realizes the uniform and orderly arrangement of the photovoltaic panels in the field, and accords with the actual engineering design.
The method is not focused on the arrangement of the photovoltaic array, is not focused on the calculation of the angle of the photovoltaic panel, and is focused on the fact that the photovoltaic panels are quickly and automatically drawn into the AutoCAD according to the known grouping and distance of the photovoltaic panels according to specific requirements.
Drawings
Fig. 1 is a schematic view of the east-west, south-north grouping arrangement of the photovoltaic panel of the present invention.
Detailed Description
The present invention is further illustrated in detail below with reference to examples:
the automatic photovoltaic panel arranging method in the irregular field based on the AutoCAD establishes a coordinate system in the AutoCAD, arranges all photovoltaic panels according to the east-west direction and the south-north direction, the east-west direction and the south-north direction both comprise a plurality of photovoltaic panel groups, and sets the distance between groups and the distance between all the photovoltaic panels in the groups.
A maximum rectangular area can be defined outside the irregular field according to the directions of south, north and east and west, each photovoltaic panel group is arranged in the rectangular area, and the photovoltaic panels which are arranged between the rectangular area and the irregular field and are crossed with the irregular field are eliminated.
The following provides a specific embodiment for realizing automatic arrangement of photovoltaic panels in irregular fields
The automatic arrangement method of the photovoltaic panels in the irregular field based on AutoCAD specifically comprises the following steps:
a. starting;
b. the arrangement field is closedThe line segment is P, the length of the photovoltaic panel is L, the width of the photovoltaic panel is W, and the quantity of each group of photovoltaic panels in the east-west direction is X c The distance between the east and west direction groups is X gd The interval between the photovoltaic panels in the east-west direction is X d The number of each group of photovoltaic panels in the north-south direction is Y c The distance between the north and south sets is Y gd The distance between the photovoltaic panels in the south and north is Y d;
c. Calculating the minimum coordinate of the east and west directions of the multi-line segment P as X min The maximum coordinate in the east-west direction is X max The minimum coordinate in the north-south direction is Y min The maximum coordinate in the north-south direction is Y max;
d. Taking coordinate set in east-west direction as X, temporary variable X t =X min Counting variable C x =0;
e. If X t ≤X max L, then cycling from step f to step g;
f. x is to be t Put into set X
g. Let C x =C x +1, judgment C x Divided by X c Whether to divide exactly or not, if so, let X t =X t +L+X gd Else X t =X t +L+X d
h. Taking coordinate set in north and south directions as Y, and taking temporary variable Y t =Y min Taking a temporary counting variable C y =0;
i. If Y is t ≤Y max -W, then cycling j through k;
j. will Y t Put into set Y
k. Let C y =C y +1, judgment C y Divided by Y c Whether it is divided evenly or not, if so, let Y t =Y t +L+Y gd Otherwise Y t =Y t +L+Y d
l, taking the number of the sets X as X lc The number of elements of the set Y being Y lc The final set of photovoltaic panels is XY, count variable I =0;
m, taking Y i =Y[I]+ W/2, take the temporary line segment S [ (X) min -2,Y i ),(X max +2,Y i )];
n, calling IntersectWidth function of AutoCAD. NET to calculate the cross point set of the line segment S and the multi-line segment P as X lp And to X lp Sorting in ascending order, taking X lp Number of (A) is X lpc Since P is a closed polyline, X lp Is even number, take X lp2 =X lp /2;
o, let the coordinate set X in the multi-line segment P be X e Taking a counting variable J =0;
p, taking a counting variable as K =0;
q if X [ K ]]≥X lp [J×2]And X [ K ]]≤X lp [J×2+1]Then X [ K ] is added]Adding to set X e
r, K = K +1 and K<X lc Repeating the step q;
s, J = J +1 and J<X lp2 Repeating steps p to r;
t, taking set X e Is X ec Count variable M =0;
u, the photovoltaic panel is a rectangle R, the length of R is L, the width is W, and the central coordinate is (X) e [M]+L/2,Y[I]);
v, calling an intersectlength function to calculate the intersection point of the rectangle R and the multi-line segment P, and if the intersection point does not exist, putting the rectangle R into the set XY;
w, I = I +1 and I<Y lc Repeating steps m to v;
x, drawing the rectangles stored in the set XY into the AutoCAD;
and y, ending.
The photovoltaic panel is uniformly and tidily arranged in a field by considering the grouping of the east-west direction and the south-north direction, and accords with the actual engineering design. The above-mentioned embodiments are merely illustrative of the preferred embodiments of the present invention, and do not limit the scope of the present invention, and various modifications and improvements of the technical solution of the present invention made by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims (1)

1. Automatic photovoltaic panel arrangement method in irregular field based on AutoCAD, its characterized in that: establishing a coordinate system in AutoCAD, arranging all photovoltaic panels according to the east-west direction and the south-north direction, wherein the east-west direction and the south-north direction both comprise a plurality of photovoltaic panel groups, and setting the distance between groups and the distance between all photovoltaic panels in the groups;
the method comprises the following steps of defining a maximum rectangular area outside the irregular field according to the south-north and east-west directions, arranging photovoltaic panel groups in the rectangular area, and excluding photovoltaic panels which are arranged between the rectangular area and the irregular field and cross the irregular field;
the method comprises the following steps:
a. starting;
b. taking a layout field as a closed multi-line segment P, the length of the photovoltaic panel is L, the width of the photovoltaic panel is W, and the number of each group of photovoltaic panels in the east-west direction is X c The distance between the east and west direction groups is X gd The interval between the photovoltaic panels in the east-west direction is X d The number of each group of photovoltaic panels in the north-south direction is Y c The distance between the north and south sets is Y gd The distance between the photovoltaic panels in the south and north is Y d;
c. Calculating the minimum coordinate of the east-west direction of the multi-line segment P as X min The maximum coordinate of the east-west direction is X max The minimum coordinate in the north-south direction is Y min The maximum coordinate in the north-south direction is Y max;
d. Taking the coordinate set in the east-west direction as X, temporary variable X t =X min Counting variable C x =0;
e. If X is t ≤X max L, then cycling from step f to step g;
f. x is to be t Put into set X
g. Let C x =C x +1, judgment C x Divided by X c Whether to divide evenly or not, if so, let X t =X t +L+X gd Otherwise X t =X t +L+X d
h. In the north-south directionTaking the temporary variable Y as Y t =Y min Taking a temporary counting variable C y =0;
i. If Y is t ≤Y max -W, then cycling j through k;
j. will Y t Put into set Y
k. Let C y =C y +1, judgment C y Divided by Y c Whether it is divided evenly or not, if so, let Y t =Y t +L+Y gd Otherwise Y t =Y t +L+Y d
l, taking the number of the sets X as X lc The number of elements of the set Y being Y lc The final set of photovoltaic panels is XY, count variable I =0;
m, taking Y i =Y[I]+ W/2, take the temporary line segment S [ (X) min -2,Y i ),(X max +2,Y i )];
n, calling IntersectWidth function of AutoCAD. NET to calculate the cross point set of the line segment S and the multi-line segment P as X lp And to X lp Sorting in ascending order, taking X lp Number of (A) is X lpc Since P is a closed polyline, then X lp Is even number, take X lp2 =X lp /2;
o, let the coordinate set X in the multi-line segment P be X e Taking a counting variable J =0;
p, taking a counting variable as K =0;
q if X [ K ]]≥X lp [J×2]And X [ K ]]≤X lp [J×2+1]Then X [ K ] is added]Adding to set X e
r, K = K +1 and K<X lc Repeating the step q;
s, J = J +1 and J<X lp2 Repeating steps p to r;
t, taking set X e Is X ec Count variable M =0;
u, the photovoltaic panel is a rectangle R, the length of the R is L, the width of the R is W, and the central coordinate is (X) e [M]+L/2,Y[I]);
v, calling an IntersectWith function to calculate the intersection point of the rectangle R and the multi-line segment P, and if the intersection point does not exist, putting the R into a set XY;
w, I = I +1 and I<Y lc Repeating steps m to v;
x, drawing the rectangles stored in the set XY into the AutoCAD;
and y, ending.
CN202010922217.3A 2020-09-04 2020-09-04 Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field Active CN112214858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010922217.3A CN112214858B (en) 2020-09-04 2020-09-04 Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010922217.3A CN112214858B (en) 2020-09-04 2020-09-04 Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field

Publications (2)

Publication Number Publication Date
CN112214858A CN112214858A (en) 2021-01-12
CN112214858B true CN112214858B (en) 2023-03-03

Family

ID=74049056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010922217.3A Active CN112214858B (en) 2020-09-04 2020-09-04 Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field

Country Status (1)

Country Link
CN (1) CN112214858B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116707413B (en) * 2023-08-08 2023-11-10 中国电建集团昆明勘测设计研究院有限公司 Automatic arrangement method for photovoltaic arrays of complex terrains of mountain areas of highland

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1795829A2 (en) * 2005-12-07 2007-06-13 Rivas Garcia Cesareo Linear solar tracker for a photovoltaic installation
CN102317945A (en) * 2009-02-20 2012-01-11 太阳能公司 Automated solar collector installation design
WO2013040016A1 (en) * 2011-09-12 2013-03-21 Modsolar, Llc System and method for optimized automated layout of solar panels
CN109871567A (en) * 2018-12-18 2019-06-11 远景能源(南京)软件技术有限公司 The automatic generating method of photovoltaic module arrangement drawing
CN110851945A (en) * 2019-08-08 2020-02-28 上海电气分布式能源科技有限公司 Photovoltaic array arrangement method and photovoltaic array arrangement scheme automatic generation system
CN110955970A (en) * 2019-11-27 2020-04-03 合肥阳光新能源科技有限公司 Photovoltaic power station layout method and device
CN111611721A (en) * 2020-05-29 2020-09-01 全球能源互联网集团有限公司 Computer arrangement method of solar cell array

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1795829A2 (en) * 2005-12-07 2007-06-13 Rivas Garcia Cesareo Linear solar tracker for a photovoltaic installation
CN102317945A (en) * 2009-02-20 2012-01-11 太阳能公司 Automated solar collector installation design
WO2013040016A1 (en) * 2011-09-12 2013-03-21 Modsolar, Llc System and method for optimized automated layout of solar panels
CN109871567A (en) * 2018-12-18 2019-06-11 远景能源(南京)软件技术有限公司 The automatic generating method of photovoltaic module arrangement drawing
CN110851945A (en) * 2019-08-08 2020-02-28 上海电气分布式能源科技有限公司 Photovoltaic array arrangement method and photovoltaic array arrangement scheme automatic generation system
CN110955970A (en) * 2019-11-27 2020-04-03 合肥阳光新能源科技有限公司 Photovoltaic power station layout method and device
CN111611721A (en) * 2020-05-29 2020-09-01 全球能源互联网集团有限公司 Computer arrangement method of solar cell array

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于边界生长法的光伏方阵边界自动绘制的实现;王路军;《科技与创新》;20150403;正文第11-12页 *

Also Published As

Publication number Publication date
CN112214858A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN102663181B (en) Automatic drawing method of distribution network diagram
CN112214858B (en) Automatic CAD (auto computer aided design) -based automatic arrangement method for photovoltaic panels in irregular field
Goldschmidt et al. An efficient graph planarization two‐phase heuristic
CN107292065A (en) A kind of quick composing system of floor tile based on BIM technology and method
CN104167731B (en) A kind of multizone polynary power supply coordinated planning method
CN108681462A (en) A kind of size of code statistical method and device
CN110409828B (en) Template arrangement method and device convenient for construction
CN103258337B (en) The method and device of map making
CN114135928B (en) Centralized control method, terminal and storage medium for electric heating system
CN213459754U (en) Solar cell, cell string and photovoltaic module
CN110059696A (en) A kind of image labeling method, device and computer readable storage medium
CN106021822B (en) A kind of siding modeling method based on UDF technology
CN111008070B (en) Parallel task division method and system for full reactor core sub-channels of fast neutron reactor
CN114970165A (en) Digital entity automatic modeling method, system and equipment for cable in bridge
CN102253861A (en) Method for executing stepwise plug-in computation
CN107943857A (en) Automatic method, apparatus, terminal device and the storage medium for reading AutoCAD forms
CN115093032A (en) Ecological oxidation pond restoration method and device suitable for black and odorous micro water bodies
CN111047498B (en) GPU hardware copy buffer algorithm-oriented TLM microstructure
CN107256281B (en) FPGA (field programmable Gate array) reconfigurable resource non-rectangular layout method based on cutting method
CN113642258B (en) CFD model type selection method based on neural network
CN102243767A (en) Creation method of mobile phone cartoon figure based on local image distortion
CN109426681B (en) Automatic line generation method and device
CN107133379B (en) Modeling system and method for extra-high voltage tower column
CN117173362B (en) Method and system for building coordinate system of live-action three-dimensional model and segmenting tiles
CN115618536A (en) Photovoltaic panel arrangement method based on greatest common divisor grid division

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant