Abstract:
In a three-dimensional model design assistance system in which design rules are registered in advance, it is difficult to manually input all of an enormous number of device placement rules including the distances and directions between respective devices in a design. Information relating to the relative distances and relative directions between respective devices included in performance CAD data is extracted. With respect to each of the extracted relative distances and relative directions in a plurality of cases, a correlation with a performance requirement specification value, and a placement priority are calculated and held as device placement rules. At design time, requirement specifications are inputted, accessory devices are determined, and thereafter the devices are placed according to placement priorities on CAD on the basis of the device placement rules.

Description:
TECHNICAL FIELD 
       [0001]    The present invention relates to a device placement automatic calculation apparatus. 
       BACKGROUND ART 
       [0002]    JP-A-2011-253269 (PATENT LITERATURE 1) is a background art of the present invention, PATENT LITERATURE 1 discloses that “A three-dimensional model design assistance system includes a design rule storage unit for registering a design rule using an attaching direction of a three-dimensional model and a three-dimensional model storage unit for registering a name, a kind, a direction, an assembly order, adjacency information, and the like of a component output from the three-dimensional model of a product. The three-dimensional model design assistance system checks the design rule by using the attaching direction of the three-dimensional model and informs an operator of whether the three-dimensional model violates the design rule” (refer to ABSTRACT). 
       CITATION LIST 
     Patent Literature 
       [0000]    
       
         PATENT LITERATURE 1: JP-A-2011-253269 
       
     
       SUMMARY OF INVENTION 
     Technical Problem 
       [0004]    PATENT LITERATURE 1 discloses a system for assisting a design based on a rule stored in a design rule storage unit. However, in a three-dimensional model design assistance system in which design rules have been previously registered, it is difficult to manually input all the enormous number of device placement rules such as a distance and direction between respective devices in a design. 
         [0005]    Therefore, the present invention provides an apparatus which automatically calculates a device placement rule from computer aided design (CAD) data of actual cases, 
       Solution to Problem 
       [0006]    To solve the above-described problem, the present invention is configured to: extract a relative distance and a relative direction of each device from the actual CAD data; determine whether a required specification value in the actual specification data and the extracted relative distance or relative direction have a correlation in a plurality of cases in the past; and extract a rule between the devices regarding whether the required specification value in the actual specification data and the extracted relative distance or the relative direction of each device have the correlation. 
       Advantageous Effects of Invention 
       [0007]    The present invention has an effect to reduce design man-hours. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0008]      FIG 1  is a function configuration diagram according to an embodiment of a device placement automatic calculation apparatus of the present invention. 
           [0009]      FIG. 2  is a flowchart of device placement rule extraction processing. 
           [0010]      FIG. 3  is exemplary tables of actual case data and a device placement rule. 
           [0011]      FIG. 4  is a flowchart of detailed processing for extracting the device placement rule. 
           [0012]      FIG. 5  is a flowchart of new design plan creation processing. 
           [0013]      FIG. 6  is a flowchart of device placement processing. 
           [0014]      FIG. 7  is exemplary device arrangements. 
           [0015]      FIG. 8  is an exemplary screen display. 
           [0016]      FIG. 9  is a diagram to describe a relative direction. 
       
    
    
     DESCRIPTION OF EMBODIMENTS 
       [0017]    An embodiment of the present invention will be described below with reference to the drawings. 
       First Embodiment 
       [0018]      FIG. 1  is a function configuration diagram according to an embodiment of the present invention. The present invention includes a device placement rule extraction processing unit  1  which extracts a device placement rule from actual case GAD data in the past held by an actual CAD database  6  and a required specification value of the same actual case held by an actual specification value database  7 . When a new design plan is created, the required specification value is input from a required specification inputting unit  2 , and a device configuration selection processing unit  3  selects a device which satisfies the required specification. A device placement plan creation processing unit  4  creates a placement plan based on the required specification value input by the required specification inputting unit  2  and the device placement rule which has been extracted by the device placement rule extraction processing unit  1  and corresponds to configuration of devices. Finally, a design plan outputting unit  5  outputs a design plan from the created placement plan. 
         [0019]    Each processing will be described below. 
         [0020]    First, the processing by the device placement rule extraction processing unit  1  will be described with reference to  FIG. 2 . 
         [0021]    The device placement rule extraction processing unit I obtains the CAD data and the required specification value of the actual case in the past (S 21 ), the actual CAD database  6  and the actual specification value database  7  respectively hold the CAD data and the required specification value. 
         [0022]    Next, a reference point coordinate of each device included in the CAD data is obtained (S 22 ). As the reference point, it is preferable to use the center of gravity of each device, a design reference point of each device, and the like. 
         [0023]    After the reference point coordinate of each device has been extracted, a relative distance and a relative direction between the devices are calculated (S 23 ). Here, the relative distances and the relative directions of all the combinations of two devices which have been optionally selected from among a plurality of devices in the actual case are calculated. As processing before the calculation, in order to reduce a calculation amount, filtering can be performed such that a device which has small effect on the device placement and has the size smaller than a predetermined value is not calculated. Also, a combination of devices which are normally used as a unit can be assumed as a single device. 
         [0024]    Here, a distance between the reference point coordinates of the respective devices is defined as the “relative distance”. Also, a unit vector in a direction between the devices is defined as the “relative direction”. The unit vector has the reference point coordinate of one device as a start point and the reference point coordinate of another device as an end point. 
         [0025]    The relative direction will be described, with reference to  FIG. 9 . The relative direction can be expressed on a coordinate system of one device. For example, a global coordinate system is expressed as O ( o x,  o y,  o z). At this time, it is assumed that a device A and a device B exist on the global coordinate system. It is assumed that a global coordinate of the device A be  o A =( o x A ,  o y A ,  o z a ) and a global coordinate of the device A be  o B=( o x B ,  o y B ,  o z B ). Here, when an A coordinate system ( A x,  A y,  A z) having the reference point of the device A as a reference is newly defined, a relative coordinate of the device  13  on the A coordinate system ( A x,  A y,  A z) can be expressed as  A B=( A x′ B ,  A y′ B ,  A z′ B ). The relative coordinate can be calculated by assuming that  A B= o B− o A. The unit vector in the direction of the relative coordinate is the relative direction. 
         [0026]    The process from S 21  to S 23  is repeated by the number of the actual cases. Exemplary data of the actual cases is illustrated in  FIG. 3( a ) . A case number  311 , a required specification value  312 , a relative distance  313 , and a relative direction  314  are held for each actual case. 
         [0027]    After the relative distances and the relative directions of the actual cases have been accumulated, a correlation between the required specification value and the relative distance, a correlation between the required specification value and the relative direction, and a placement priority are calculated (S 24 ). The process S 24  will be described in detail below. 
         [0028]    Finally, the correlation between the required specification value and the relative distance, the correlation between the required specification value and the relative direction, and the placement priority which have been calculated in S 24  are held as a device placement rule (S 25 ). Exemplary device placement rules are illustrated in  FIG. 3( b ) . In the device placement rule, a kind of value  321 , existence of correlation with the required specification value  322 , a fixed distance and fixed direction  323 , a regression formula  324 , and a placement priority  325  are held. 
         [0029]    Here, the process S 24  for calculating the correlation between the required specification value and the relative distance, the correlation between the required specification value and the relative direction, and the placement priority will be described in detail with reference to  FIG. 4 . 
         [0030]    First, regarding the relative distance, following processing will be performed. Here, in a case where the relative distance is not changed even when the required specification value is changed, the relative distance is assumed as a “fixed distance”. On the other hand, in a case where the relative distance is changed when the required specification value is changed, the relative distance is assumed as a “variation distance”. 
         [0031]    First, it is determined whether the relative distance between the selected devices is the fixed distance or the variation distance. An average value of the relative distances between the selected devices is obtained. When the relative distances of all the actual cases are within an error range of the average value, it is determined that the relative distance between the devices is the fixed distance. Then, the average value is held in the fixed distance and fixed direction  323  while assuming the kind of value  321  as the “fixed distance” (S 411 ). In the example in  FIG. 3( a ) , when an allowable error of the relative distance between a device A and a device C is equal to or less than 20 [mm], the relative distance is 2500±20 [deg] regardless of the required specification value. Therefore, it can be determined that the relative distance between the devices A and C is the fixed distance of 2500 [deg]. The allowable error can be set by using a percentage, a value or the like. 
         [0032]    When the relative distance is not within the error range of the average value, it is determined that the relative distance between the devices is the variation distance. While assuming the kind of value  321  as the “variation distance”, the correlation between the variation distance and the required specification value is analyzed (S 412 ). 
         [0033]    When there is a required specification value having a correlation coefficient which is equal to or larger than a threshold for the relative distance, it is determined that the relative distance and the required specification value have a correlation. The existence of correlation with the required specification value  322  is “having correlation”. In addition, a regression formula is obtained by performing regression analysis by using the required specification value as an explanatory variable and the relative distance as an explained variable, and the obtained regression formula is held in the regression formula  324  (S 413 ). The threshold of the correlation coefficient can be set by using a percentage or a value. In the example in  FIG. 3( a ) , correlation coefficient with a relative distance between the devices A and B and a volume in the required specification value of “Capacity” is 0.97, and accordingly, it is determined that the relative distance between the devices A and B have the correlation with the “Capacity”. By the regression analysis, a regression formula having an intercept of −40 and a regression coefficient of 3.4 can be obtained. 
         [0034]    When the correlation coefficients with all the required specification values are smaller than the threshold, it is determined that the relative distance and the required specification value have no correlation. The existence of correlation with the required specification value  322  is “no correlation” (S 414 ). Correlation analysis processing of the relative distance from S 411  to S 414  is performed for each distance between the devices. 
         [0035]    Next, following process will be performed to the relative direction. Here, in a case where the relative direction is not changed even when the required specification value is changed, the relative direction is assumed as the “fixed direction”. On the other hand, in a case where the relative direction is changed when the required specification value is changed, the relative distance is assumed as a “variation direction”. 
         [0036]    First, an average unit vector is calculated which will be criteria of the fixed direction and the variation direction (S 421 ). At this time, a composite vector in which the relative directions of all the actual cases have been synthesized is calculated. Then, extract the unit vector of the composite vector as the average unit vector. 
         [0037]    Next, angles formed by the relative directions of all the actual cases and the average unit vector are obtained. When the formed angles of all the actual cases are within the error range of the average unit vector, it is determined that the relative direction between the devices is the fixed direction. In this case, the kind of value  321  is the “fixed direction”. In addition to the case, the average unit vector is held in the fixed distance and fixed direction  323  (S 422 ). In the example in  FIG. 3( a ) , when the error range is within 5 [deg], all the relative directions between the devices A and B are within the error range. Therefore, it is determined that the relative direction is the fixed direction, and (0.64, 0.64, 0.43) of the average unit vector is held as fixed values. 
         [0038]    When the angle formed by the relative direction and the average unit vector is not within the error range, it is determined that the relative direction between the devices is the variation direction. The kind of value  321  is the “variation direction”, and the correlation between the variation direction and the required specification value is analyzed (S 423 ). 
         [0039]    When there is a required specification value having a correlation coefficient equal to or more than the threshold, the regression analysis is performed as assuming that the existence of correlation with the required specification value  322  is “having correlation”. The regression formula  324  holds the regression formula (S 424 ). In the example in  FIG. 3( a ) , a correlation coefficient between the relative direction between the devices A and D and a voltage regarding a rotation angle θ around the x axis is 1.00, a regression formula having an intercept of −120 and a regression coefficient of 0.15 can be obtained. 
         [0040]    When the correlation coefficients with all the required specification values are smaller than the threshold, it is determined that the relative direction and the required specification value have no correlation. The existence of correlation with the required specification value  322  is “no correlation” (S 425 ). 
         [0041]    The correlation analysis processing of the relative direction from S 421  to S 425  is performed for each distance between the devices. The placement priority is determined after the correlation analysis processing of the relative distance and the relative direction for all the distances between the devices has been terminated. 
         [0042]    When both of kind of value  321  of the relative distance and the relative direction of the devices are the “fixed distance” and the “fixed direction” or the value  322  is “having correlation”, a placement priority  1  is given between the devices (S 431 ). In the example in  FIG. 3( b ) , regarding the devices A and B, since the existence of correlation with the required specification value  322  of the relative distance is “having correlation” and the kind of value  321  of the relative direction is the “fixed direction”, the placement priority  1  is given. 
         [0043]    Next, when one of the kind of value  321  of relative distance and the relative direction of each device is “fixed distance” or “fixed direction”, or one value  322  is “having correlation” and another value  322  is “no correlation”, a placement priority  2  is given to the device (S 432 ). In the example, in  FIG. 3( h ) , regarding the devices A and C, since the kind of value  321  of the relative distance is the “fixed distance” and the existence of correlation with the required specification value  322  of the relative direction is “no correlation”, the placement priority  2  is given. Also, regarding the devices A and D, since the existence of correlation with the required specification value  322  of the relative distance is “no correlation” and the existence of correlation with the required specification value  322  of the relative direction is “having correlation”, the placement priority  2  is given. 
         [0044]    Finally, when both of the kind of value  322  of the relative distance and the relative direction of each device is “no correlation”, a placement priority  3  is given to the device (S 433 ). In the example in  FIG. 3( b ) , regarding the devices A and E, since the existence of correlation with the required specification value  322  of the relative distance and the relative direction is “no correlation”, the placement priority  3  is given. 
         [0045]    Processing for determining the placement priority from S 431  to S 433  is performed to all the distances between the devices. 
         [0046]    As described above, according to the flowchart illustrated in  FIG. 2 , an enormous number of the device placement rules in the design such as the relative distance and the relative direction of each device can be automatically calculated. 
         [0047]    From S 412  to S 414  and from S 423  to S 425 , a plurality of thresholds of the correlation coefficients may be used, and the placement priority may be classified into four or more stages. 
         [0048]    Next, processing of the required specification value inputting unit  2 , the device configuration selection processing unit  3 , and the placement plan creation processing unit  4  at the time of creating a new design plan will be described with reference to  FIG. 5 . 
         [0049]    First, the required specification value inputting unit  2  inputs a required specification value for a new design (S 51 ), 
         [0050]    Next, the device configuration selection processing unit  3  selects configuration of devices which satisfies the required specification value. It is preferable that the configuration of devices be selected based on the required specification value according to a method disclosed in JP-A-2006-155601 and the like. 
         [0051]    After the configuration of devices has been selected, a device placement rule corresponding to the configuration of devices is extracted from among the device placement rules held in S 25  (S 53 ). At this time, when the value  321  is the “variation distance” or the “variation direction” and the value  322  is “having correlation”, a relative distance and a relative direction for the required specification value are calculated by substituting the required specification value into the regression formula  324  (S 54 ). When the kind of value  321  of the extracted device placement rule is the “fixed distance” or the “fixed direction”, a value of the fixed distance and fixed direction  323  held in the device placement rule is used. After that, the devices are placed on the CAD according to the placement priority (S 55 ). The processing in S 55  will be described below, 
         [0052]    After all the devices have been placed on the CAD, interference between the devices is determined. When the devices interfere with each other, the place of the devices to where the devices do not interfere with each other is changed (S 56 ). The device placement may be manually changed, and also, may be changed by an automated procedure. 
         [0053]    Here, processing in S 55  for placing the device on the CAD according to the placement priority will be described with reference to  FIGS. 6 and 7 . 
         [0054]    First, as illustrated in the flowchart in  FIG. 6 , the devices with the placement priority  1  are placed (S 61 ). An exemplary placement of the devices with the placement priority  1  is illustrated in  FIG. 7( a ) . Here, with reference to the example in  FIG. 3( b ) , it is assumed that the placement priority  1  be given to the devices A and B. The relative distance and the relative direction are uniquely determined as a fixed value or a value calculated from the regression formula between the devices with the placement priority  1 . Accordingly, a relative placement of the devices A and B can be uniquely determined. 
         [0055]    Next, the devices with the placement priority  2  are placed according to the flowchart in  FIG. 6  (S 62 ). An exemplary placement of the devices with the placement priority  1  is illustrated in  FIG. 7( b ) . Here, with reference to the example in  FIG. 3( b ) , it is assumed that the placement priority  2  be given to the devices A and C and the devices A and D. Here, regarding the devices A and C, the relative distance is the fixed distance and the relative direction is no correlation. Then, it is determined that the device C is placed on a spherical surface having the reference point coordinate of the device A as the center and the relative distance as the radius. It is preferable that the device C be placed at a position, where the device C does not interfere with other device on the spherical surface. Also, regarding the devices A and D, the relative distance is no correlation, and the relative direction is a value calculated according to the regression formula. Then, it is determined that the device D is placed on a half line in the relative direction having the coordinate of the device A as a start point. It is preferable that the device D be placed at a position where the device D does not interfere with the other device on the half line. 
         [0056]    Finally, the devices with the placement priority  3  are placed according to the flowchart in  FIG. 6  (S 63 ). An exemplary placement of the devices with the placement priority  3  is illustrated in  FIG. 7( c ) . Here, with reference to the example in  FIG. 3( b ) , it is assumed that the placement priority  3  for all the devices is given to the device E. The device with the placement priority  3  does not have a value which has been determined as the relative distance and the relative direction with other devices. Therefore, it is preferable that the device with the placement priority  3  be placed at an arbitrary position. 
         [0057]    As described above, according to the flowchart in  FIG. 5 , the device placement can be automatically determined based on the device placement rule calculated by the device placement rule extraction processing unit  1 . 
         [0058]    An exemplary screen display of a device placement automatic calculation apparatus is illustrated in  FIG. 8 . For example, a device placement automatic calculation apparatus screen  81  includes a device placement displaying screen  811 , a device placement priority  812  and the like. A device placement created by the device placement plan creation processing unit  4  is displayed in the device placement displaying screen. The device placement rule extracted by the device placement rule extraction processing unit  1  is displayed in the device placement priority  812 . 
         [0059]    The present invention is not limited to the embodiment and includes various modifications. For example, the embodiment is described in detail for easy understanding of the present invention and is not necessarily limited to the one which includes all the components described above. Also, a part of the components of one embodiment can be replaced with that of the other embodiment, and the components of the other embodiment can be added to the component of one embodiment. Also, other components can be added to a part of the components of the embodiment, and a part of the components can be deleted or replaced. 
         [0060]    Also, a part of or all of the configuration, function, processor, and processing unit may be realized by hardware, for example, by designing them in an integrated circuit. Also, the configuration, the function, and the like described above may be realized by software by interpreting and executing a program, which realizes each function, by the processor. Information such as the program for realizing each function, a table, and a file can be stored in a storage device such as a memory, a hard disk, and a solid state drive (SSD), or a storage media such as an IC card, a SD card, and a DVD 
         [0061]    Also, a control line and an information line which are considered to be necessary for the description are illustrated. All the control lines and information lines in the product are not necessarily illustrated. It may be considered that almost all components are connected with each other in practice.