A kind of method for fast establishing of non-rotational symmetry lighting system model
Technical field
The invention belongs to non-imaged lighting areas, and in particular to a kind of fast run-up of lighting system model based on LED light source
Vertical method.
Background technique
Currently, generally requiring three steps when carrying out the design of secondary optics light distribution: step 1, in building light source and target face
Mapping relations after, the numerical solution on lighting system surface is calculated by numerical analysis software (such as Matlab).Step 2, it will walk
The numerical solution acquired in rapid 1 is directed into 3 d modeling software (such as SolidWorks), establishes physical model.Step 3, by entity
Model is directed into lighting simulation software (such as TracePro), carries out sunykatuib analysis.But such light distribution design scheme needs make
It is operated with multiple software collaborations, will increase the complexity of design to a certain extent.
In particular, be extended light-source illuminating system it is feedback optimized when, surface data needs continuously transmitted in three softwares,
And the manual transmission of conventional method greatly limits the freedom degree of design.Also, we have also been found that the structure in modeling software
Can be more plus cumbersome when building non-rotationally-symmetric mechanical model, when iteration optimization, the working efficiency of designer is rapidly reduced.
In view of the foregoing, the present invention proposes a kind of method for fast establishing of non-rotational symmetry lighting system model, it is intended to
Simplify its design process, by the data channel between numerical analysis software and lighting simulation software, realizes that step 1 arrives step 3
Direct transition.
Summary of the invention
Present invention seek to address that the problem of above-mentioned non-rotational symmetry illumination system layout process, invent a kind of non-rotation
Turn the method for fast establishing of symmetric illumination system model.
For this purpose, overall technical architecture of the present invention is as follows:
Firstly, calculating the surface point of non-rotational symmetry lighting system in Matlab using the principle of grid energy binned
Cloud data;In turn, it is communicated by DDE (Dynamic Data Exchange), establishes numerical analysis software Matlab and illumination is imitative
Channel between true software TracePro, point cloud data is transmitted in TracePro;Finally, passing through TracePro macrolanguage logarithm
Strong point is fitted, and quickly forms physical model using microtomy.
Fast modeling method proposed by the present invention, which is characterized in that the specific design procedure is as follows:
Step 1: the calculating at non-rotational symmetry pattern number strong point;
Lighting system surface point cloud data is calculated by grid dividing method, firstly, with the foundation of point light source Energy distribution
It plays spherical coordinate system and is divided into m parts (m=1,2,3 ... M) along the angle θ of warp direction respectively along the energy binneds light source such as latitude and longitude,
Along weft directionAngle is divided into n parts (n=1,2,3 ... N);In turn, by rectangular target face along transverse and longitudinal direction (corresponding longitude and latitude side
To) divide m × n parts of homalographics unit rectangle, establish enantiomorphic relationship;Finally, two masters of building lighting system direction of warp and weft
Secondary bus, derivative whole point cloud data P (n, m);
Step 2: constructing physical model using microtomy;
A) based on the data transmission of DDE communication
The process communication between software is established using order " channel=ddeinit (' TracePro', ' Scheme') ";
The face type data being calculated through DDE function transfer into TracePro server, are adjusted using Matlab as client
Order are as follows: ddpoke (' channel', ' Matlab data').
B) the preferentially selection at characteristic strong point
When carrying out calculating tri-dimensional facial type, the bus for determining warp direction is main bus-bar, and weft direction is time bus, and gained is derivative
Data point generates (number of derivative line is m item, and the data amount check of every derivative line is n) each along weft direction, to reduce
Operand of the data in TracePro is selected according to the smoothness requirements of system surfaces and light source intensity characteristic along weft direction
It is preferred that taking characteristic strong point.
C) concrete operations of microtomy
Characteristic strong point is subjected to setting-out processing by TracePro macrolanguage (Scheme language), batten mode is three
Secondary Splines Interpolation Curve (cubic-spline), b spline curve (b-spline), the middle selection of continuous batten (spline);Again will
The both sides endpoint of spline curve is connected with origin, forms a sliced surfaces;After circulation repeatedly carries out aforesaid operations, by every weft
The derivative line endpoints in direction connect origin, form sliced surfaces group, and the basic side structure frame of system is formed;Pass through Scheme language
Speech, carries out the sliced surfaces group between the structure frame of face to scan adult
Through the above steps 1 and step 2 can quickly realize rapidly inputting for non-rotational symmetry lighting system model.
Fast modeling method proposed by the present invention, be compared with the traditional method have the advantage that it is as follows:
A) present invention is realized lighting system model and is automatically and rapidly generated by Dynamic cata exchange (DDE) technology,
And it does not need model can be directly inputted into lighting simulation software through mechanical modeling software.
B) the method has certain program ductility, when program of the addition about extended light illumination system iterative feedback
The drawbacks of can carrying out Automatic Optimal when module, avoiding traditional manual optimization.
C) present invention proposes the microtomy of building model, there is stronger universality, for general axisymmetric threedimensional model
All model, such as rotational symmetry structure, non-rotationally-symmetric street lamp peanut shell structure can be quickly established using this.
Detailed description of the invention
Further detailed description is done to fast modeling method proposed by the invention below by way of attached drawing:
Fig. 1 is the overall flow figure of technical solution of the present invention;
Fig. 2 is the even lens system lighting parameter schematic diagram based on rectangular target face;
Fig. 3 is Matlab lighting system line composition;
Fig. 4 is to scan schematic diagram based on microtomy;
Fig. 5 is derivative line physical model generated when being 15;
Fig. 6 is derivative line physical model generated when being 45;
Fig. 7 be derivative line be 45 when physical model emulation illumination figure;
Fig. 8 be derivative line be 45 when physical model emulation plot of light intensity;
The even lighting system of lens of 1-, 2-LED point light source, 3- rectangular target face, 11- dash area.
Specific embodiment
It in order to which the present invention will be described in detail, is illustrated below in conjunction with attached drawing, but example discussed below is only used
It is of the invention in explaining.
Fig. 1 is the overall flow figure of technical solution of the present invention, mainly with the DDE communication equipment between Matlab and TracePro
It is made as medium, system surfaces computing module is organically combined together with mechanical modeling.Wherein Matlab is responsible for according to mapping
Relationship carries out data processing, and TracePro is responsible for carrying out hypostazation operation to data using schenme language and microtomy.
Fig. 2 is one embodiment lifted using the present invention: the even lens system rapid modeling in rectangular target face, the system
Subordination is in a kind of non-rotational symmetry structure.Even lighting system of lens 1 is designed based on LED point light source 2 in embodiment, light intensity
Curve is distributed according to lambert's function, and illumination target is in vertical wheelbase of the point light source 1 away from rectangular target face 3 from generation a*b at H
Uniform Illumination.In turn, it is rapidly input by microtomy into lighting simulation software.
Specifically there is the parameter of lighting system in the embodiment: lens height h is 10mm, length H of the target face away from light source
It is 40000mm and 10000mm respectively for 10000mm, long a, the width b of target face, and lens material selects acrylic (PMMA).
According to above-mentioned illumination design parameter, the key step of design is as follows:
Step 1: the calculating at non-rotational symmetry pattern number strong point.
Lighting system surface point cloud data is calculated by grid dividing method, firstly, with the foundation of point light source Energy distribution
It plays spherical coordinate system and m parts (M 100) is divided into along the angle θ of warp direction, along weft respectively along the energy binneds light source such as latitude and longitude
DirectionAngle is divided into n parts (N 100);In turn, rectangular target face is divided 100 along transverse and longitudinal direction (corresponding direction of warp and weft) ×
The unit rectangle of 100 parts of homalographics, establishes enantiomorphic relationship;Finally, two primary and secondary buses of building lighting system direction of warp and weft, spread out
Raw whole point cloud data P (n, m);
Fig. 3 is to carry out calculating obtained system line composition using Matlab, and point cloud data is three dimensional space coordinate.Cause
This needs to carry out second step hypostazation operation if you need to obtain physical model.
Step 2: constructing physical model using microtomy.
A) based on the data transmission of DDE communication
Firstly, this method needs the DDE information channel in structure figures 1, use " channel=ddeinit ('
TracePro', ' Scheme') " order foundation.And the above-mentioned face type data P (n, m) being calculated need to be used and be passed through DDE function
It is transmitted in TracePro server, the order called are as follows: ddpoke (' channel', ' Matlab data'), wherein
Matlab data is the three-dimensional coordinate of system.
B) the preferentially selection at characteristic strong point
As shown in figure 3, the bus for generally determining warp direction is main bus-bar, weft direction when carrying out the calculating of tri-dimensional facial type
For secondary bus, therefore obtained a large amount of generaton number strong point is along weft direction and generates that (number for then deriving line is 100
Item, the data amount check of every derivative line are 100), but in order to reduce operand of the data in TracePro, need according to being
The smoothness requirements and light source intensity characteristic on system surface are preferentially chosen.
C) concrete operations of microtomy
Firstly, carrying out the setting-out of TracePro macrolanguage (Scheme language) along the data point that weft direction is preferentially chosen
It handles, chooses continuous batten (spline) in embodiment and operated.In turn, by the derivative line both sides endpoint of formation and origin phase
Even form a sliced surfaces.As shown in face OP (1, m) Q and face OP (1, m-1) Q in Fig. 4, sliced surfaces belong to a kind of massless
Thin slice.
Circulation repeatedly carries out available a series of sliced surfaces group, i.e. the basic side structure frame shape of system after aforesaid operations
At.But face structure frame at this time also needs to carry out model entity operation because not being entity.
Hypostazation operation can carry out the sliced surfaces group between the structure frame of face to scan adult by Scheme language.Such as
Dash area 11 in Fig. 4 are exactly to be scanned between face OP (1, m) Q and face OP (1, m-1) Q by macrolanguage, iteration
After can form entity.
Through step 1 and step 2, physical model can be established quickly on the surface of lighting system.But it is preferentially choosing
It cannot be sampled when data very few.
If Fig. 5 is to sample the physical model generated when derivative line is 15, it can be found that there are apparent corner angle on its surface, with
Required model difference is larger.And if Fig. 6 is to sample the physical model generated when derivative line is 45, surface relative smooth,
Therefore when doing rudimentary model design, the derivative line number mesh of sampling is more preferably greater than 45.
The physical model that Fig. 7 and Fig. 8, which is using derivative line respectively, to be generated when being 45 emulates illumination and plot of light intensity, it can be found that
Illumination Distribution is substantially uniform, and light distribution also substantially meets bat aerofoil profile, and it is practical for can also proving method proposed by the invention
It is feasible.
The method also has certain program ductility, when program of the addition about extended light illumination system iterative feedback
The drawbacks of can carrying out Automatic Optimal when module, avoiding traditional manual optimization.