Real-time sunshine detection method and system

文档序号:420535 发布日期:2021-12-21 浏览:10次 中文

阅读说明:本技术 实时日照检测方法及系统 (Real-time sunshine detection method and system ) 是由 倪钰翔 李星星 于 2021-11-12 设计创作,主要内容包括:本发明提供一种实时日照检测方法及系统。本发明首先计算每一时间间隙下目标建筑物的日照条件,以棒影光线集的形式进行记录。然后按照建筑物的日照测算点,分别将棒影光线集调用至各日照测算点位置,根据棒影光线集中光线是否被障碍物遮挡而实现对日照时间的标记。最后,按照规定的计算方式,对各日照测算点的有效日照时间进行统计,获得各日照测算点的日照时长。本申请所采用的棒影光线集中的光线,不仅匹配于目标建筑物的日照方位,还同时兼顾对不同日照时间间隙进行标记,能够直接通过光线是否被障碍物遮挡而获得不同日照时间间隙下日照测算点的实时光照情况,灵活按照日照时长计算方式的要求准确实现对有效日照时长的统计。(The invention provides a real-time sunshine detection method and a real-time sunshine detection system. The invention firstly calculates the sunshine condition of the target building under each time interval and records the sunshine condition in the form of a rod shadow ray set. And then calling the rod shadow ray set to each sunlight measuring and calculating point position according to the sunlight measuring and calculating points of the building, and marking the sunlight time according to whether the rays in the rod shadow ray set are shielded by the barrier or not. And finally, according to a specified calculation mode, counting the effective sunshine time of each sunshine measuring and calculating point to obtain the sunshine duration of each sunshine measuring and calculating point. The light that the rod shadow light that this application adopted is concentrated not only matches in the sunshine position of target building, still takes into account simultaneously and marks different sunshine time gaps, can directly obtain the real-time illumination condition of sunshine measuring and calculating point under the different sunshine time gaps through whether light is sheltered from by the barrier, and the nimble requirement according to the long calculation mode of sunshine is accurate to realize the statistics long to effective sunshine.)

1. A real-time sunshine detection method is characterized by comprising the following steps:

step one, respectively calculating rod shadow ray sets under the sunshine conditions corresponding to the target building under each time interval according to the longitude and latitude and the height of the target building and the preset time interval;

secondly, respectively determining a sunlight measuring and calculating point corresponding to each target building, respectively starting a sunlight ray shielding algorithm thread for each target building, and respectively executing the following calculation steps from the third step to the seventh step on each sunlight measuring and calculating point of the target building through the sunlight ray shielding algorithm thread;

comparing the two-dimensional projection range of the rod shadow ray set corresponding to the target building with the longitude and latitude positions of surrounding buildings, if the surrounding buildings are in the two-dimensional projection range of the rod shadow ray set, recording the surrounding buildings as obstacles and jumping to the fourth step, and otherwise, jumping to the eighth step;

fourthly, sequencing the obstacles according to the distance between the obstacles and the target building;

fifthly, calling the rod shadow ray set to each sunshine measuring and calculating point of the target building, and marking the serial number of each ray in the rod shadow ray set according to the sequence of the solar azimuth angle;

sixthly, respectively establishing 3 memories for each sunshine measuring and calculating point of the target building, storing the rod shadow light set in the fifth step and the serial number marked by each light ray by using the first memory, storing the serial number of the light ray blocked by the obstacle by using the second memory, and storing the serial number of the light ray not blocked by the obstacle by using the third memory;

and seventhly, respectively taking each sunshine measuring and calculating point as a base point, and sequentially judging each obstacle as follows: acquiring an azimuth angle range between the boundary of an obstacle and a base point, calling all light rays positioned in the azimuth angle range from a first memory, judging whether the called light rays are intersected with the obstacle, if so, moving the light rays to a second memory, and if not, moving the light rays to a third memory;

and eighthly, respectively calling the light rays in the third storage corresponding to each sunshine measuring and calculating point according to a specified sunshine duration calculation mode, and calculating whether the sunshine measuring and calculating point reaches the sunshine duration standard or not.

2. The real-time sunlight detection method of claim 1, further comprising: ninth, if the sunshine measuring and calculating point reaches the sunshine duration standard, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a first display mode; otherwise, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a second display mode;

and the marking font, the font size and the thickness of the sunshine duration in the second display mode are all larger than those in the first display mode, and the marking color of the sunshine duration in the second display mode is different from that in the first display mode.

3. The real-time sunlight detection method of claim 1 or 2 further comprising: tenth, whenever any one of the target buildings or surrounding buildings is moved or changed, re-execution of the second to ninth steps is automatically triggered.

4. The real-time sunlight detection method of claim 1-3 wherein said rod shadow ray set is calculated by the steps of:

step 101, according to the longitude and latitude (lambda, phi) of the target building, the declination angle delta and the true solar time angle omega under the corresponding time gap, and according to sinhsCalculating to obtain the solar altitude angle hs corresponding to the target building according to sin phi sin delta + cos phi cos delta cos omega, and calculating according to the obtained solar altitude angle hsCalculating to obtain a solar azimuth angle As corresponding to a target building;

step 102, calculating a rod shadow bus terminal coordinate point P (Xp, Yp, Zp) matched with the maximum height H of the surrounding building, wherein Xp is H × sinAs × costs, Yp is-1 × H × cosAs × costs, and Zp is H;

step 103, connecting the coordinate origin O (0, 0, 0) with the rod shadow generatrix terminal coordinate point P to obtain a rod shadow ray OP under the sunshine condition corresponding to the target building under the corresponding time gap, wherein the two-dimensional projection of the rod shadow ray OP is OP0Wherein P is0Coordinates are (Xp, Yp, 0);

and 104, respectively executing the steps 101 to 102 according to a preset time interval, and storing the set of rod shadow rays OP under the sunshine condition corresponding to the target building under each time interval as a rod shadow ray set.

5. The real-time sunshine detection method of claim 4, wherein in the fifth step, the specific step of calling the rod shadow ray set to each sunshine calculation point of the target building is as follows: and respectively moving the coordinate origin of each rod shadow ray OP in the rod shadow ray set to each sunshine measuring and calculating point of the target building to obtain a rod shadow ray O 'P' matched with the sunshine measuring and calculating point, wherein the coordinates of P 'are (Xp + Xo, Yp + Yo, Zp + Zo), and the coordinates of the sunshine measuring and calculating point are O' (Xo, Yo, Zo).

6. The real-time insolation detection method of claims 1-3, wherein said insolation estimation points of the target building are determined by:

step 201, using a standard floor plane established by multiple segments in a counterclockwise sequence as a reference, obtaining a standard floor plan graph of a target building, extracting coordinates of each end point in the standard floor plan graph, recording the end point positioned at the south-most end as Pt (Xpt, Ypt, Zpt), and recording the end point positioned at the west-most end as PtXmin(Xmin, X0, Z0) where the endpoint Pt at the east-most end is notedXmax(Xmax, X1, Z1); step 202, if the number of the end points positioned at the south-most end exceeds 1, determining that the deflection angle of the target building is 0, otherwise, determining that the target building deflects;

step 203, when determining that the target building has deflection, extracting an edge line segment L in which a start point coordinate value Pts (Xstart, Ystart, Zstart) in the standard floor plan graph is overlapped with an end point Pt (Xpt, Ypt, Zpt) positioned at the south-most end, recording the end point coordinate of the edge line segment L as Pte (Xend, Yend, Zend), and establishing a vector V (Xend-Xstart, Yend-Ystart, Zend-Zstart) according to the direction of the edge line segment L;

step 204, calculating an included angle between the vector V and the axis vector Vx (1, 0, 0) to obtain a deflection value RotAngle corresponding to the target building;

step 205, calculating a deflection angle corresponding to the target building according to the deflection value RotAngle:

when in useThen, the deflection Angle is determined to be Angle-90 ° -rotngle,

when in useDetermining that the deflection Angle is Angle ═ RotAngle;

step 206, taking the center of the standard layer house type plane graph as a rotation point, deflecting the standard layer house type plane graph by an Angle of-1 × Angle, and under the state, acquiring each extreme value coordinate point in the rotated standard layer house type plane graph as follows: x ' max, X ' min, Y ' max, Y ' min, Z ';

step 207, constructing a circumscribed rectangle of the rotated standard layer house type plane graph according to each extreme value coordinate point, and marking corresponding virtual measuring and calculating points on a south edge line of the circumscribed rectangle according to the requirement of the number or the distance of the measuring and calculating points;

and 208, making a vertical line along the standard house type plane of the target building by taking the virtual measuring and calculating point as the bottom end, marking corresponding coordinates on the vertical line as an initial measuring and calculating point according to the height requirement of the measuring and calculating point or the height of the house type floor, and deflecting each virtual measuring and calculating point and the initial measuring and calculating point back to Angle by taking the center of the standard house type plane graph as a rotation center to obtain the sunlight measuring and calculating point corresponding to the south side of the house type of the target building.

7. A real-time insolation detection system, comprising:

the rod shadow ray set generating module is used for respectively calculating rod shadow ray sets under the sunshine conditions corresponding to the target building under each time gap according to the longitude and latitude and the height of the target building and the preset time gap;

the sunshine measuring and calculating point generating module is used for determining corresponding sunshine measuring and calculating points for each target building;

the sunlight ray shielding algorithm module starts a sunlight ray shielding algorithm thread for each target building respectively, and judges whether the sunlight in the rod shadow ray set is shielded or not for each sunlight measuring and calculating point of the target building through the sunlight ray shielding algorithm thread so as to obtain the light ray shielding condition of each sunlight measuring and calculating point;

the sunshine duration calculation module is used for respectively calculating whether the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard or not according to the light shielding condition of each sunshine measuring and calculating point obtained by the sunshine light shielding algorithm module and a specified sunshine duration calculation mode, and if the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard, marking the corresponding sunshine duration at the position of the sunshine measuring and calculating point in a first display mode; otherwise, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a second display mode; and the marking font, the font size and the thickness of the sunshine duration in the second display mode are all larger than those in the first display mode, and the marking color of the sunshine duration in the second display mode is different from that in the first display mode.

8. The real-time sunlight detection system of claim 7 wherein said rod shadow ray set generation module calculates rod shadow ray sets for the target building under the sunlight conditions for each time slot by:

step 101, according to the longitude and latitude (lambda, phi) of the target building, the declination angle delta and the true solar time angle omega under the corresponding time gap, and according to sinhsCalculating to obtain the solar altitude angle hs corresponding to the target building according to sin phi sin delta + cos phi cos delta cos omega, and calculating according to the obtained solar altitude angle hsCalculating to obtain a solar azimuth angle As corresponding to a target building;

step 102, calculating a rod shadow bus terminal coordinate point P (Xp, Yp, Zp) matched with the maximum height H of the surrounding building, wherein Xp is H × sinAs × costs, Yp is-1 × H × cosAs × costs, and Zp is H;

step 103, connecting the coordinate origin O (0, 0, 0) with the rod shadow bus terminalA coordinate point P, obtaining a rod shadow ray OP under the sunshine condition corresponding to the target building under the corresponding time gap, wherein the two-dimensional projection of the rod shadow ray OP is OP0Wherein P is0Coordinates are (Xp, Yp, 0);

and 104, respectively executing the steps 101 to 102 according to a preset time interval, and storing the set of rod shadow rays OP under the sunshine condition corresponding to the target building under each time interval as a rod shadow ray set.

9. The real-time solar detection system of claims 7-8, wherein the solar estimation point generation module determines the solar estimation point of the target building in particular according to the following steps:

step 201, using a standard floor plane established by multiple segments in a counterclockwise sequence as a reference, obtaining a standard floor plan graph of a target building, extracting coordinates of each end point in the standard floor plan graph, recording the end point positioned at the south-most end as Pt (Xpt, Ypt, Zpt), and recording the end point positioned at the west-most end as PtXmin(Xmin, X0, Z0) where the endpoint Pt at the east-most end is notedXmax(Xmax, X1, Z1); step 202, if the number of the end points positioned at the south-most end exceeds 1, determining that the deflection angle of the target building is 0, otherwise, determining that the target building deflects;

step 203, when determining that the target building has deflection, extracting an edge line segment L in which a start point coordinate value Pts (Xstart, Ystart, Zstart) in the standard floor plan graph is overlapped with an end point Pt (Xpt, Ypt, Zpt) positioned at the south-most end, recording the end point coordinate of the edge line segment L as Pte (Xend, Yend, Zend), and establishing a vector V (Xend-Xstart, Yend-Ystart, Zend-Zstart) according to the direction of the edge line segment L;

step 204, calculating an included angle between the vector V and the axis vector Vx (1, 0, 0) to obtain a deflection value RotAngle corresponding to the target building;

step 205, calculating a deflection angle corresponding to the target building according to the deflection value RotAngle:

when in useWhen the deflection Angle is determined to be Angle-90 DEG RotAngle ═ RotAngle-Determining that the deflection Angle is Angle ═ RotAngle;

step 206, taking the center of the standard layer house type plane graph as a rotation point, deflecting the standard layer house type plane graph by an Angle of-1 × Angle, and under the state, acquiring each extreme value coordinate point in the rotated standard layer house type plane graph as follows: x ' max, X ' min, Y ' max, Y ' min, Z ';

step 207, constructing a circumscribed rectangle of the rotated standard layer house type plane graph according to each extreme value coordinate point, and marking corresponding virtual measuring and calculating points on a south edge line of the circumscribed rectangle according to the requirement of the number or the distance of the measuring and calculating points;

and 208, making a vertical line along the standard house type plane of the target building by taking the virtual measuring and calculating point as the bottom end, marking corresponding coordinates on the vertical line as an initial measuring and calculating point according to the height requirement of the measuring and calculating point or the height of the house type floor, and deflecting each virtual measuring and calculating point and the initial measuring and calculating point back to Angle by taking the center of the standard house type plane graph as a rotation center to obtain the sunlight measuring and calculating point corresponding to the south side of the house type of the target building.

10. The real-time insolation detection system of claims 7-9, further comprising: and the automatic updating module automatically triggers the rod shadow ray set generating module, the sunshine measuring and calculating point generating module, the sunshine ray shielding algorithm module, the sunshine duration calculating module and the recalculation module to display the new sunshine duration corresponding to each sunshine measuring and calculating point when receiving an instruction of moving or changing any target building or surrounding buildings.

Technical Field

The invention relates to the technical field of building sunshine detection, in particular to a real-time sunshine detection method and system.

Background

According to the requirements of planning and designing specifications of urban residential areas, parameters of buildings such as sunlight standard days, effective sunlight time zones, sunshine hours and the like need to meet the mandatory requirements of treatise indexes. And the sunshine of the building and the field is calculated and obtained according to the standard specification, so that whether the building sunshine standard is met or not can be measured and calculated.

The existing building sunshine measuring and calculating methods comprise the following steps:

1. sun rod shadow figure. According to the incident height and the direction of the sunlight, the length and the direction of the shadow of the rod are calculated so as to simultaneously draw the rod shadow in the effective time period, and the rod shadow is used for representing the sunlight influence range of a measuring and calculating point, the sunlight duration of the measuring and calculating point and the distance and the orientation between the measuring and calculating point and a peripheral building. However, the sunshine rod shadow graph has the following defects when the sunshine condition of the building is marked: firstly, the method has no clear sunshine duration and shielding relation, and a sunshine rod shadow graph is in a sector net shape when used for judging the distance and the direction, so that the relation between a measuring point and the surrounding environment cannot be clearly identified; secondly, the calculation mode of the sunshine duration is single, and only all sunshine duration can be accumulated, so that the method cannot adapt to the requirement of building sunshine specification; in addition, in the current CAD plug-in, the sunshine rod shadow map can be displayed only by manually setting a measuring and calculating point, and the rod shadow map can not be automatically adjusted along with the adjustment of the three-dimensional building, and needs to be manually set again, so that the dynamic display can not be realized.

2. Graph analysis along the sun. On a two-dimensional plane, at a designated height of a building contour line, setting sampling precision, acquiring a sunshine measuring and calculating point needing to be calculated, calculating sunshine duration of the measuring and calculating point, and marking the calculated sunshine duration at a base point position. However, the technology has the following defects when being used for checking the sunshine duration on the outline of the building: firstly, a plurality of unnecessary sunshine measuring and calculating points on a north elevation are calculated, for a residential building, the necessary sunshine measuring and calculating points are only points with designated elevation on a south elevation of the building, and the algorithm calculates a plurality of unnecessary sunshine points and wastes computer resources seriously; secondly, the sunshine duration and the shielding relation cannot be clearly displayed, and the sunshine shielding relation with surrounding buildings cannot be visually displayed; in addition, the method has a single calculation mode for the sunshine duration, the sunshine duration cannot be accumulated according to the existing building sunshine specification, and only all the sunshine duration can be accumulated; furthermore, the sunshine numerical value output by the method only displays sunshine duration on a two-dimensional plane graph, is difficult to view on a three-dimensional building model, and has poor visual readability; moreover, after the model position of the three-dimensional building is adjusted in the plug-in of the CAD, the method cannot update the sunshine state along with the change of the model position, and a large amount of calculation is needed to be manually set and repeated from far.

3. Sunshine multi-point diagram. On a two-dimensional plane, a certain range is selected, the distribution distance and the elevation of the sunshine measuring and calculating points are set, so that the sunshine duration of each measuring and calculating point is calculated, and then the calculated sunshine duration number and the corresponding color are displayed. However, this technique has the following disadvantages when used to view a sunshine environment between a plurality of buildings: firstly, a plurality of unnecessary sunshine measuring and calculating points positioned on a north elevation of a building are calculated, computer resources are wasted, and calculation time is consumed; secondly, the calculation mode of the sunshine duration is single, the sunshine duration cannot be accumulated according to the existing building sunshine specification, and only all the sunshine duration can be accumulated; in addition, the sunlight numerical value has poor visual readability, the sunlight duration can only be displayed in a two-dimensional plane graph, the sunlight duration is not easy to view on a three-dimensional building model, and the sunlight duration is displayed only through numerical values and colors, so that the duration of a specific position is not easy to view; meanwhile, the system cannot dynamically display sunshine and cannot automatically update sunshine duration parameters in direct response to the adjustment of the position of the three-dimensional building model.

4. A sunshine cone diagram. In the three-dimensional space, a plurality of moments are set, a datum line and a datum point are taken, the sun position of each moment is displayed in the space around the datum line, and the datum point is connected with each sun position through the datum line to form a conical sector. The technology has the following defects when looking at the reference point and shielding the light of the surrounding building space: firstly, the relation between the sunshine duration and the shielding cannot be clearly shown, and the shielding and spacing relation between all buildings and the measuring and calculating points in the conical surface cannot be clearly judged; secondly, the calculation mode of the sunshine duration is single, the sunshine duration cannot be accumulated according to the existing building sunshine specification, and only all the sunshine duration can be accumulated; meanwhile, the obtained sunshine numerical value has poor visual readability, the sunshine duration at the measuring and calculating point is not obvious to display, and the light rays which are not shielded temporarily and the shielded light rays are easy to interfere with visual judgment during display; in addition, dynamic sunlight display cannot be performed, in the current CAD plug-in unit, a sunlight cone map can be displayed only by manually and specially setting measuring and calculating points, and the distance between a detection point and a shielding building needs to be manually detected and adjusted one by one.

Therefore, how to provide a reasonable, efficient and accurate scheme for real-time measurement and calculation of building sunshine conditions is a technical problem to be urgently solved by technical personnel in the field.

Disclosure of Invention

Aiming at the defects of the prior art, the invention provides a real-time sunshine detection method and a real-time sunshine detection system, the calculation of sunshine shielding is realized by establishing a rod shadow ray set and selecting necessary sunshine measuring and calculating points, the method can calculate the corresponding sunshine duration according to various statistical modes and index requirements, and has the advantages of accurate measuring and calculating, strong readability and convenience for real-time updating and adjustment according to a building model. The invention specifically adopts the following technical scheme.

Firstly, in order to achieve the above purpose, a real-time sunshine detection method is provided, which comprises the following steps: step one, respectively calculating rod shadow ray sets under the sunshine conditions corresponding to the target building under each time interval according to the longitude and latitude and the height of the target building and the preset time interval; secondly, respectively determining a sunlight measuring and calculating point corresponding to each target building, respectively starting a sunlight ray shielding algorithm thread for each target building, and respectively executing the following calculation steps from the third step to the seventh step on each sunlight measuring and calculating point of the target building through the sunlight ray shielding algorithm thread; comparing the two-dimensional projection range of the rod shadow ray set corresponding to the target building with the longitude and latitude positions of surrounding buildings, if the surrounding buildings are in the two-dimensional projection range of the rod shadow ray set, recording the surrounding buildings as obstacles and jumping to the fourth step, and otherwise, jumping to the eighth step; fourthly, sequencing the obstacles according to the distance between the obstacles and the target building; fifthly, calling the rod shadow ray set to each sunshine measuring and calculating point of the target building, and marking the serial number of each ray in the rod shadow ray set according to the sequence of the solar azimuth angle; sixthly, respectively establishing 3 memories for each sunshine measuring and calculating point of the target building, storing the rod shadow light set in the fifth step and the serial number marked by each light ray by using the first memory, storing the serial number of the light ray blocked by the obstacle by using the second memory, and storing the serial number of the light ray not blocked by the obstacle by using the third memory; and seventhly, respectively taking each sunshine measuring and calculating point as a base point, and sequentially judging each obstacle as follows: acquiring an azimuth angle range between the boundary of an obstacle and a base point, calling all light rays positioned in the azimuth angle range from a first memory, judging whether the called light rays are intersected with the obstacle, if so, moving the light rays to a second memory, and if not, moving the light rays to a third memory; and eighthly, respectively calling the light rays in the third storage corresponding to each sunshine measuring and calculating point according to a specified sunshine duration calculation mode, and calculating whether the sunshine measuring and calculating point reaches the sunshine duration standard or not.

Optionally, the real-time sunshine detection method further includes: ninth, if the sunshine measuring and calculating point reaches the sunshine duration standard, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a first display mode; otherwise, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a second display mode; and the marking font, the font size and the thickness of the sunshine duration in the second display mode are all larger than those in the first display mode, and the marking color of the sunshine duration in the second display mode is different from that in the first display mode.

Optionally, the real-time sunshine detection method further includes: tenth, whenever any one of the target buildings or surrounding buildings is moved or changed, re-execution of the second to ninth steps is automatically triggered.

Optionally, the real-time sunlight detection method described in any one of the above, wherein the rod shadow ray set is obtained by calculation through the following steps: step 101, according to the longitude and latitude (lambda, phi) of the target building, the declination angle delta and the true solar time angle omega under the corresponding time gap, and according to sinhsCalculating to obtain the solar altitude angle hs corresponding to the target building according to sin phi sin delta + cos phi cos delta cos omega, and calculating according to the obtained solar altitude angle hsCalculating to obtain a solar azimuth angle As corresponding to a target building; step 102, calculating a rod shadow bus terminal coordinate point P (Xp, Yp, Zp) matched with the maximum height H of the surrounding building, wherein Xp is H × sinAs × costs, Yp is-1 × H × cosAs × costs, and Zp is H; step 103, connecting the coordinate origin O (0, 0, 0) with the rod shadow generatrix terminal coordinate point P to obtain a rod shadow ray OP under the sunshine condition corresponding to the target building under the corresponding time gap, wherein the two-dimensional projection of the rod shadow ray OP is OP0Wherein P is0Coordinates are (Xp, Yp, 0); and 104, respectively executing the steps 101 to 102 according to a preset time interval, and storing the set of rod shadow rays OP under the sunshine condition corresponding to the target building under each time interval as a rod shadow ray set.

Optionally, in the fifth step, the specific step of calling the rod shadow ray set to each sunshine measuring and calculating point of the target building includes: and respectively moving the coordinate origin of each rod shadow ray OP in the rod shadow ray set to each sunshine measuring and calculating point of the target building to obtain a rod shadow ray O 'P' matched with the sunshine measuring and calculating point, wherein the coordinates of P 'are (Xp + Xo, Yp + Yo, Zp + Zo), and the coordinates of the sunshine measuring and calculating point are O' (Xo, Yo, Zo).

Optionally, the real-time sunshine detection method includes the steps of: step 201, clockwise in the counter-clockwise directionSequentially using a standard floor plane established by the multiple lines as a reference, acquiring a standard floor plan graph of the target building, extracting coordinates of each end point in the standard floor plan graph, recording the end point positioned at the south-most end as Pt (Xpt, Ypt, Zpt), and recording the end point positioned at the west-most end as PtXmin(Xmin, X0, Z0) where the endpoint Pt at the east-most end is notedXmax(Xmax, X1, Z1); step 202, if the number of the end points positioned at the south-most end exceeds 1, determining that the deflection angle of the target building is 0, otherwise, determining that the target building deflects; step 203, when determining that the target building has deflection, extracting an edge line segment L in which a start point coordinate value Pts (Xstart, Ystart, Zstart) in the standard floor plan graph is overlapped with an end point Pt (Xpt, Ypt, Zpt) positioned at the south-most end, recording the end point coordinate of the edge line segment L as Pte (Xend, Yend, Zend), and establishing a vector V (Xend-Xstart, Yend-Ystart, Zend-Zstart) according to the direction of the edge line segment L; step 204, calculating an included angle between the vector V and the axis vector Vx (1, 0, 0) to obtain a deflection value RotAngle corresponding to the target building; step 205, calculating a deflection angle corresponding to the target building according to the deflection value RotAngle: when in useWhen the deflection Angle is determined to be Angle-90 DEG RotAngle ═ RotAngle-Determining that the deflection Angle is Angle ═ RotAngle; step 206, taking the center of the standard layer house type plane graph as a rotation point, deflecting the standard layer house type plane graph by an Angle of-1 × Angle, and under the state, acquiring each extreme value coordinate point in the rotated standard layer house type plane graph as follows: x ' max, X ' min, Y ' max, Y ' min, Z '; step 207, constructing a circumscribed rectangle of the rotated standard layer house type plane graph according to each extreme value coordinate point, and marking corresponding virtual measuring and calculating points on a south edge line of the circumscribed rectangle according to the requirement of the number or the distance of the measuring and calculating points; step 208, making a perpendicular line along the standard house type plane of the target building by taking the virtual measuring and calculating point as the bottom end, and according to the height requirement of the measuring and calculating point or the height of the house type floorMarking the corresponding coordinates on the vertical line as initial measuring and calculating points, deflecting each virtual measuring and calculating point and the initial measuring and calculating points back to Angle by taking the center of the standard layer house type plane graph as a rotation center, and obtaining the sunlight measuring and calculating point corresponding to the south side of the target building house type.

Meanwhile, in order to achieve the above object, the present invention further provides a real-time sunshine detection system, which includes: the rod shadow ray set generating module is used for respectively calculating rod shadow ray sets under the sunshine conditions corresponding to the target building under each time gap according to the longitude and latitude and the height of the target building and the preset time gap; the sunshine measuring and calculating point generating module is used for determining corresponding sunshine measuring and calculating points for each target building; the sunlight ray shielding algorithm module starts a sunlight ray shielding algorithm thread for each target building respectively, and judges whether the sunlight in the rod shadow ray set is shielded or not for each sunlight measuring and calculating point of the target building through the sunlight ray shielding algorithm thread so as to obtain the light ray shielding condition of each sunlight measuring and calculating point; the sunshine duration calculation module is used for respectively calculating whether the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard or not according to the light shielding condition of each sunshine measuring and calculating point obtained by the sunshine light shielding algorithm module and a specified sunshine duration calculation mode, and if the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard, marking the corresponding sunshine duration at the position of the sunshine measuring and calculating point in a first display mode; otherwise, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a second display mode; and the marking font, the font size and the thickness of the sunshine duration in the second display mode are all larger than those in the first display mode, and the marking color of the sunshine duration in the second display mode is different from that in the first display mode.

Optionally, in the real-time sunlight detection system described in any of the above, the rod shadow ray set generating module specifically calculates the rod shadow ray set under the sunlight condition corresponding to the target building at each time interval according to the following steps: step 101, according to the longitude and latitude (lambda, phi) of the target building, the declination angle delta and the true solar time angle omega under the corresponding time gap, and according to sinhsSin phi sin delta + cos phi cos delta cos omegaCalculating to obtain the solar altitude hs corresponding to the target building according toCalculating to obtain a solar azimuth angle As corresponding to a target building; step 102, calculating a rod shadow bus terminal coordinate point P (Xp, Yp, Zp) matched with the maximum height H of the surrounding building, wherein Xp is H × sinAs × costs, Yp is-1 × H × cosAs × costs, and Zp is H; step 103, connecting the coordinate origin O (0, 0, 0) with the rod shadow generatrix terminal coordinate point P to obtain a rod shadow ray OP under the sunshine condition corresponding to the target building under the corresponding time gap, wherein the two-dimensional projection of the rod shadow ray OP is OP0Wherein P is0Coordinates are (Xp, Yp, 0); and 104, respectively executing the steps 101 to 102 according to a preset time interval, and storing the set of rod shadow rays OP under the sunshine condition corresponding to the target building under each time interval as a rod shadow ray set.

Optionally, in the real-time sunshine detection system, the sunshine calculation point generation module specifically determines the sunshine calculation point of the target building according to the following steps: step 201, using a standard floor plane established by multiple segments in a counterclockwise sequence as a reference, obtaining a standard floor plan graph of a target building, extracting coordinates of each end point in the standard floor plan graph, recording the end point positioned at the south-most end as Pt (Xpt, Ypt, Zpt), and recording the end point positioned at the west-most end as PtXmin(Xmin, X0, Z0) where the endpoint Pt at the east-most end is notedXmax(Xmax, X1, Z1); step 202, if the number of the end points positioned at the south-most end exceeds 1, determining that the deflection angle of the target building is 0, otherwise, determining that the target building deflects; step 203, when determining that the target building has deflection, extracting an edge line segment L in which a start point coordinate value Pts (Xstart, Ystart, Zstart) in the standard floor plan graph is overlapped with an end point Pt (Xpt, Ypt, Zpt) positioned at the south-most end, recording the end point coordinate of the edge line segment L as Pte (Xend, Yend, Zend), and establishing a vector V (Xend-Xstart, Yend-Ystart, Zend-Zstart) according to the direction of the edge line segment L; step 204, calculating the included angle between the vector V and the axis vector Vx (1, 0, 0),obtaining a deflection value RotAngle corresponding to a target building; step 205, calculating a deflection angle corresponding to the target building according to the deflection value RotAngle: when in useWhen the deflection Angle is determined to be Angle-90 DEG RotAngle ═ RotAngle-Determining that the deflection Angle is Angle ═ RotAngle; step 206, taking the center of the standard layer house type plane graph as a rotation point, deflecting the standard layer house type plane graph by an Angle of-1 × Angle, and under the state, acquiring each extreme value coordinate point in the rotated standard layer house type plane graph as follows: x ' max, X ' min, Y ' max, Y ' min, Z '; step 207, constructing a circumscribed rectangle of the rotated standard layer house type plane graph according to each extreme value coordinate point, and marking corresponding virtual measuring and calculating points on a south edge line of the circumscribed rectangle according to the requirement of the number or the distance of the measuring and calculating points; and 208, making a vertical line along the standard house type plane of the target building by taking the virtual measuring and calculating point as the bottom end, marking corresponding coordinates on the vertical line as an initial measuring and calculating point according to the height requirement of the measuring and calculating point or the height of the house type floor, and deflecting each virtual measuring and calculating point and the initial measuring and calculating point back to Angle by taking the center of the standard house type plane graph as a rotation center to obtain the sunlight measuring and calculating point corresponding to the south side of the house type of the target building.

Optionally, the real-time sunshine detection system as described in any one of the above, further comprising: and the automatic updating module automatically triggers the rod shadow ray set generating module, the sunshine measuring and calculating point generating module, the sunshine ray shielding algorithm module, the sunshine duration calculating module and the recalculation module to display the new sunshine duration corresponding to each sunshine measuring and calculating point when receiving an instruction of moving or changing any target building or surrounding buildings.

Advantageous effects

According to the latitude and longitude of the target building and the height of the target building, the rod shadow ray set under the sunshine condition corresponding to the target building under each time interval is calculated according to the preset time interval. And then, according to the sunshine measuring and calculating points of the building, respectively calling the rod shadow ray set to each sunshine measuring and calculating point position, and realizing the marking of the sunshine time of the sunshine measuring and calculating points according to whether the ray in the rod shadow ray set is shielded by the barrier or not. And finally, according to a specified sunshine duration calculation mode, counting the sunshine duration of each sunshine measuring and calculating point of the target building, and correspondingly marking the sunshine duration of each sunshine measuring and calculating point. The light that the rod shadow light that this application adopted is concentrated not only matches in the sunshine position of target building, can also compromise simultaneously and carry out the mark to different sunshine time gaps to whether can be directly sheltered from by the barrier through light and obtain the real-time illumination condition of sunshine measuring and calculating point under the different sunshine time gaps, thereby in a flexible way according to the long accurate statistics of realizing effective sunshine duration of calculation mode of different sunshine.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

Drawings

The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:

FIG. 1 is a schematic diagram of the insolation shielding principle upon which the real-time insolation detection method and system of the present invention is based;

FIG. 2 is a top plan view corresponding to FIG. 1;

FIG. 3 is a side view corresponding to FIG. 1;

FIG. 4 is a schematic view of calculating rod shadow rays in the present invention;

FIG. 5 is a schematic flow chart of a real-time sunshine detection method provided by the invention;

FIG. 6 is a flow chart of the detailed calculation steps in the method of the present invention;

FIG. 7 is a plan view of the un-shielded light set and sunshine duration of the un-reached sunshine measuring and calculating point obtained by the present invention

FIG. 8 is a perspective view of the unobstructed ray sets and duration of sunshine for the substandard sunshine calculation points obtained by the present invention;

FIG. 9 is a partially enlarged view of the unreachable point in FIG. 8

FIG. 10 is a side view of the non-occluded light set and the duration of sunshine for the non-standard sunshine calculation points obtained by the present invention.

Detailed Description

In order to make the purpose and technical solution of the embodiments of the present invention clearer, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.

It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

The meaning of "and/or" in the present invention means that the respective single or both of them exist individually or in combination.

The meaning of "up and down" in the present invention means that the direction from the ground to the sun is up, and vice versa, from the viewpoint of facing the building, and is not a specific limitation on the mechanism of the apparatus of the present invention.

Grasshopper (Grasshopper) is a parameterized platform on rhinoceros (rhinono) modeling software, and the platform is mainly used for various three-dimensional modeling. The method is based on CAD (computer Aided design) general three-dimensional modeling and drawing software and a Grasshopper parameterized platform on Rhino modeling software, realizes simulation and calculation of sunlight to obtain data of positions of different sunlight measuring and calculating points of a target building, and accordingly judges and counts effective sunlight duration of the target building according to the data in a specified calculation mode to obtain the sunlight condition of the building.

The real-time sunshine detection system of the invention can be set up to include:

the rod shadow ray set generating module is used for respectively calculating rod shadow ray sets under the sunshine conditions corresponding to the target building under each time gap according to the longitude and latitude and the height of the target building and the preset time gap;

the sunshine measuring and calculating point generating module is used for determining corresponding sunshine measuring and calculating points for each target building;

the sunlight ray shielding algorithm module starts a sunlight ray shielding algorithm thread for each target building respectively, and judges whether the sunlight in the rod shadow ray set is shielded or not for each sunlight measuring and calculating point of the target building through the sunlight ray shielding algorithm thread so as to obtain the light ray shielding condition of each sunlight measuring and calculating point;

the sunshine duration calculation module is used for respectively calculating whether the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard or not according to the light shielding condition of each sunshine measuring and calculating point obtained by the sunshine light shielding algorithm module and a specified sunshine duration calculation mode, and if the unshielded light corresponding to each sunshine measuring and calculating point reaches the sunshine duration standard, marking the corresponding sunshine duration at the position of the sunshine measuring and calculating point in a first display mode; otherwise, marking the corresponding sunshine duration at the sunshine measuring and calculating point position in a second display mode; and the marking font, the font size and the thickness of the sunshine duration in the second display mode are all larger than those in the first display mode, and the marking color of the sunshine duration in the second display mode is different from that in the first display mode.

The system can specifically realize the statistics and calculation of the sunshine duration corresponding to each sunshine measuring and calculating point according to the mode and the steps shown in fig. 5:

firstly, establishing a rod shadow ray set;

then, determining a house type south sunshine measuring and calculating point;

then, executing a sunshine light shielding algorithm thread on each target building in parallel to obtain the real-time illumination condition of sunshine time of each sunshine measuring and calculating point on each target building;

and finally, the effective sunshine duration is accurately counted flexibly according to the requirement of the sunshine duration calculation mode.

In a more specific implementation manner, the rod shadow ray set may be established by the following steps:

1. selecting the maximum height of all buildings to be measured as the maximum height H of the buildings; the equation sinh is calculated by taking the equation sinh of solar altitude and using the parameters of Year (Year), Month (Month), Day (Day), time (Hour, which is required to convert all minute data into Hour, geographical longitude (lambda) and geographical latitude (phi))sSin phi sin delta + cos phi cos delta cos omega, sun azimuth calculation formula:and after correcting the related parameters, obtaining the solar altitude hs and the solar azimuth As at the moment, wherein hsRepresenting the solar altitude (°), A representing the rod shadow azimuth (°), AsRepresenting the sun azimuth angle (°), hsExpressing the solar altitude (°), phi the geographical latitude (°), delta the declination angle (°), and omega the true solar time angle (°);

2. as can be seen from fig. 4, the coordinates of the bar shadow ray bus end point matched to the maximum height H of the building can be represented as x ═ H × sinAs × copies, y ═ 1 × H × cosAs × copies, and Z ═ H, so that the bar shadow ray bus end coordinate point P (Xp, Yp, Zp) at the time can be calculated, where Xp ═ H × sinAs × copies, Yp ═ 1 × H × cosAs × copies, and Zp ═ H, and the point P is connected to the coordinate origin O (0, 0, 0) shown in fig. 4, and the three-dimensional bar shadow ray OP at the time using the coordinate origin as the measured point of the sunshine can be obtained, and the Z value of the point P is changed to 0, and the two-dimensional projection point P of the 0.00 altitude plane in the coordinate system can be obtained0(Xp,Yp,0);

3. Changing the value of time (Hour) according to the time gap precision, repeating the step 2 and the step 3 to obtain a series of three-dimensional rod shadow light rays and corresponding two-dimensional projection points, wherein the collection of the three-dimensional rod shadow light rays is named as a rod shadow light ray collection (the display effect of the rod shadow light ray collection is similar to the ray marks in the figures 7 and 8), all the two-dimensional projection points are connected according to the time sequence and form a two-dimensional graph together with the world coordinate origin O (0, 0, 0), and the two-dimensional projection boundary line is named as a two-dimensional projection boundary line of the rod shadow light ray collection and is called as a projection boundary line for short.

From the formula sinh of the calculation of the solar altitudesSin phi sin delta + cos phi cos delta cos omega, sun azimuth calculation formula:and P (Xp, Yp, Zp) and other related correction parameters, the sun altitude angle and the sun azimuth angle of the area can be calculated at specific moments under the designated geographical longitude and latitude, and accordingly the rod shadow ray with the designated rod height can be obtained. Therefore, the time can be subdivided into adjacent continuous time moments within a period of time, the more the subdivided time moments are, the more the rod shadow light rays are, the more accurate the incident condition of the solar light rays can be simulated, and otherwise, the more inaccurate the incident condition of the solar light rays is. The invention names the time difference between each successive moment as "time gap precision", such as: when the time gap precision is 5 minutes (the time difference is 5 minutes), the continuous time is 8:05, 8:10, 8:15, 8:20.. the interval time of each rod shadow ray is 5 minutes; when the time gap precision is 1 minute (time difference is 1 minute), the continuous time is 8:01, 8:02, 8:03, 8:04.

However, the time changes every minute and every second, and the calculation of the rod shadow ray at every moment is impossible, so that the invention considers that under the premise of setting the time gap precision, the rod shadow ray at each moment can be regarded as representing a short time before and after the moment, and the value of the short time is equal to the time gap precision. Specifically, when the time gap accuracy is 1 minute, the bar hatching line at the 8:01 time (8 hours, 1 minute, 0 second) represents a time period of 1 minute from 8:00:30(8 hours, 0 minute, 30 seconds) to 8:01:30(8 hours, 1 minute, 30 seconds).

Through the demonstration, each rod shadow ray discussed in the invention has two attributes, one is the spatial position of the rod shadow ray at a specific time (the spatial position characteristic of the rod shadow ray is reflected in the part of the '1. shielding principle' of D.2.1), and the other is the time length, and the numerical value of the time length is equal to the 'time gap precision'.

Therefore, under the premise of "time gap accuracy", a large period of time can be represented by a plurality of rod shadow rays (i.e., "rod shadow ray sets"), and the time, the time and the number of the rod shadow ray sets are combined as shown in the following formula:

t ═ txn, (formula 13);

wherein: t represents a time period (minutes); t represents the time gap precision (minutes); n represents the number of rays of the rod shadow ray set.

4. And confirming sunlight measuring and calculating points of which the house type south side obviously influences the sunlight duration value.

The three-model of the residential building generally uses the standard floor plane Plan as the floor to establish the model Brep of the height H, and the overall shape is similar to a rectangle. Therefore, the method takes the standard layer plane as a target for obtaining the measuring and calculating point, uses the plane as a default modeling plane.

The method comprises the following steps:

step 401: establishing a standard floor house type plane by using a plurality of lines according to a counterclockwise sequence, detecting a deflection Angle of the house type plane relative to a (0, -1, 0) direction, wherein the counterclockwise direction is positive, and the clockwise direction is negative;

the specific calculation method is as follows:

4001. establishing a standard layer plane Plan by using a plurality of segments according to a counterclockwise sequence;

4002. obtaining the coordinates of each end point of the Plan of the standard layer, and finding out the end point Pt (X) with the minimum Y valuept,Ypt,Zpt) Point Pt where X is the smallestXmin(Xmin,X0,Z0) Point Pt where X is the largestXmax(Xmax,X1,Z1);

4003. Judging the number of the points with the minimum Y value, if not 1, indicating that the plane Plan of the standard layer has no deflection relative to the plane Plan, the angle is 0 degree, and if 1, indicating that the deflection exists;

4004. when the Y value is the smallestWhen the number is 1, the coordinate value Pt of the starting point is obtained in all the line segments of the plane Plan of the standard layers(Xstart,Ystart,Zstart) Equal to the coordinate value Pt (X)pt,Ypt,Zpt) The coordinates of the end points of the line segments L, L of (1) are Pte(Xend,Yend,Zend) And a vector V (X) is established in the direction of Lend-Xstart,Yend-Ytart,Zend-Zstart);

4005. Using vector V and world coordinate positive X axis vector VX(1, 0, 0) carrying out included angle analysis to obtain a deflection angle RotAngle;

4006. the deflection direction is adapted to the world coordinate system, taking Rhino/Grasshopper as an example, clockwise is negative, and counterclockwise is positive:

when in useThe deflection Angle is Angle-RotAngle-90 degrees;

when in useThe deflection Angle is Angle ═ RotAngle;

step 402: the house type is rotated by an Angle of-1 × Angle with the center point of the house type plane as a rotation point CenterPt to a non-deflection state, that is, the deflection Angle is 0 DEG, and in this state, the extreme value (X 'of the coordinates of all the points of the house type plane is obtained'max,X’min,Y’max,Y’minZ') to construct two south vertices of the house-type bounding rectangle, i.e. (X)min,Ymin,Z)、(Xmax,YminZ), so as to establish a south line and establish virtual sunshine measuring and calculating points on the line segment according to the number or the distance of the measuring and calculating points;

step 403: making a vertical line with the virtual measuring point and a standard house type plane, wherein the vertical point is the plane

Adjusting Z value to construct measuring points at different elevations, deflecting Angle with CenterPt as central point to return to initial state, and obtaining "house-type south sunshine measuring point"

5. Comparing the two-dimensional projection range of the rod shadow ray set corresponding to the target building with the longitude and latitude positions of surrounding buildings, if the surrounding buildings are in the two-dimensional projection range of the rod shadow ray set, recording the surrounding buildings as obstacles and jumping to the 6 th step, otherwise, jumping to the 10 th step;

6. sequencing the obstacles according to the distance between the obstacles and the target building;

7. calling the rod shadow ray set to each sunshine measuring and calculating point of a target building, and marking the serial number of each ray in the rod shadow ray set according to the sequence of the solar azimuth angle;

8. respectively establishing 3 memories for each sunshine measuring and calculating point of the target building, storing the rod shadow light set in the fifth step and the serial number marked by each light in the rod shadow light set by using the first memory, storing the serial number of the light shielded by the obstacle by using the second memory, and storing the serial number of the light not shielded by the obstacle by using the third memory;

9. and respectively taking each sunshine measuring and calculating point as a base point, and sequentially judging each obstacle as follows: acquiring an azimuth angle range between the boundary of an obstacle and a base point, calling all light rays positioned in the azimuth angle range from a first memory, judging whether the called light rays are intersected with the obstacle, if so, moving the light rays to a second memory, and if not, moving the light rays to a third memory;

10. and respectively calling the light rays in the third storage corresponding to each sunshine measuring and calculating point according to the requirement of a specified sunshine duration calculating mode, and calculating whether the sunshine measuring and calculating point reaches the sunshine duration standard or not.

The principle of the sunlight shielding algorithm adopted in the above scheme is explained below.

As shown in fig. 1, 2 and 3. The condition that no light enters the sunshine measuring and calculating point (the light is blocked) needs to satisfy the following two formulas at the same time:

as is less than or equal to minAs and less than or equal to maxAs; (formula 1)

Wherein:

minAs, the minimum angle between the relation formed by the south building of the measuring and calculating point and the positive south direction, i.e.

COS, which is the angle between OC and the forward south in fig. 2;

maxAs: the maximum included angle between the south building of the measuring and calculating point and the south relative to the normal south direction, i.e. the maximum included angle

Angle DOS, the angle between OD and the forward south in fig. 2;

as: the sun azimuth angle at the moment is shown as ≈ BOS in fig. 1;

h, measuring and calculating the height of a south building of the point, wherein the height of a No. 2 building is shown in figure 1;

Hp2measuring and calculating the relative elevation from the bottom of the south building to the elevation of 0.00, wherein the elevation of the bottom of the 2# building is shown in figure 1;

Hp1measuring and calculating the relative elevation from the bottom of the building where the point is located to the elevation of 0.00, wherein the elevation of the bottom of the building No. 1 in the figure 1 is measured;

homeasuring and calculating the height from the point to the bottom of the building, wherein the height from the point O to the plane of the bottom of the No. 1 building is shown in figure 3;

LAs: in the vertical plane of the solar azimuth angle As at the moment, the shortest distance from the point to the south building is measured and calculated, and the length of OB is shown in fig. 3;

hs: the solar altitude at this moment is ≈ LOB in fig. 3.

The meaning of the letters in fig. 1 to 3 is explained:

1#, 2#, two buildings with numbers 1, 2

O: 1# building south sunlight measuring and calculating point;

a: the solar ray OL passes through the intersection point on the side closer to the point O after passing through the No. 2 building;

b: the projection point of the point A on the plane where the point O is located;

c: a line segment connected with the No. 2 building boundary and the O point forms a point with the minimum included angle with the normal south direction;

d: a line segment connected with the No. 2 building boundary and the O point forms a point with the maximum included angle with the normal south direction;

h: height of building # 2;

l: virtual sun position at a particular time;

s: the right south direction of the plane where the point O is positioned

East \ West \ South \ North: east, west, south, north lines of the + -0.00 standard plane;

OL: the sun ray at the moment;

the following specifically describes a calculation process for realizing the sunlight shielding situation by applying the above principle with the scenes shown in fig. 7 and 8.

Referring to FIG. 6:

the method comprises the following steps: the method comprises the steps of inputting date information, longitude and latitude information, sunlight standard duration, time gap precision and residential building height information, establishing a local solar azimuth angle and solar altitude angle data set under the precision condition, calculating according to the azimuth angle data set, the altitude angle data set and building parameters to obtain a three-dimensional bar shadow ray set of the building and two-dimensional projection of the three-dimensional bar shadow ray set, and accordingly establishing a two-dimensional projection boundary line.

Step two: and starting a parallel thread for each building. And each thread respectively executes the following steps three to eight. The threads of each building are independent, and the threads can calculate the light which is not shielded by each sunshine measuring and calculating point of each building according to the rod shadow light set in one step.

Step three: the elevation, the clearance or the number of measuring and calculating points are set for each building, and necessary sunlight measuring and calculating points are generated on the south side of the building.

Step four: detecting whether the building has an obstacle or not by using a two-dimensional projection boundary line of the rod shadow ray set, outputting all measuring points of the building and sunshine duration data of the building if no obstacle exists, setting duration values as standard sunshine durations required locally, and skipping to the ninth step; if the obstacle exists, the subsequent steps are continued.

Step five: reordering the obstacles of the building from near to far according to the distance;

step six: and (3) calling the rod shadow ray set with the corresponding height in the step one to the measuring and calculating point of each building, marking a serial number for each ray of the point, and enabling the serial number data to be in one-to-one correspondence with the serial number of the solar azimuth angle data set in the step one.

Step seven: establishing three data storages for each measuring and calculating point, wherein the first storage is used for storing the rod shadow ray set and the serial numbers in the step six, the second storage is used for storing the serial numbers of all the shielded rays, and the third storage is used for storing the rays which are not shielded and the serial numbers thereof;

step eight: and taking the measuring and calculating point as a base point, acquiring an azimuth angle range between the first barrier boundary and the base point in the fifth step, reading all the rod shadow rays and serial numbers in the range from the first storage, performing intersection judgment by using the rays and the barriers, if the rays and the barriers intersect, indicating that the rays are shielded, storing the serial numbers of the shielded rays in the second storage, and if the rays and the barriers do not intersect, indicating that the rays are not shielded, and storing the rays and the serial numbers in the third storage. And carrying out the same solar azimuth angle range acquisition process on the second and later obstacles, acquiring rod shadow rays and serial numbers in the azimuth angle range each time in the first storage, judging whether the serial numbers of the rays are in the second storage, if so, not needing to carry out intersection judgment, if not, continuing to carry out intersection judgment, and respectively storing the judgment results in the second or third storage. And repeating the process of the step until all the obstacles are judged, and finally obtaining the data of the third storage of the measuring and calculating point, namely the unblocked light and the serial number.

Step nine: and processing the sunshine data output by each measuring and calculating point according to a local required sunshine duration accumulation mode to obtain the sunshine duration meeting the requirements. Example (c): the method for accumulating the local required sunshine duration is as follows: and 2 hours of sunshine standard in cold days, the accumulation is not more than 2 sections, and each section is not less than 30 minutes. In the actual sunshine process, the time periods of the sunlight irradiation at a certain measuring point are assumed to be 9:00-9:25, 10:20-11:15, 14:40-15:25, the continuous time is 25 minutes, 55 minutes and 45 minutes respectively, and the actual accumulated time is 3 periods of 2.08 hours (25+55+45 is 125 minutes). However, according to the accumulation mode, the time period which is the first 2 periods with longer time and is more than or equal to 30 minutes is calculated, the specified time periods are 10:20-11:15 and 14:40-15:25, the time period is accumulated for 1.67 hours (55+45 is 100 minutes) according to the specification, and the 2-hour sunshine standard required by the specification is not met. The specifications are more stringent than they are in practice.

The specific calculation method for the duration T is as follows:

901. acquiring a third storage after the seventh step, wherein the third storage stores the unshielded light and the serial number thereof;

902. grouping the three storages according to the standard that the difference value of two adjacent serial numbers is 1 to obtain K0Group data;

903. counting the number N of light rays in each groupkData N is calculated according to the method of T ═ T × NkPerform a time length calculation TkIf time length TkDiscarding in less than 30 minutes, otherwise, keeping; wherein t represents the time gap accuracy (minute), and N represents the number of rays of the rod shadow ray set;

904. according to TkIn the order of size, the first 2 groups of data T are taken1、T2If less than 2 groups, 1 group T is selected1Cumulative T1、T2Or T2The final duration is obtained.

Step ten: judging whether the sunshine duration of each measuring and calculating point in the ninth step meets the sunshine standard required by local specifications, if so, only displaying the sunshine duration at the measuring and calculating point, wherein the display attribute is black and a fixed value; if not, displaying the unshielded ray set at the measuring and calculating point, wherein the display attribute of the sunshine numerical value is red, the font size scales with the window size in the same proportion, and the effect is shown as the effect of figure 9 or figure 10.

Step eleven: on the CAD platform, a program can be reset by setting the program to acquire a mouse or keyboard signal, and the steps from one step to ten step are automatically repeated; and on the Grasshopper platform, the program is restarted by detecting the change of any building parameter or the movement of any building model, and the steps from one step to ten are automatically repeated.

To sum up, the present invention first calculates the sunshine condition of the target building at each time interval, and records it in the form of rod shadow ray set. And then calling the rod shadow ray set to each sunlight measuring and calculating point position according to the sunlight measuring and calculating points of the building, and marking the sunlight time according to whether the rays in the rod shadow ray set are shielded by the barrier or not. And finally, according to a specified calculation mode, counting the effective sunshine time of each sunshine measuring and calculating point to obtain the sunshine duration of each sunshine measuring and calculating point. The light that the rod shadow light that this application adopted is concentrated not only matches in the sunshine position of target building, still takes into account simultaneously and marks different sunshine time gaps, can directly obtain the real-time illumination condition of sunshine measuring and calculating point under the different sunshine time gaps through whether light is sheltered from by the barrier, and the nimble requirement according to the long calculation mode of sunshine is accurate to realize the statistics long to effective sunshine.

The application has the advantages that:

1. only the sunlight shielding condition of necessary sunlight measuring and calculating points is calculated, and the calculation resources are saved

The invention establishes a set of algorithm which can generate a specified number or spacing of sunshine measuring and calculating points at a specified elevation of the south of the residential house type, and the algorithm does not calculate unnecessary sunshine points, thereby greatly saving calculation resources; and multithread coding is adopted, CPU resources of the computer are fully utilized, and the operation speed is accelerated.

2. Dynamic sun exposure

Specific instructions are added on a CAD/rhino (Grasshopper) three-dimensional modeling platform, and an algorithm program can synchronously update, calculate and synchronously display along with the adjustment (such as plane change, height change, position change and the like) of a building model. The process and time of repeated operation of operators can be simplified, and the operation is more smooth and convenient.

3. The sunlight numerical value has good visual readability

The invention establishes a simple sunshine duration display mode: and only setting up sunshine display at necessary measuring and calculating points, and eliminating visual interference of unnecessary points. Each measuring and calculating point calculates and displays the sunshine numerical value of the point according to a sunshine duration accumulation mode, and the numerical value has two attributes of color and size; when the sunshine numerical value does not reach the standard sunshine duration, the numerical value is displayed in red, the font size and the size of the operation window are in fixed proportion, and the font size and the operation window size are scaled in the same proportion; when the target is reached, the value is displayed as black and the font size is a fixed value (which can be adjusted manually), and does not change as the window size changes. The method can eliminate the visual influence of unnecessary points, eliminate the interference of the points which reach the standard, enhance the readability of sunlight data and avoid judgment errors caused by human factors.

4. Multiple sunshine duration calculation modes

Various sunshine duration accumulation modes are established: mode 1 is to accumulate all sunshine time in the effective time period, and mode 2 is the requirement of the sunshine specification of most local residential buildings at present, namely, the continuous sunshine duration is accumulated in a segmented manner, if the sunshine standard is 2 hours on a big cold day, the continuous sunshine time period does not exceed 2 segments, and each segment is not less than 30 minutes. Wherein, the 'cold day', '2 hours', '2 segments' and '30 minutes' are variables, and different regions can be different. The invention can conveniently and quickly meet the sunshine specifications and various calculation rules of all places, and greatly reduces the sunshine re-detection work caused by different algorithms.

5. Clear sunshine duration and shielding relation. According to the invention, the light shielding condition and the sunshine duration value are intuitively associated, so that the relationship between the light shielding condition and the sunshine duration value can be clearly and conveniently displayed, and the efficiency of adjusting the building layout by an operator is improved.

5.1 on the principle of the sunshine rod shadow map and the sunshine cone map, improving a constant length bus in the sunshine cone map into an indeterminate length line generated based on the measurement of the maximum height in the building, and then improving a sector net shape into a sector light set consisting of the indeterminate length lines at each moment on the basis of the sunshine rod shadow map;

5.2 applying the rod shadow ray set to each sunlight measuring and calculating point to obtain the accurate shielding relation between the ray set of the point and the surrounding buildings, calculating the sunlight duration of the measuring and calculating point according to a sunlight duration accumulation mode, and displaying the sunlight value according to the display mode established by the invention when the sunlight duration does not reach the standard;

5.3 only when the sunshine duration of the measuring and calculating point does not reach the standard, the rod shadow ray set which is not shielded at the point is displayed, and the rod shadow ray set which reaches the standard is not displayed, so that the visual interference of the measuring and calculating point which reaches the standard is eliminated, and the shielding relation is clearly displayed.

The invention integrates the advantages of the sunshine rod shadow map and the sunshine cone map. a. The sunlight measuring method is similar to a traditional sunlight cone diagram, and can still display the space position and the angle of sunlight incident to a measuring point at each moment, wherein the difference is that each line with different length essentially shows that the regional range of the sunlight duration of the measuring point can be influenced at different moments, namely, if the line has intersection with a certain line, the light is shielded, otherwise, the light is not shielded if the line has no intersection; b. the lines at all times form a continuous surface in space, the overall shape is similar to that of the traditional sunshine rod shadow map, the difference shape is formed by the lines instead of curved surfaces, and therefore the unshielded light can be clearly calculated and displayed, and the traditional sunshine rod shadow map cannot display the shielding relation of each specific light

The above are merely embodiments of the present invention, which are described in detail and with particularity, and therefore should not be construed as limiting the scope of the invention. It should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the spirit of the present invention, and these changes and modifications are within the scope of the present invention.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种中小流域面雨量预警装置及其预警系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!