Automatic determination of ventilation grille opening size for numerical simulation setup automation
The computer-implemented method for determining ventilation grille opening size in numerical simulations addresses inefficiencies by automating the process through spatial calibration and pixel-to-real distance estimation, improving accuracy and resource optimization.
Patent Information
- Application Number
- JP2024026478
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-09
AI Technical Summary
Existing methods for determining the opening size of ventilation grilles in numerical simulations are manual, subjective, and inefficient, leading to inaccuracies and inefficiencies in automated simulation workflows, particularly in the presence of diverse vehicle designs and visual noise.
A computer-implemented method that automatically determines the opening size of a ventilation grille by analyzing 3D geometry, calculating oriented bounding boxes, and performing spatial calibration to identify the maximum aperture value through a series of rotated images, using pixel-to-real distance ratios to estimate the actual opening size.
This method enhances the accuracy and efficiency of numerical simulation setups by providing consistent and precise aperture size estimation, reducing human error and optimizing computational resources.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THEINVENTION The present disclosure relates to determining ventilation grille opening sizes, and more particularly, to automatically determining ventilation grille opening sizes for automating the set-up of numerical simulations in a computer-implemented environment. [Background technology]
[0002] background In numerical simulations, diverse mesh sizes are often applied in different fluid domains to optimize computational resources. These domains are also known as variable resolution (VR) domains and have sizes defined by separate reference geometries. Especially in simulations based on the Lattice Boltzmann Method (LBM), VR domains have diverse grid refinement sizes between different levels. Summary of the Invention [Means for solving the problem]
[0003] Summary of the Invention In one aspect, a computer-implemented method is disclosed that includes automatically determining an estimate of a ventilation grille opening size to automate the setup of a numerical simulation based on inputs in a computer-implemented environment, the computer-implemented method includes creating screenshots of a plurality of computer-rendered images of a three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotation angles about a first axis, identifying which of the screenshots, if any, have an image of the three-dimensional grill geometry that has a greater total opening value than any other of the screenshotted images of the three-dimensional grill geometry, and designating the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size.
[0004] In another aspect, a computer-implemented method is disclosed for automatically determining an estimate of ventilation grille aperture size to automate the setup of a numerical simulation based on inputs in a computer-implemented environment, the computer-implemented method including: importing a three-dimensional grill geometry; calculating an oriented bounding box based on the three-dimensional grill geometry; identifying an initial line of sight vector for the imported three-dimensional grill geometry; creating a spatial calibration box to associate a pixel region of a computer-rendered image of the three-dimensional grill geometry with a physical region for containing a real-world version of the grill based on the three-dimensional grill geometry; screenshotting a series of computer-rendered images of the three-dimensional grill geometry from a viewpoint defined by the initial line of sight vector and while positioning the three-dimensional grill geometry in various orientations, each orientation showing an image of the three-dimensional grill geometry at various rotation angles about a first axis; and determining whether a screened image of the three-dimensional grill geometry has a total aperture value, if any, that is greater than any other of the screened images of the three-dimensional grill geometry. designating as a target image an image within the image of the screened three-dimensional grill geometry identified as having a greater total aperture value than any other of the images of the screened three-dimensional grill geometry; calculating a calibration factor for the target image; extracting edges of the target image; identifying contours within the target image based on the extracted edges; calculating areas within the identified contours; rejecting outlier contours based on the area calculation to generate a contour list including only the retained contours; calculating a two-dimensional oriented bounding box for each contour represented in the contour list; returning a width value and a length value for each of the two-dimensional oriented bounding boxes; identifying a minimum between the width value and the length value for each of the two-dimensional oriented bounding boxes; and calculating a final aperture size value representing an estimate of the opening size of the ventilation grille based on the identified minimum value.
[0005] In yet another aspect, a computer system is configured to automatically determine an estimate of a ventilation grille opening size to automate the setup of a numerical simulation based on inputs in a computer-implemented environment, the computer system including a computer processor and a computer-based memory operatively coupled to the computer processor, the computer-based memory including computer readable instructions that, when executed by the computer processor, cause the computer-based system to: create screenshots of a plurality of computer-rendered images of the three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotation angles about a first axis, identify which of the screenshots, if any, have an image of the three-dimensional grill geometry that has a greater total opening value than any other of the images of the screenshotted three-dimensional grill geometry, and designate the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size.
[0006] In yet another aspect, a non-transitory computer readable medium stores computer readable instructions that, when executed by a computer-based processor, cause the computer-based processor to automatically determine an estimate of the ventilation grille opening size to automate the set-up of a numerical simulation based on inputs in a computer-implemented environment by utilizing a process that includes: creating screenshots of a plurality of computer-rendered images of the three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotational angles about a first axis, identifying which of the screenshots has an image of the three-dimensional grill geometry that has a greater total opening value than any of the other of the screenshotted images of the three-dimensional grill geometry, and designating the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size.
[0007] Some implementations have one or more of the following advantages.
[0008] For example, certain implementations facilitate the automated creation of three-dimensional (3D) variable resolution domains for grill geometries that can be utilized in one or more computer-implemented simulations, more specifically, in a manner that allows the simulations to be performed with great efficiency of computational resources, i.e., balancing the availability of such resources with the need for precision and detail in such simulations.
[0009] Implementations of the systems and techniques disclosed herein allow for automated and rapid calculation / estimation of grill openings, whereas some conventional approaches tend to be time consuming, involve manual processes, and / or be inefficient.
[0010] Implementations of the systems and techniques disclosed herein help eliminate imprecision and errors in technician judgment, for example, when measuring, estimating, setting VR areas, and / or attempting to simulate a grill or a particular environment that includes a grill. Improved accuracy and consistency can be achieved.
[0011] Implementations of the systems and techniques disclosed herein facilitate automation of simulation workflow.
[0012] Implementations of the systems and techniques disclosed herein overcome technical challenges associated with identifying the location of openings and determining their size, especially in the presence of visual noise such as different horizontal / vertical bars and / or vehicle logos between different vehicle models / designs and variability in the shapes of grill openings / holes.
[0013] Implementations of the systems and techniques disclosed herein overcome technical challenges associated with the lack of good reference geometry making spatial calibration difficult, and where manual spatial calibration may not be feasible or practical in an automated simulation workflow.
[0014] Other features and advantages will become apparent from the description and drawings, and from the claims.
[0015] Like reference characters refer to like elements. [Brief description of the drawings]
[0016] BRIEF DESCRIPTION OF THE DRAWINGS [Figure 1A] 1 shows a front view of a vehicle grill, enclosing VR10 and VR11 regions for a simulation setup, and an example of an oriented bounding box for the vehicle grill. [Figure 1B] 1 shows a side view of a vehicle grill, enclosing VR10 and VR11 regions for a simulation setup, and an example of an oriented bounding box for the vehicle grill. [Diagram 2] 1 is a flow chart illustrating an example process for automatically determining the opening size of a ventilation grille. [Figure 3A] 1 shows example images of a grill generated at a rotation angle and a spatial calibration box. [Figure 3B] 1 shows example images of a grill generated at a rotation angle and a spatial calibration box. [Figure 3C] 1 shows example images of a grill generated at a rotation angle and a spatial calibration box. [Figure 4A] 1 shows a grill design with horizontal bars. [Figure 4B] 1 shows a grill design with vertical bars. [Figure 5A] 1 illustrates the ray casting method used to prepare candidate images for calculating the total open area in the image. [Figure 5B] 1 illustrates the ray casting method used to prepare candidate images for calculating the total open area in the image. [Figure 6A] 4 shows the contour extracted from the target image with the maximum open area. [Figure 6B] Denotes the oriented bounding box of a single hole that is used to calculate the opening size of that hole. [Figure 7A] 1 shows a grill configuration with mesh applied. [Figure 7B] 1 shows a grill configuration with mesh applied. [Figure 7C] 1 shows a grill configuration with mesh applied. [Figure 8] FIG. 1 is a schematic diagram of a computer configured to perform the functions disclosed herein. [Figure 9] FIG. 1 is a schematic diagram of a computer network. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Detailed Description Various terms are used herein to describe the inventive concepts described herein. Unless otherwise specified, the following terms and variations thereof should be understood to have the meanings consistent with the following:
[0018] "Numerical simulation" refers to a computer-implemented process for simulating a real-world process or system by performing calculations based on a mathematical model of the real-world process or system.
[0019] A "mesh" is a network of cells and nodes that supports a given numerical simulation within a computer-implemented environment. Typically, each cell in the mesh represents an individual solution of the simulation, and various individual solutions can be combined to generate a global solution for the entire mesh.
[0020] "Resolution" refers to the density or size of cells (e.g., mesh size) or density or size of finite elements represented in a mesh that is generated by a computer to support, for example, a computer-implemented numerical simulation based on a computer-implemented model of an object or portion thereof. Resolution can affect the efficiency and effectiveness of a computer-implemented simulation. For example, high-resolution simulations can produce detailed data but are expensive, whereas low-resolution simulations tend to be cheaper but produce less detailed data. Utilizing variable resolution ("VR") domains is one way to achieve a balance between the two.
[0021] A "variable resolution region" (or "VR region") is a region (e.g., a flow region) defined in and / or around a modeled object (e.g., a grill or a vehicle or other component containing a grill) in a computer-implemented simulation that includes a modeled object, where the resolution of the mesh for the simulation varies from VR region to VR region. Complex simulations, such as those involving the Lattice Boltzmann Method, may assign multiple (e.g., up to 11 or 12) different VR regions to the mesh in a simulation that includes a modeled vehicle or large industrial machinery.
[0022] Terms such as "opening" or "gap" or "hole" refer to an opening from one side (e.g., the front) to the other side (e.g., the back) of the grille that allows fluid (e.g., air) to pass through the grille during operation.
[0023] A "bounding box" is the minimal or minimum boundary or enclosing box for a set of points S of N dimensions (N can be equal to 3), i.e. the box with the smallest measure (e.g. volume) that contains all points. An "oriented bounding box" (or OBB) is a computed minimum bounding box that is subject to no constraints regarding the orientation of the result. An oriented bounding box is in contrast to an "axis-aligned minimum bounding box", where the minimum bounding box is subject to the constraint that the edges of the box are parallel to predefined or global (Cartesian) coordinate axes.
[0024] The phrase "initial line of sight vector" refers to a vector that originates outside (and e.g., in front of) the modeled grille 101 geometry and is directed towards the modeled grille 101 geometry. In general terms, the term "vector" refers to a geometric object having a magnitude (and even any magnitude) and a direction. In some implementations, the "initial line of sight vector" is configured with a direction toward (i.e., directed towards) a face (e.g., the front face) of the oriented bounding box 105 for the grille 101 geometry. Furthermore, in some implementations, the "initial line of sight vector" is configured to be perpendicular to the front face of the OBB 105. Depending on the size and direction, the viewpoint and direction of the "initial line of sight vector" can provide a view through one or more portions of the openings of the modeled grille 101 geometry (e.g., from the front face of the grille to the rear face of the grille). In the exemplary simulation, the +X direction points in the direction from the front bumper of the vehicle to the trunk / rear area of the vehicle. Thus, the face with the smallest X value in the virtual world corresponds to the front face that first "faces" the air in the real world. For grilles located in the rear area (e.g., on some sports cars) or on the side (on some machines), the front always faces the exterior area of the car / machine. To determine the interior and exterior directions of the car / machine, a computer can implement a ray casting method to calculate the intersection position between the emission of rays from the grille and the bounding box of the car / machine.
[0025] Technical disclosure In a computer-implemented numerical simulation, a computer simulates a real-world process or system by performing calculations based on a computer-implemented mathematical model of the real-world process or system. A computer-based numerical simulation may include discretizing the physical space or time represented in the mathematical model with a virtual mesh that includes a network of cells. Calculations to support such a computer-implemented numerical simulation may be performed cell-by-cell by the computer, after which an overall conclusion may be derived from the entire (or some segment) of the cell-by-cell calculations, also by the computer.
[0026] In some computer-implemented numerical simulations, multiple meshes, each consisting of a collection of cells, may be applied to discrete physical regions, e.g., at or near the surface of the system being modeled. The size, shape, and resolution of each such mesh may be influenced by the size and shape of the system being modeled and / or the objectives of the numerical simulation. Furthermore, the resolution (e.g., cell size) in a computer-implemented numerical simulation may typically vary from mesh to mesh. In general, using a mesh with a higher resolution tends to provide more detail and information, but with less relative efficiency, whereas using a mesh with a lower resolution tends to provide less detail and information, but with more relative efficiency. In general, it is desirable to vary the size of the mesh to balance the benefits of providing highly detailed simulation results and doing so efficiently. In a typical computer-implemented numerical simulation, the meshes applied to different physical regions, e.g., at or near the surface of the system being modeled, are referred to as variable resolution ("VR") regions.
[0027] Computational fluid dynamics (CFD) refers to a particular form of numerical simulation of fluid dynamics that uses numerical analysis and data structures to analyze and solve problems involving fluid flow, such as the flow rate through and / or around an automobile grille. A computer can be used to perform these calculations and store the associated data structures to facilitate the simulation of the free flow rate of a fluid (e.g., air) and its interaction with the surfaces of the grille, which may be defined by data in memory representing, for example, boundary conditions.
[0028] A CFD procedure according to an exemplary implementation may include defining the geometry and physical boundaries of the problem and / or system (e.g., simulation of the grill and flow conditions through and near the grill), which may be defined using computer-aided design (CAD). From there, the data may be processed (cleaned up) and the fluid volume (or fluid domain) may be extracted. The volume occupied by the fluid under consideration may be divided by the computer into discrete cells (mesh). The mesh may be uniform or non-uniform, structured or unstructured, for example, composed of any one or combination of hexahedral, tetrahedral, prismatic, pyramidal, or polyhedral elements. The physical modeling may be defined using equations that define the fluid motion, enthalpy, radiation, etc., for example, all of which may be stored in computer memory. Boundary conditions may also be defined in computer memory. This may include describing the behavior and properties of the fluid at the boundaries of the fluid domain. For transient problems, initial conditions may also be defined in computer memory. Once these pre-processing steps have been performed, the computer can run the simulation and the equations are solved iteratively (e.g., cell-by-cell) as steady-state or transient. Finally, a post-processor within the computer can be used to analyze and visualize the resulting solutions (which may be a collection of individual solutions per cell or other combinations).
[0029] Some such computer-implemented CFD procedures utilize the Lattice Boltzmann Method (LBM), which allows for the simulation of fluid density on a lattice by streaming and collision (relaxation) processes. This type of method tends to be versatile as fluids can be easily modeled to mimic common fluid behaviors and can easily simulate fluids in complex environments, whereas other CFD methods can have difficulty working where complex boundaries are involved.
[0030] In some computer-implemented procedures, varying mesh sizes can be applied in different fluid regions (e.g., near a grill) to optimize computational resources in these (and other) types of simulations. These regions can again be referred to as variable resolution (or "VR") regions. Some such regions can have sizes and shapes that are defined by separate reference geometries. In an LBM-based simulation, different VR regions may have different mesh refinement sizes at different levels (e.g., within different VR regions). In a standard vehicle simulation using LBM, up to 11 or 12 levels of VR regions may be applied (or applicable) within a simulation region, depending, for example, on the particular application at issue (e.g., aerodynamics, thermal management, aeroacoustics). A higher VR level generally means that a finer mesh is applied within that VR region. A lower VR level generally means that a coarser mesh is applied within that VR region. Computational costs can be significantly affected by the finest VR level used and the size of the VR region. Therefore, best practices aimed at avoiding over-resolution of any fluid regions are typically utilized.
[0031] Of all the critical areas of a vehicle, the grille is one that tends to require a finer resolution mesh to fully capture the flow gradients (e.g., across the narrow gaps / holes 104 present in a typical grille 101 design). (See, e.g., FIGS. 1A and 1B). As a result, finer mesh VRs tend to be applied in simulations near the vehicle's grille area. More specifically, in a typical LBM simulation, two of the finest variable resolution VR regions (e.g., VR10 103 and VR11 102) may be applied to surround the vehicle's grille 101, as shown diagrammatically in FIGS. 1A and 1B. In the illustrated implementation, VR11 102 is closer to the grille 101 than VR10 103. Therefore, VR11 102 envelops the grille 101 more closely than VR10 103. Each of VR11 102 and VR10 103 approximates the overall shape of the grille without considering the narrow gaps / holes 104 therein. In most cases, the mesh size used for VR11 is 1 mm and the mesh size for VR10 is 2 mm. This rough strategy simplifies the simulation setup but may potentially waste simulation resources (e.g., if the grill opening size is large enough that only VR10 (and not VR11) is sufficient). A minimum of 8 voxels is typically required to resolve the flow across the grill. Therefore, in some cases, VR11 surrounding the grill may not be necessary (e.g., if the opening size is larger than 16 mm). In Figures 1A and 1B, variable resolution regions VR10 103 and VR11 102 are shown surrounding the vehicle grill 101. VR10 102, which may have a mesh size of 1 mm, is closer to the grill 101 than VR11 102, which may have a mesh size of 2 mm.
[0032] The grille 101 depicted in the illustrated image (which may be displayed on a computer screen as a rendering of a CAD or mesh file) has a rigid body contoured to define an outer rim 108 surrounding an interior portion having a structure that defines a honeycomb pattern of generally uniform gaps / holes 104 that penetrate the grille 101 (e.g., from the front surface of the grille visible in FIG. 1A to the rear surface of the grille opposite the front surface). In fact, all of the gaps / holes 104 in the interior portion of the illustrated grille 101 are the same or similar to all other gaps / holes 104 in the interior portion, except for the edges (top, bottom, and sides) of the interior portion where some of the gaps / holes 104 are cut off by the outer rim 108. As shown in the side view of FIG. 1B, the front surface of the interior portion of the grille 101 extends a short distance forward from the leading edge of the outer rim 108. From an aesthetic standpoint, the visual effect created by the pattern may be pleasing or attractive to the viewer. From a functional standpoint, the pattern provides an airflow pathway through the grille to, for example, the underhood area of the vehicle. This airflow typically helps remove heat from the vehicle during driving, particularly while the vehicle is operating under the influence of an engine or electric motor. Narrow gaps / holes 104 in grille 101 allow air to flow from outside the vehicle, through grille 100 in a generally horizontal direction (e.g., from left to right in FIG. 1B ), and into the underhood area of the vehicle.
[0033] In the illustrated implementation, an oriented bounding box 105 is shown. Generally, a bounding box is an imaginary box that encloses and defines a minimal or minimum boundary or enclosing box of the set of points that make up the grill model. The bounding box may be axially aligned (e.g., with edges parallel to Cartesian coordinate axes aligned parallel and perpendicular to the direction of gravity). Alternatively, and as represented by the illustrated implementation, the bounding box may be oriented relative to the design of the grill 101 in a manner (as shown) that minimizes the interior volume of the bounding box.
[0034] The illustrated OBB 105 thus defines a minimal or minimum boundary or bounding box of the set of points that make up the automobile model, with the smallest volume that contains all of the points. The illustrated OBB 105 is a square cube with a front surface that touches the forward-most point of the modeled grille 101, a rear surface that touches the rear-most point of the modeled grille 101, sides that touch the furthest points on either side of the modeled grille 101, a bottom surface that touches the lowest point of the modeled grille 101, and a top surface that touches the highest point on the modeled grille 101. In some implementations, one or more of the surfaces of the bounding box may touch multiple points on the modeled grille 101 if they are all in the same plane and include the furthest point within its dimensions. The dimensions of the OBB 105 implicitly define the overall length, height, and width of the modeled grille 101.
[0035] Also shown in the illustrated implementation is an initial line of sight vector 106. The line of sight vector is a vector that originates outside (and in front of) the modeled grille 101, is directed toward the front of the grille 101, and is oriented perpendicular to the front surface 107 of the OBB 105. Viewing the modeled grille 101 from line of sight vector 106 increases the likelihood of seeing as much as possible through the gaps / holes 104 in the grille 101, given the depth (e.g., depth in FIG. 1A ) and contours of the structures that define the gaps / holes 104 in the grille 101.
[0036] There are various ways to measure grill opening size, and each of the previous methods has drawbacks.
[0037] For example, manual measurement is a relatively easy way to determine the size of a grille opening. However, because of the variety of designs and vehicle models, grille opening sizes may not be uniform, and the assignment of VR based on opening size may be subject to the subjective, and sometimes inaccurate, and inconsistent, judgment of the engineer to determine which size should be used to determine the VR assignment. In addition, depending on the 3D shape of the opening, picking two points for distance measurement may be somewhat subjective, so manually measuring the size may introduce human error. Furthermore, manual size measurement and subsequent manual assignment of VR area may not be feasible or practical (in terms of speed or efficiency) in an automated workflow that desirably minimizes manual input. Thus, an automated method for accurately measuring opening size is needed to facilitate automation of the simulation workflow and reduce uncertainties due to any human factors.
[0038] This goal can possibly be achieved by analyzing the 3D geometry, identifying possible gaps, and then attempting to calculate the size of the gap. For example, if the geometry is triangulated, rays can be emitted from the center points of all triangles, and the size of the gap can be determined by measuring the distance traveled by these rays. Although algorithms such as octrees can be used to improve the performance of this ray tracing method, it is still difficult to determine whether the returned distance belongs to the target gap / opening. Another method could be to identify two sets of points from two objects, and then use Delaunay tetrahedral division to calculate the gap between those two objects or points. (See, for example, S. Goswami, G. Burenkov, 2022, “Detection of gaps between objects in computer added design defined geometries”, U.S. Patent Application No. 16 / 504,599). However, user input is usually required to define the gap distance and the threshold of the angle formed by these two objects, which is undesirable for the purpose of automating the simulation workflow.
[0039] Implementations of the systems and / or techniques disclosed herein address and / or solve one or more of these technical problems / issues.
[0040] Furthermore, it is difficult to utilize three-dimensional (3D) shape analysis of the grill geometry to identify the location and size of gaps / holes in the grill, especially in the presence of visual noise and / or obstructions such as horizontal / vertical bars and / or vehicle logos that may be built into or attached to the grill. Implementations of the systems and techniques disclosed herein address such challenges.
[0041] Additionally, the shape of the grille opening / hole may vary depending on the vehicle model / design. For example, grille openings in different vehicle models / designs may be rectangular, hexagonal, circular, etc. These variations pose additional challenges when trying to detect the overall size of the opening. Implementations of the systems and techniques disclosed herein facilitate estimation to identify appropriate VR allocations even given such challenges.
[0042] Furthermore, for example, when active grille shutters are present, the opening size may appear visually smaller when the viewing angle is parallel to the vehicle's direction of travel, depending on the orientation of the grille and the possible tilt of the planar plate. This creates challenges when analyzing the grille opening size directly using any image processing technique. Implementations of the systems and techniques disclosed herein address and overcome these technical issues.
[0043] In addition, when using image processing methods to analyze the shape or to determine the actual aperture size, the lack of a good reference geometry can make spatial calibration difficult. In practice, manual spatial calibration is not particularly feasible in an automated simulation workflow. Implementations of the systems and techniques disclosed herein address and overcome these technical issues.
[0044] Furthermore, it can be difficult with known techniques for a computer program to create an image of the grill with an optimized viewing angle so that the computer program can perform an analysis of the image and determine the aperture size. Implementations of the systems and techniques disclosed herein address and overcome these technical problems.
[0045] Additionally, embodiments of the systems and techniques disclosed herein can identify aperture contours and determine overall aperture size in the presence of noise, and / or can handle grilles having a variety of orientations and designs.
[0046] Other technical problems and issues may also be addressed herein.
[0047] In some implementations, the systems and techniques disclosed herein can be integrated into an automated computational fluid dynamics (CFD) simulation workflow (e.g., implemented by computer software running on a computer to perform a CFD simulation) to automatically evaluate and / or determine values to be used as vehicle grille opening sizes, thereby allocating correct VR area to grille areas to optimize simulation resources in the CFD simulation. In some implementations, the systems and techniques disclosed herein can be utilized to detect opening sizes for any equipment or device designed for ventilation.
[0048] Exemplary Computer Environment 8 is a schematic diagram of an example implementation of a computer 1000 configured to automatically determine a value representative of a vehicle grille opening size based on a computer-based representation of the grille geometry. In some implementations, this determination facilitates or enables automatic allocation (e.g., by computer 1000) of one or more three-dimensional (3D) variable resolution (VR) regions at or near the grille in a computer-based simulation (e.g., CFD) that includes the grille to appropriately balance the competing interests of accuracy and efficiency.
[0049] The illustrated computer 1000 includes a processor 1002, computer-based memory 1004, computer-based storage 1006, a network interface 1007, an input / output device interface 1010, and an internal bus 1012 that serves as an interconnect between the components of the computer 1000. The bus 1012 serves as a communication medium by which the various components of the computer 1000 can communicate and interact with one another.
[0050] The processor 1002 is configured to perform various computer-based functions disclosed herein, as well as other supporting functions not explicitly disclosed herein. Some of the computer-based functions that the processor 1002 performs are functions disclosed herein as being specifically attributable to the computer 1000 (or the processor 1002). In some implementations, the processor 1002 performs these and other functions by executing computer-readable instructions stored on a computer-readable medium (e.g., memory 1004 and / or storage 1006). In various implementations, some of the processor functions may be performed on data stored in one or more of these computer-readable media and / or data received from some external source (e.g., from an I / O device via the I / O device interface 1010 and / or from an external network via the network interface 1007). The processor 1002 in the illustrated implementation is represented as a single hardware component at a single node on a network. However, in various implementations, the processor 1002 may be distributed across multiple hardware components at different physical and network locations / nodes.
[0051] The computer 1000 has both volatile and non-volatile memory / storage capabilities (e.g., in memory 1004). As shown, the memory 1004 is configured to host the computer's operating system 1020 as well as executable software 1008. In a typical implementation, the memory 1004 functions as a computer-readable medium that stores computer-readable instructions that, when executed by the processor 1002, cause the processor 1002 to perform one or more of the computer-based functions disclosed herein. More specifically, in some implementations, the memory 1004 stores computer software that enables the computer 1000 to perform various functions disclosed herein, including, for example, determining a value representative of an aperture size of a vehicle's grille based on a computer-based representation of the grille geometry (e.g., stored as a CAD file in the computer memory), and / or automatically identifying and allocating one or more three-dimensional (3D) variable resolution (VR) regions (based on the determined values of aperture size) at or near the grille for use in a computer-based simulation that includes the grille, and / or performing a computer-based simulation that includes the grille utilizing one or more of the assigned 3D VR regions at or near the grille. While in various implementations, this computer software may be a separate component, in other implementations, this computer software may be designed and operable to be integrated with and / or utilized in conjunction with another software program stored in the memory 1004 to facilitate and perform a computer-based simulation that utilizes calculated values of aperture size, allocation of VR regions (based on the calculated aperture size), or both in performing a simulation based on the grille geometry.
[0052] For example, in certain implementations, the aforementioned computer software may be integrated into PowerFLOW® simulation software available from Dassault Systemes Simulia Corp. PowerFLOW® simulation software provides a unique solution for computational simulation of fluid flow problems. The software is suitable for a wide range of applications, whether simulating transient or steady flows. Using enhanced particle-based methods based on DIGITALPHYSICS® technology, PowerFLOW offers a wide range of modeling and analysis capabilities, including aerodynamic simulation, thermal simulation (including, for example, convection, conduction, radiation, and heat exchangers), and aeroacoustic simulation. PowerFLOW® simulation software can simulate fluid flow design problems in industries such as automotive and other ground transportation, aerospace, petroleum, architectural design and architecture / engineering / construction (AEC), heating, ventilation, and air conditioning (HVAC), and electronics. Automotive applications include, for example, full car exterior aerodynamics with respect to drag and lift, underbody design, side mirrors, antennas, glass offsets, and noise source identification or aeroacoustics for detail design, wind tunnel design and validation, intake ports, manifolds, heating and air conditioning ducts, hood cooling, filter design, and windshield wiper design, etc. A program, such as, for example, PowerFLOW® simulation software adapted to incorporate the techniques disclosed herein, when executed by a computer, can have the ability to automatically determine values representing opening sizes of a vehicle's grille, facilitate and / or automatically assign a three-dimensional (3D) variable resolution (VR) area at or near the grille (e.g., for computer-based simulation purposes), and / or perform a simulation of the grille based on the assigned 3D VR area.
[0053] In the illustrated implementation, computer 1000 also includes storage 1006, which can be virtually any type of computer-based storage device or component.
[0054] 2 is a flow chart representing an example implementation of a process for determining a value representative of a size of a grill opening based on a virtual three-dimensional computer-based representation of the grill, including the grill geometry. In some implementations, this value can be utilized to facilitate and / or enable automatic or at least simplified allocation of one or more three-dimensional (3D) variable resolution regions at or near the grill for use in connection with simulating the grill within a computer-based environment (e.g., from a computational fluid dynamics perspective). In an example implementation, the process represented by the illustrated flow chart is implemented within a computer-based environment, such as computer 1000 of FIG. 8, and the illustrated processing steps are performed by or with the assistance or involvement of processor 1002.
[0055] The process according to the illustrated flow chart includes importing (at 201) a three-dimensional (3D) grill geometry. In a typical implementation, this import step includes importing a computer-based representation of the 3D grill geometry (e.g., from one application to another). The source (or origin) application in this case may be, for example, a software application in which the computer representation of the 3D grill geometry was created and / or stored. This application may be a computer-aided design (CAD) application such as SOLIDWORKS® CAD software available from Dassault Systemes. The destination application in this case would be the software application in which the process illustrated in FIG. 2 is otherwise performed (e.g., the computer representation of the 3D grill geometry is processed and analyzed as described herein). In one particular example, the destination application may be PowerFLOW® simulation software, also available from Dassault Systemes, adapted to include the functionality illustrated in FIG. 2 and described herein. The destination application may include a geometry tool or viewer that facilitates viewing a visual representation of the 3D grill on a computer screen (e.g., connected to 1010 in FIG. 8). The 3D grill geometry may be contained within a CAD or mesh file imported from a geometry program in step 201, for example.
[0056] In some implementations, the import process (102) is performed automatically by a computer (e.g., 1000). In some implementations, the import process (at 102) is performed in response to a human user selecting an import option (e.g., in a user interface of the computer 1000) or performing some other step or combination of steps to initiate the import. In an exemplary implementation, this import process results in the import of data representing the design of the grill 101 shown in Figures 1A and 1B. However, the data imported (at step 201) typically does not include information representing the OBB 105, the line of sight vector 106, or any of the 3D VR regions 102, 103. In an exemplary implementation, data representing the geometry of the grill 101 shown in Figures 1A and 1B is imported from or in the form of a CAD file.
[0057] Next, in accordance with the illustrated flow chart, the computer 1000 calculates (at 202) an oriented bounding box (OBB) 105 for the geometry of the imported grill (e.g., 101). In an exemplary implementation, this step involves determining virtual parameters for the OBB 105 for the design of the imported grill 101 to fully define the OBB 105, as shown in Figures 1A and 1B. The OBB 105 is typically generated directly from the geometry of the imported grill (e.g., 101). In this regard, the computer 1000 stores computer executable instructions that, when executed by the computer processor 1002, cause the computer processor 1002 to automatically generate the parameters of the OBB 105 (and optionally a visual representation of the OBB 105, e.g., as shown in Figures 1A and 1B) based on the geometry of the imported grill (e.g., 101).
[0058] In some implementations, the computer 1000 requests this OBB generation functionality automatically (e.g., in response to a modeled grill (e.g., 101) being imported at 201). In some implementations, the computer 1000 requests the OBB generation functionality in response to an external prompt, e.g., from a human user. In the latter case, the computer 1000 can be configured to present user-selectable choices in its user interface, the selection of which by the human user causes the computer 1000 to request the OBB generation functionality to automatically generate the OBB 105 based on the imported grill geometry.
[0059] There are a variety of minimum bounding box algorithms that the computer 1000 can apply to the data set representing the imported grill geometry to generate the OBB 105.
[0060] For example, computer 1000 may apply a rotational caliper algorithm to the imported grill geometry data set. This rotational caliper algorithm may be based on a technique described in a 1985 paper by Joseph O'Rourke entitled "Finding Minimal Enclosing Boxes," pages 183-199 of the International Journal of Computer & Information Sciences. This technique is based on a lemma that characterizes a minimal enclosing box as follows: 1) there must be two adjacent faces of a minimal-volume enclosing box that both contain edges of the convex hull of the point set (this criterion can be satisfied by a single convex hull edge that is collinear with the box edges, or by two distinct convex hull edges that lie within the adjacent box faces), and 2) the other four faces need only contain points of the convex hull (the points they contain need not be distinct; for example, a single convex hull point at a box corner already satisfies three of these four criteria). (See also Shamos, M., 1978. “Computational Geometry,” Yale University. pp. 76-81).
[0061] It is also possible to approximate the volume of a minimum bounding box in linear time, within any constant factor greater than one. One algorithm for doing this involves finding an approximation of the diameter of the point set, and using a box oriented on that diameter as an initial approximation of the minimum volume bounding box. This initial bounding box is then divided into a grid of smaller cubes, and the grid points near the boundary of the input's convex hull are used as a core set, a small set of points whose optimal bounding box approximates the optimal bounding box of the original input. Finally, O'Rourke's algorithm (mentioned above) can be applied to find an exact optimal bounding box for this core set.
[0062] Once calculated (at step 202), the OBB 105 may be stored as data (e.g., in computer memory 1004). Furthermore, in some implementations, the computer 1000 may be configured to generate a visual representation of the OBB 105 on a computer display screen (e.g., coupled to 1010), which may be displayed like the visual representation of the OBB 105 of FIG. 1A and / or FIG. 1B. Furthermore, in some implementations, the computer 1000 may be configured to present the visual representation of the OBB 105 on its display. In some implementations, the visual representation of the OBB 105 is presented along with an image of the geometry of the grill 101 associated with the OBB 105. In some implementations, various other information (e.g., dimensions such as length, height, and / or width) and / or position information of the corner nodes of the OBB 105 may be displayed to the user or may be accessible to the user by a user interface on the display.
[0063] In a typical implementation, the OBB 105 is a six-sided 3D box, with each side (or face) perpendicular to any adjacent side (or face). An example of this is shown in Figures 1A and 1B, where the OBB 105 is 3D and has six sides (or faces): a front face 107, a back face 109, a right side face 111, a left side face 113, a top face 115, and a bottom face 117. Each of these faces 107-117 is perpendicular to the adjacent faces. For example, the front face 107 of the OBB 105 is perpendicular to the adjacent top face 115, the adjacent bottom face 117, and the adjacent side faces 111, 113.
[0064] Next, the computer 1000 calculates (at 203) the initial line of sight vector 106 according to the process depicted in the illustrated flow chart. In a typical implementation, the computer 1000 uses the grille's O+BB 105 information to calculate the initial line of sight vector 106. There are various ways in which the computer 1000 can use the grille's OBB 105 information to calculate the initial line of sight vector 106. For example, in most cases, the grille under consideration is a front grille, and the vehicle is always positioned along the X direction (e.g., as shown) by typical convention. Therefore, the computer 1000 can simply use the +X direction as the line of sight direction in those implementations. Furthermore, the geometry tool typically has a built-in "zoom to fit" function. Therefore, the computer 1000 can set the +X direction as the line of sight direction and use the zoom to fit to create a complete view of the grille. Furthermore, in certain implementations, once the computer 1000 obtains the OBB information, the system can specify the center of the OBB as the starting point, and the vector direction is perpendicular to the front of the OBB.
[0065] In a typical implementation such as that shown in Figures 1A and 1B, the initial line of sight vector 106 is perpendicular to and points toward the front surface of the OBB 105 to ensure that there is a relatively high probability that the opening is visible (can be seen through) in the starting image taken in step 205.
[0066] In some implementations, the computer 1000 can be configured to present a visual representation of the initial line of sight vector 106. In some implementations, the visual representation of the initial line of sight vector 106 may be displayed in the same manner as the initial line of sight vector 106 is displayed in FIG. 1B, i.e., the initial line of sight vector 106 may be displayed together with an image of the geometry of the grill 101 and the associated OBB 105. In some implementations, various other information (e.g., dimensions such as length, height, and / or width) and / or position information of the corner nodes of the OBB 105 may be displayed to the user or may be accessible to the user via a user interface on the display.
[0067] Next, following the illustrated flow chart, computer 1000 creates (at 204) a spatial calibration box 302. Essentially, to measure distance using an image, one needs to establish a relationship (or ratio) between pixel area (e.g., an image of the grill) and physical area (e.g., a real-world version of the modeled grill). This process is called spatial calibration, and the relationship / ratio sought in this regard is represented by a conversion ratio or calibration factor (which may be called a pixel-to-real distance ratio).
[0068] In an exemplary implementation, the computer 1000 is configured to:
number
[0069] There are various ways to create the spatial calibration box 302. Typically, the spatial calibration box 302 is as shown in Figures 3A-3C and is a 3D box or a two-dimensional (2D) square with a very small thickness (e.g., 1 millimeter). The computer 1000 calculates the height (H SCB ) and width (W SCB ) to the height of OBB105 (H OBB) The computer 1000 places the geometric center of the spatial calibration box 302 to the left (or right) of the image of the grill 301 geometry (as shown in FIGS. 3A, 3B, and 3C), but aligns the geometric center of the spatial calibration box 302 with the center of the front surface 107 of the OBB 105. This thin calibration box 302 is necessary because the grill 301 geometry itself cannot be used for calibration purposes during the rotation process, even if the dimensions of the grill 301 are known. This is because the grill 301 typically has a non-trivial thickness as seen at 314. As shown by comparing the change in the appearance of the grill thickness from 314 (FIG. 3A) to 315 (FIG. 3C), this thickness creates an artificial volume in the image that can artificially increase the apparent height or width of the grill 301 geometry when the image of the grill 301 geometry is rotated (about the horizontal axis 304).
[0070] FIG 3A is a view showing an example spatial calibration box 302 next to a front image of the geometry of a grill 301 that may have been generated from the grill geometry data imported in 201. The grill geometry 301 of FIGS. 3A-3C is similar to the illustration of the grill geometry 101 of FIG. 1A. Two of the vertices of the spatial calibration box 302 are marked in FIG 3A as 312 and 313. Also shown are two rotation axes: a horizontal rotation axis 304 and a vertical rotation axis 306. Each of these axes 304, 306 pass through the image of the modeled grill 301 (e.g., through the geometric center of the image of the modeled grill 301).
[0071] Figure 3B shows image 308, which is similar to the image of Figure 3A in that it shows an image of spatial calibration box 302 next to a front image of the geometry of grill 301. Similarly, Figure 3C shows image 309, which is similar to the image of Figure 3A in that it shows an image of spatial calibration box 302 next to a front image of the geometry of grill 301, except that images 308 and 309 are exemplary generated from a reverse (clockwise) and forward (counterclockwise) rotation (about horizontal axis 304) of image 307 of Figure 1. The view of the geometry of grill 301 and the openings in grill 301 appear different in size and geometry when the image is rotated about the horizontal axis as shown.
[0072] In a typical implementation, computer 1000 is configured to generate a series of images as shown in Figures 3A, 3B, and 3C by rotating a starting image (e.g., around horizontal axis 304) backwards and / or forwards. Computer 1000 may further be configured to take screenshots of the image at each rotation angle, including some initial angle (which may optionally be designated as 0 degrees). The screenshots may be saved (e.g., in memory 1004) as they are created. This generates a series of images of the geometry of grill 301 and the spatial calibration box 302 next to the geometry of grill 301 at various rotation angles (around a common axis, e.g., horizontal axis 304).
[0073] 2, the computer 1000 takes (at 205) a screenshot of the grill 301 and spatial calibration box 302 while they are simultaneously present on the display screen and at a rotation angle of zero degrees. This rotation angle (zero degrees) will most likely correspond to a view of the grill 301 and spatial calibration box 302 from the viewpoint and direction defined by the initial line of sight vector 106 calculated at 203. The viewing angle used to generate this screenshot is therefore determined by the initial line of sight vector 106. The image thus captured may be designated as the first or primary image 307 in a series of images showing the grill 301 and spatial calibration box 302 at various rotation angles (rotated about the horizontal axis 304).
[0074] Next, following the illustrated flow chart, the computer 1000 rotates (at 206) the image of the geometry of the grill 301 and the spatial calibration box 302. In one implementation, this rotation occurs about the horizontal axis 304. However, in other implementations, this rotation occurs instead about the vertical axis 306. The direction of rotation can be forward (represented by the curved arrow about the horizontal axis 304 in FIG. 3A) or reverse (opposite the curved arrow about the horizontal axis 304 in FIG. 3A). The amount of angle by which the computer rotates (at 206) the image can vary. In various implementations, the angle is 1 degree or less, 2 degrees or less, 3 degrees or less, 4 degrees or less, 5 degrees or less, 10 degrees or less, etc.
[0075] In an example implementation, rotation (e.g., forward rotation about horizontal axis 304) changes the visual appearance of the image from what appears in FIG. 3A (307) to what appears in FIG. 3C (309). As can be seen, even though the geometry of grille 301 is the same in these two images 307 and 309, its appearance (including how much of the grille opening is visible) changes as the viewpoint and viewing angle for grille 301 changes. Other changes are also evident. For example, the appearance of the thickness of the grille increases from 314 (in view 307 of FIG. 3A) to 315 (in view 309 of FIG. 3C) when the image of the geometry of grille 301 is rotated forward (about horizontal axis 304).
[0076] Once the image has been rotated (e.g., from view 307 of FIG. 3A to view 309 of FIG. 3C), the computer 1000 takes (at 207) a new screenshot of the new view (309). The computer 1000 typically stores the new screenshot in memory (e.g., 1004) along with the original screenshot (taken and saved at 205).
[0077] Typically, steps 206 and 207 are repeated multiple times using the same image with screenshots taken at different rotation angles to generate a series of multiple different images showing the same grill 301 geometry from different viewpoints / viewing angles. Each of these screenshots can be stored together in memory (e.g., 1004). In some implementations, the different viewpoints / viewing angles are caused by the computer 1000 rotating the image in each screenshot a little more forward than the previous screenshot. In some implementations, the different viewpoints / viewing angles are caused by the computer 1000 rotating the image in each screenshot a little more backward than the previous screenshot. In some implementations, the different viewpoints / viewing angles can be caused by the computer 1000 rotating the image forward and backward by different amounts relative to the viewing angle and viewpoint of the original screenshot (taken and stored in 205).
[0078] The above technique is useful because, for example, depending on the particular grill design and its orientation, the image 307 generated using the initial line of sight vector 106 may not be the best image for analyzing the aperture size. One reason for this is that the aperture hole may be blocked (e.g., by surrounding structures), causing a misleadingly small aperture to appear in the image. If such an image (e.g., showing a misleadingly small aperture size) were used to calculate the aperture size, significant errors could result. If the aperture size is measured manually (e.g., by a real-world technician), the technician can rotate the real-world grill to find the best viewing angle before actually measuring the aperture size. To mimic this process, the computer 1000 rotates the image of the grill 301 geometry (pivoted at its geometric center) around its horizontal axis 304 in step 206. The camera's viewing angle and position (i.e., the viewpoint from which the screenshot is taken in 207) remain unchanged during the process of rotating the geometry. A screenshot including the grill 301 and the calibration box 302 is taken (in 207) for every rotation angle of θ°. The value of θ can be optimized to balance performance and accuracy. Rotations can be performed sequentially in clockwise and counterclockwise directions, or both, depending, for example, on at what angle the target image is found. Again, images 308 and 309 are exemplary images produced from reverse (clockwise) and forward (counterclockwise) rotations.
[0079] Once the computer 1000 has generated multiple different images showing the same grill 301 geometry from different viewpoints / viewing angles, the computer 1000 identifies (at 208) which of those images has the largest aperture size. This process is discussed further below. If none of the images can be identified (at 208) as having the largest aperture size, according to the illustrated flow chart, the computer 1000 proceeds to step 209, rotates (at 209) the image of the grill geometry (e.g., the initial image 307) along the vertical axis 206, and takes (at 207) a screenshot 207 for each rotation angle of θ° to generate a new set of images showing the grill 301 geometry aligned with the spatial calibration box 302 at different rotation angles about the vertical axis 306. After generating this new set of images, the computer 1000 returns to step 208 and attempts to find an image (this time among the new set of screenshot images) that has the largest aperture size (showing the same grill geometry from different viewing angles and viewpoints, but now rotated about the vertical axis 206 instead of the horizontal axis 204).
[0080] In a typical implementation, once the image with the largest (or maximum) aperture size is identified (at 208), the computer stores or flags in memory that image with an indication of its characteristics.
[0081] Following the illustrated flow chart, computer 1000 then calculates (at 210) the calibration factor (or pixel to actual distance ratio) for the image determined (at 208) as having the largest aperture size. Since the physical height of the spatial calibration box 302 is already known from step 204 (and stored in memory, e.g., 1004) during its creation, only the height in pixels of the spatial calibration box 302 needs to be determined. In one embodiment, this can be calculated by a process that includes casting rays (310, 311) vertically downward from and near the upper corners of the display screen (see ray 310 in image 307 of FIG. 3A), and vertically upward from the lower corners of the display screen (see ray 311 in image 307 of FIG. 3A). The angles at which these rays (310, 311) are cast are the spatial calibration side corners of the display screen (i.e. the geometric side of the grille 301 on which the spatial calibration box 302 is located).
[0082] In some implementations, one ray at a time may be cast from the top edge of the image 307 and one from the bottom edge of the image 307. For example, in the illustrated implementation, the first of each ray cast, the top and bottom edges, may be closest to the left-most edge of the image 307, and each subsequent ray may be cast (towards the spatial calibration box 302) starting from a point on the top and bottom edges a number (or pixels) away from the previous ray. In some implementations, multiple rays (separated from each other horizontally by a number (or pixels)) may be cast simultaneously downward from the top edge of the image 307 and upward from the bottom edge of the image 307.
[0083] If a particular one of the projected rays never hits or reaches a darkened pixel, then in a typical implementation, the computer 1000 can conclude that no portion of the spatial calibration box 302 exists along the path traversed by that projected ray. For example, the leftmost rays (downward and upward projections) in FIG. 3A will traverse the entirety of the image 307 without hitting a darkened pixel. When that happens, the computer 1000 can conclude that no portion of the spatial calibration box 302 exists along the path traversed by those leftmost rays. On the other hand, if a particular one of the projected rays hits or reaches a darkened pixel, then in a typical implementation, the computer 1000 can conclude that the darkened pixel corresponds to (and forms part of) the spatial calibration box 302.
[0084] In a typical implementation, when a projected ray (e.g., one from each group of projected rays 310 and 311) hits any darkened pixel (e.g., a pixel having a black color) indicating that the pixel belongs to the calibration box 302, the computer 1000 records (e.g., in memory 1004) the distance traveled by that ray. In a typical implementation, the distance traveled is recorded in pixels. In an exemplary implementation, the projection process stops when at least one ray from each group of rays 310, 311 hits a black pixel. The coordinates of these two hit points in pixels are returned (and stored, for example, in memory 1004). These two coordinates belong to vertex 312 and vertex 313 of the spatial calibration box 302, respectively. The computer 1000 can (and does) therefore determine the height in pixels of the spatial calibration box 302 as being equal to the vertical distance between these two vertices. Since the calibration box 302 is a square in a two-dimensional (2D) domain, its location information in the image (e.g., the coordinates of its four vertices) is known by the computer 1000. The computer 1000 can (and does) therefore identify a calibration factor by dividing the physical height of the spatial calibration box (e.g., in millimeters) by its height in pixels. The units of the calibration factor can then be mm / pixel (mm is chosen as representative, other physical units may be chosen) which represents the physical dimension in mm per pixel.
[0085] In an alternative embodiment, the pixel height of the calibration box 302 can be obtained by first extracting pixel information representing the four edges of the box, then finding a pair of parallel point sets and calculating the distance between those two sets of points, or finding the maximum distance between all edge points to find the diagonal distance and using Pythagoras' theorem to calculate the height of the box. In such an implementation, the computer 1000 will perform these calculations. Because the grille 301 and the calibration box 302 are together in the image 307, some work needs to be done to extract the edge information of the calibration box 302. One way is to hide the grille 301 and take another screenshot of just the box without changing the line of sight vector, and then perform edge detection (e.g., using ray casting as described above) to extract the edge information of the calibration box 302. Another way is to assign a color to the geometry of the calibration box 302 in the view and use the RGB (red, green, blue) values of that color to identify the calibration box 302. In one implementation, the geometry display tool provides an option to assign a display color to the geometry. For example, when a box is loaded into a geometry tool, the user may set the color of the box to yellow or red rather than the default color displayed to the user (usually gray). Suppose the user sets the calibration box to be red. Computer 1000 can then look at the color or RGB values of a given image that contains this box and grill. Since computer 1000 can recognize that the box in question is red, computer 1000 can know / designate that any red pixels belong to the box. Thus, computer 1000 can identify the location of the calibration box in this regard.
[0086] Identifying the target image with the largest aperture area In one embodiment, the computer 1000 stops the rotation screenshot capture process after acquiring a predefined total number of images. This predefined number may be stored in memory (e.g., 1004) or in some cases may be specified by the user. In such implementations, the process ends when this number is reached. The computer 1000 typically stores all captured images in memory (e.g., 1004).
[0087] As described above, the computer 1000 (at step 208) determines which of the collected images has the largest (or maximum) visible aperture size among the images being collected. In an exemplary implementation, the collected images are classified into three groups: an initial image taken at a rotation angle of 0°, a set of images created from reverse rotation, and a set of images created from forward rotation. In an exemplary implementation, each hole has an area of Ai. The computer 1000 is configured to sum all the areas of the holes to obtain a total aperture area A. For each image, the computer 1000 further determines an area A, denoted as the maximum aperture area, which is equal to the maximum value of all Ai among all images. The image with the maximum aperture area is the target image since it represents the largest aperture size. To search for this target image, the computer 1000 calculates the total aperture area of each image starting from the initial image, and then sweeps through the reverse rotation image set, for example, in order of increasing rotation angle. In most cases, as the computer progresses from the initial image through the set of derotated images, the calculated value for the total aperture area changes (e.g., increases or decreases) from image to image. In a typical implementation, the computer 1000 stops the sweeping process if / when it finds that the calculated total aperture area for a particular image considered in the sweeping process is decreasing (i.e., is smaller than the calculated total aperture area for the immediately preceding image). This image (i.e., the image in the sequence immediately preceding the image with the decreased total aperture area) is selected and designated in memory 1004 as the temporary target image.
[0088] The computer 1000 in this example then sweeps through the set of forward rotated images in order of increasing rotation angle to determine whether any image has a larger total aperture area than the previously designated temporary target image. Similarly, the computer 1000 stops the sweeping process (of the forward rotated images) if / when it finds a decrease in value from one image to the next.
[0089] If the sweep of the forward rotated images does not yield an image whose total aperture area is greater than that of the previously designated temporary target image (found by scanning the reverse rotated images), the computer 1000 designates (in memory 1004) the temporary target as the final target image (i.e., the image with the largest aperture area among all captured images). If the sweep of the forward rotated images reveals any image whose total aperture area is greater than that of the previously designated temporary target image (found by scanning the reverse rotated images), the computer 1000 designates (in memory 1004) the image in the sequence of forward rotated images that came immediately before the image that showed a decrease in total aperture area as the final target image. If the forward and reverse sweeps reveal an immediate decrease in total aperture area (relative to the initial image), the computer 1000 designates (in memory 1004) the initial image as the final target image. Thus, in an exemplary implementation, the final target image is identified by the computer 1000 once this process is complete.
[0090] The above process may work well for grills with a mesh or honeycomb design similar to grill 301, or grills similar to 401 with a horizontal bar design. When the grill is rotated, the horizontal bars 402 of grill 401 (or the hexagonal holes of grill 301) create an obstruction to the view of the holes (e.g., 403) in the grill. Thus, a clear change is evident (and can be identified using the methods described above) when analyzing the total open area from image to image, so that the rotation process can be terminated even in the presence of noisy objects such as logo 404. However, if the grill has a similar design as 406 with vertically aligned bars (with or without a logo), when the grill is rotated around a horizontal axis, there will be an insignificant change, if any, in the total open area, since the vertical bars 406 do not block any holes as the grill rotates. To help address this challenge, in some implementations, computer 1000 may introduce an additional step 209 in which the computer 1000 rotates the grill along its vertical axis 306 if the target image is not found in step 208. The image sweep process of step 208 is repeated for these new image sets (created by taking screenshots of the initial view, a series of views with the grill rotated to the left, and a series of views with the grill rotated to the right).
[0091] In an alternative embodiment, the computer 1000 stops the rotational screenshot taking process by dynamically analyzing the generated images at each angle of θ and continuing to generate new images only after calculating the total open area of the current image. The process still follows an initial-reverse-forward screenshot capture sequence. Compared to the method used in the first embodiment above, this method may result in analyzing fewer or the same number of images depending on the particular grill design involved.
[0092] Calculating the total open area in an image Since the opening size of a hole is proportional to its area, instead of spending a significant amount of computational resources to calculate the overall opening size of the holes, in a typical implementation, the computer 1000 calculates the total opening area in a less computationally intensive manner in step 208. To distinguish the opening area from the frame of the grill, the computer creates or converts the image as a binary image consisting of only two colors or different appearances (e.g., white and black). In an exemplary implementation, instead of utilizing any image processing technique to convert a color or grayscale image to a binary image, the computer 1000 directly generates the binary image in step 205 when the screenshot is taken by setting the background color of the geometry tool or viewer to white and the color of the grill geometry to black.
[0093] An example appearance of a binary image of grill 501 (created in step 205) with the background color of the geometry tool or viewer set to white and the color of the grill 501 geometry set to black is shown as part of image 502 in Figure 5A. Image 502 also includes a view of a spatial calibration box 505 next to the grill 501 geometry.
[0094] The image 502 shown in FIG. 5A cannot be directly used to calculate the total aperture area by the computer 1000 because the color of the space 503 around the grill 501 and calibration box 505 is white (like the openings of the grill 501). When rotated, the change in the total area of the space 503 is unpredictable due to the unknown shape of the input grill 501 (the phrase "input grill" here refers to the grill data loaded in the program or geometry viewer). As a result, errors may occur in the target image search process. To overcome this challenge, the computer 1000 colors the space 503 black, generating the image 506 of FIG. 5B where only the holes / openings of the grill 501 are white. The rest of the image 506 seen through the white holes / openings is black.
[0095] There are various ways in which the computer 1000 can generate the image 506 of FIG. 5B from the image 502 of FIG. 5A. According to one implementation, the computer 1000 utilizes a ray casting method to automate the spatial coloring process described above by shooting rays 504 in a horizontal or vertical inward direction from all four sides of the image 502 (see, for example, FIG. 5A). The computer 1000 checks the color of each pixel visited by each ray 504, and updates the color of that pixel to black if the original color of that pixel was white. Each ray 504 stops when it reaches a pixel that was already black (when the ray reaches it). In some cases, reaching a pixel that is already black indicates that the ray in question may have reached the border of the grill and therefore can (and does) stop.
[0096] However, the color of the calibration box 505 is also black, which would cause the algorithm to fail if not specially handled. For example, if the light ray 504 coming from the left side of the image 502 simply stopped when it reached the left edge of the spatial calibration box 505, some of the white space 503 between the spatial calibration box 505 and the grill 501 would not be black, and the subsequent calculation of the aperture area would be corrupted. One way to address this issue is as follows: Since the coordinate information of the four vertices of the calibration box 505 was previously obtained (at 210) by the computer 1000 (and stored in memory 1004) during the calculation of the calibration coefficients, the computer 1000 simply does not update the color of pixels that the light ray reaches that are within the zone of the spatial calibration box 505 (i.e., within the space outlined by a rectangle with corners at the vertices), and resumes updating the pixel color (from white to black) when the light ray reaches a pixel that is outside of that zone. Furthermore, even if the pixel is black (within the zone of the spatial calibration box), the computer allows the ray to continue through the zone of the spatial calibration box rather than stopping the ray as it would otherwise do when it reaches a black pixel. Once this process is complete, all of the space surrounding the grill 501 and calibration box 505 is colored black, as shown in image 506.
[0097] Black and white coloring is described herein as being used in a particular manner. In other implementations, the coloring can be reversed from that just described (and depicted in Figures 5A and 5B). In still other implementations, various colors, shades, patterns, etc. can be utilized instead of simply black and white coloring.
[0098] In an exemplary implementation, the computer 1000 calculates the total number of white pixels in the image 506 of FIG. 5B. The computer 1000 designates this value (the total number of white pixels in the image 506) as the total open area in the image 506. There are various ways in which the computer can accomplish this task (counting the total number of white pixels). In an exemplary implementation, the computer 1000 utilizes the function findNonZero in the OpenCV® library to calculate the total count of white pixels in the image 506. (See, for example, Bradski, G., 2000. The OpenCV Library. Dr. Dobb's Journal of Software Tools).
[0099] Calculating the overall grill opening size Once the final target image, i.e., the image with the largest aperture area, is found (at 208), computer 1000 calculates the calibration factor (or pixel-to-actual distance ratio) for this image at step 210. As noted above, computer 1000 calculates the calibration factor (or pixel-to-actual distance ratio) for this image using Equation 1 (mentioned above and reproduced here again):
number
[0100] To calculate the value of the aperture size of the entire grill (e.g., average value excluding outliers), it is first necessary to extract information of all apertures (e.g., gap / hole outline / shape) from the image. As a first step to achieve this goal, according to the flowchart of FIG. 2, computer 1000 extracts (at 211) the edges of all objects in the target image. In an exemplary implementation, computer 1000 can utilize a Canny edge detector to obtain edge information. The Canny edge detector can implement a computational approach to edge detection, such as that described in Canny, JA Computational Approach to Edge Detection, Institute of Electrical and Electronics Engineers (IEEE) Transactions on Pattern Analysis and Machine Intelligence, 8, 679-698 (available at the IEEE website). An exemplary Canny edge detection algorithm includes the following steps: 1) smoothing the image by applying a Gaussian filter to remove noise, 2) determining the intensity gradient of the image, 3) applying thresholding or lower cutoff suppression of the gradient magnitude to remove spurious responses to edge detection, 4) applying a dual threshold to determine potential edges, and 5) tracking edges with hysteresis: confirming edge detection by suppressing weak edges and all other edges that are not connected to strong edges. In a typical implementation, edge detection produces a binary image in which edges from the target image are represented as 1 (which may appear as black pixels in the image) and non-edges are represented as 0 (which may appear as white pixels in the image). Variations of the edge detection process are possible. The computer 1000 typically stores (in memory 1004) the edge information extracted at 210 and provides the extracted edge information to step 212 of the illustrated process.
[0101] The computer 1000 then (at 212) finds all contours in the target image represented by the extracted edge information and calculates their areas. A contour is a curve that connects consecutive points (along a boundary) that have essentially the same color or intensity. Contours can be a useful tool for shape analysis and object detection and recognition. In some implementations, the computer 1000 utilizes the findContours function of OpenCV (see, for example, Bradski, G., 2000. The OpenCV Library. Dr. Dobb's Journal of Software Tools) to perform the contour calculation, for example, based on the extracted edge information. This function obtains the contours from a binary image format of the target image, typically generated by the edge extraction process discussed above. In an exemplary implementation, the computer 1000 uses an algorithm for finding contours based on the description given in the paper titled Topological structural analysis of digitized binary images by border following, in Computer Vision, Graphics, and Image Processing, 30(1):32-46, 1985, by Satoshi Suzuki et al. The computer 1000 typically stores the generated (at 212 ) contours in a memory 1004 .
[0102] FIG. 6A shows an example of an image generated by determining the contour from a set of extracted edge information of a target image. The image in FIG. 6A shows the grill of the target image where all edges of the grill (e.g., boundaries between solids and spaces) are shown with dark lines and all other spaces are shown in white. Thus, the dark lines in the image show the contours of all edges from the target image of the grill. In some implementations, the computer 1000 is configured to generate the image shown in FIG. 6A on its display, which may be connected to 1010. These captured contours (e.g., shown in FIG. 6A) are unprocessed and contain noisy contours such as 602, 603, and 604 in addition to at least the target contour 601, and are therefore not well suited to be used to directly calculate the aperture size of the entire grill. 602 refers to the boundary of the entire grill and is therefore considered irrelevant in typical implementations and is excluded. For 603 and 604 and / or any other partial holes, the computer in typical implementations does not resolve the flow across them, as this tends to be too costly and unnecessary given their small percentage of the total number of holes. Essentially the computer omits them, and the results are negligible. In this regard, target contour 610 corresponds to the full-sized openings in the grille, i.e., those that are not truncated by the edges of the opening pattern on either side, top, or bottom of the grille. Contour 602 is the contour that surrounds all other contours. Contour 603 is the contour that extends across the top of the space within contour 603. Contour 604 corresponds to openings in the grille that are on either side, top, or bottom of the opening pattern in the grille, and is therefore truncated because it is smaller, sometimes significantly smaller, than the full-sized (non-truncated) target contour 610 that appears inside the sides, top, and bottom of the opening pattern in the grille.
[0103] In order to reject outliers (e.g., 602, 603, 604), the first step is to calculate the area of all raw contours in step 212. In an exemplary implementation, the area can be calculated using the minAreaRect function in OpenCV®. This calculation produces a list of area values for all raw contours. In some implementations, this list identifies (at 212) the areas calculated for the space within contour 601, as well as all the spaces within contours 602, 603, 604, and any other contours that may have been identified by computer 1000.
[0104] 2, the computer 1000 then rejects the outliers (e.g., contours 602, 603, and 604) based on the area values (calculated in 212) to obtain a list of all candidate contours. In some implementations, the computer 1000 performs this step (rejecting outliers) according to the following exemplary process:
[0105] First, the computer 1000 calculates the formula 2:
number
number
[0106] The computer 1000 then calculates the median of the deviation values in the list of calculated deviation values, this median being
number
[0107] Next, computer 1000 calculates Equation 3:
number
number
number
[0108] The computer 1000 then selects optimized non-dimensional factors (empirical values based on testing) and calculates A ni Remove any elements of the raw contour area list whose value (or the deviation of the normalized area) is greater than s. This results in a new contour list that contains only certain target openings such as 601.
[0109] Referring again to FIG. 2 and now following the illustrated flow chart, the computer (at 214) calculates a 2D oriented bounding box 606 (see, e.g., FIG. 6B) for each contour or opening 605 represented in the candidate contour list obtained from step 213. In an exemplary implementation, the oriented bounding box 606 can be calculated using the minAreaRect function in OpenCV®. (See, e.g., Bradski, G., 2000. The OpenCV Library. Dr. Dobb's Journal of Software Tools). This function implements the "Rotary Caliper" algorithm (see, e.g., Shamos, M., 1978. "Computational Geometry," Yale University. pp. 76-81) and applies such algorithm to the convex hull of the input points. The term "convex hull" in this context refers to the smallest convex set that contains a particular shape. In this example, the input points may be the points shown at 605. Given the points that define the shape of 605, the algorithm creates the box 606 whose area the computer seeks.
[0110] The box information for the oriented bounding boxes 606 returned is the width W BB and length L BB The computer 1000 typically stores this information in the memory 1004.
[0111] The computer 1000 then calculates (at 215) the minimum between these two for all boxes. This resulting minimum is the gap size for this opening. A new list of gap sizes is formed by iterating through the candidate contour list. The invention then applies the outlier rejection algorithm utilized in step 213 with this gap size list as input instead of the area list to further remove additional outliers. In step 216, the invention calculates the average of the final gap size list to obtain the overall opening size of the grill in pixels. The final physical overall opening size in mm (or other physical units) is calculated by multiplying the size in pixels by the calibration factor defined in Equation 1.
[0112] According to one implementation, after the computer has the width (W) and length (L), the gap size is the smaller value between W and L, i.e., gap size=min(W,L). This is a rectangular box, and the computer typically solves the flow across the holes, i.e., uses the smaller value between W and L to determine how many mesh cells need to be placed there. Previously, the computer would take the W and L of every hole / contour and use gap size=min(W,L) to get a list of gap sizes for all holes.
[0113] In a typical implementation, the computer applies VR11 and VR10 to cover the grill. VR11 has a mesh size of 1 mm and VR10 has a mesh size of 2 mm. For example, if the returned gap size is 8 mm, then VR11 is required since 8 mesh cells are needed to cross the gap. If the returned gap size is 16 mm, then the computer applies a VR10 of 2 mm which gives 8 cells to cross the 16 mm gap and removes VR11 to save computation time.
[0114] 7A is a schematic diagram of a grill (represented by a hexagonal outline and mesh overlay). The grill shown is small, and the VR region of the associated mesh is VR11 (e.g., the finest VR region), which results in eight rows of cells from the top to the bottom of the grill as shown.
[0115] 7B is a schematic diagram of a grill (represented by a hexagonal outline and mesh overlay). The grill shown is larger, and the VR region of the associated mesh is VR11 (e.g., the finest VR region), which results in 16 rows of cells from the top to the bottom of the grill as shown. Application of this VR11 mesh would result in a wasteful (i.e., inefficient) use of computational resources.
[0116] Figure 7C is a schematic diagram of a grill (represented by a hexagonal outline and mesh overlay). The grill shown is larger (as in Figure 7B), and the VR region of the associated mesh is VR10 (e.g., the second finest mesh) that is automatically selected and applied by computer 1000 based on the process described herein, resulting in 8 rows of cells from the top to the bottom of the grill as shown. Application of this VR10 mesh results in efficient use of computational resources and high accuracy of any simulations.
[0117] FIG. 9 is a schematic diagram of an implementation of a computer system 1100 configured to perform functions disclosed herein.
[0118] The illustrated computer system 1100 includes a number of user workstations 1102a, 1102b...1102n, and a server 1104 having a computer memory 1106 and a computer processor 1108. The workstations 1102a, 1102b...1102n are coupled to the server 1104 and to each other via a communication network 1110 that enables communication therebetween. In a typical implementation, each of the user workstations 1102a, 1102b...1102n may be implemented as a computer (e.g., computer 1000) having computer memory, storage, a computer processor, an I / O device interface (having one or more connected I / O devices), and a network interface (connected to the network 1110 to facilitate communication with other network-connected devices). Similarly, the server 1104 may be configured with storage, an I / O device interface (having one or more connected I / O devices), and a network interface (connected to the network 1110 to facilitate communication with other network-connected devices).
[0119] The computer system 1100 is configured to implement the systems and techniques disclosed herein. In doing so, however, various implementations of the system 1100 may distribute various memory and processing functions among several different system components throughout the system. In a typical implementation, a human user may access and interact with the system 1100 from any one or more of the user workstations 1102a, 1102b...1102n, and processing / memory functions may be performed in these user workstations and / or processors 1104, with communication therebetween via the network 1110.
[0120] Although several embodiments of the present invention have been described, it will be understood that various modifications can be made without departing from the spirit and scope of the invention.
[0121] For example, the systems and techniques disclosed herein are not limited to vehicle grilles, but may be extended to apply to virtually any type of grille that facilitates and / or controls air or fluid flow.
[0122] Additionally, in some implementations, the systems and techniques disclosed herein can be integrated into an automated simulation workflow to automatically create 3D digital geometry to define various variable resolution (VR) mesh regions to simulate the grille. In some implementations, the systems and techniques can be utilized to rapidly create multiple grille models with various exterior designs to perform fast turnaround simulations in the early design stages.
[0123] The ray casting process is not limited to casting rays toward an image of a modeled object (e.g., a car) from all directions: in some implementations, rays may be cast toward the modeled object from two or more arbitrary directions.
[0124] It should be understood that the example embodiments described herein can be implemented in many different ways. In some examples, the various methods and machines described herein can each be implemented by a physical, virtual, or hybrid general-purpose computer, such as a computer system as described herein, or a computer network environment. The computer / system can be converted into a machine that executes the methods described herein, for example, by loading software instructions into a memory or non-volatile storage for execution by a CPU. Those skilled in the art should understand that the computer / system and its various components can be configured to execute any embodiment or combination of embodiments of the invention described herein. Furthermore, the system can implement the various embodiments described herein utilizing any combination of hardware, software, and firmware modules that are operably coupled to or embedded in the computer / system, internally or externally.
[0125] Various aspects of the subject matter disclosed herein can be implemented by digital electronic circuitry, or by computer-based software, firmware, or hardware including the structures disclosed herein and / or structural equivalents thereof, and / or by combinations thereof. In some embodiments, the subject matter disclosed herein can be implemented by one or more computer programs, i.e., one or more modules of computer program instructions encoded on a computer storage medium for execution by or to control the operation of one or more data processing devices (e.g., processors). Alternatively or additionally, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal generated to encode information for transmission to a suitable receiving device for execution by the data processing device. A computer storage medium can be, or can be included within, a computer-readable storage device, a computer-readable storage substrate, a random access or serial access memory array or device, or a combination of these. A computer storage medium should not be considered to be only a propagated signal, but a computer storage medium can be a source or destination of computer program instructions encoded in an artificially generated propagated signal. The computer storage medium can be, or can be contained in, one or more separate physical components or media, such as multiple CDs, computer disks, and / or other storage devices.
[0126] Certain operations described herein may be implemented as operations performed by a data processing device (e.g., a processor / specially programmed processor / computer) on data stored on one or more computer-readable storage devices or data received from other sources, such as the computer systems and / or network environments described herein. The term "processor" (etc.) encompasses any type of device, apparatus, and machine for processing data, including, by way of example, a programmable processor, a computer, a system-on-chip, or a combination or combinations of the above. The device may include special purpose logic circuitry, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). In addition to hardware, the device may also include code that creates an execution environment for the computer program, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The device and execution environment may implement a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.
[0127] Although the specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or subject matter that may be claimed, but rather as descriptions of features specific to particular embodiments of a particular invention. Certain features described herein in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, even if features are described above as acting in a certain combination and initially claimed as such, in some cases one or more features from a claimed combination may be deleted from the combination, and the claimed combination may be directed to a subcombination or modified form of the subcombination.
[0128] Similarly, although operations may be described herein as performing a particular order or manner, this should not be understood as requiring that such operations be performed in the particular order or sequential order shown, or that all of the operations shown be performed, to achieve desired results. In certain situations, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system components in the above embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the program components and systems described may generally be integrated into a single software product or packaged into multiple software products.
[0129] Each functional component referred to in this specification may be implemented by one or more computer hardware components (e.g., one or more computer processors) that execute specially programmed computer-readable instructions stored on a computer-readable medium (e.g., hardware memory in the form of RAM, ROM, etc.) to perform the associated computer-implemented functions described in this specification.
[0130] The systems and techniques disclosed herein can be utilized in connection with the overall design, analysis, and real-world manufacturing of an object (e.g., a grill). Typically, the simulation process disclosed herein can be utilized to analyze the performance or behavior of a modeled object (e.g., a grill) to confirm expectations or guide further iterations in the design of the modeled object and / or associated systems (including the grill). Typically, utilizing the systems and techniques disclosed herein, following design and analysis / simulation, a real-world version of the modeled object (e.g., a grill) is manufactured based on a final design that is exposed to computer-based simulation prior to manufacturing. The final manufactured real-world version of the modeled object becomes the physical object (e.g., a grill, etc.).
[0131] Other implementations are within the scope of the claims. [Explanation of symbols]
[0132] 101 Grill 102 VR11 103 VR10 104 Gap / Hole 105 Oriented Bounding Boxes 106 Gaze Vector 107 Front 108 Outer Rim 109 Rear 111 Right side 113 Left side 115 Top 117 Bottom 301 Grill 302 Spatial Calibration Box 304 horizontal axis 306 Vertical Rotation Axis 307 images 308 images 309 images 310 Rays 311 Ray of light 312 Vertex 313 Vertex 401 Grill 402 Horizontal Bar 403 holes 404 logo 406 Vertical Bar 501 Grill 502 images 503 Space 504 Ray of light 505 Spatial Calibration Box 506 images 601 Target Contour 602 Contour 603 Contour 604 Contour 605 Opening 606 Oriented Bounding Boxes 1000 Computers 1002 Processor 1004 Memory 1006 Storage device 1007 Network Interface 1008 Software 1010 Input / Output Device Interface 1012 Local Bus 1020 Operating Systems 1100 Computer Systems 1102a User Workstation 1102b User Workstation 1102n User Workstation 1104 Server 1106 Computer Memory 1108 Computer Processors 1110 Communication Network
Claims
1. 1. A computer-implemented method comprising automatically determining an estimate of a ventilation grille opening size to automate a numerical simulation setup based on inputs in a computer-implemented environment, the computer-implemented method comprising: generating a plurality of computer-rendered image screenshots of the three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotation angles about a first axis; identifying which of the screenshots, if any, have an image of the three-dimensional grill geometry that has a greater total aperture value than any other of the screenshotted images of the three-dimensional grill geometry; and designating the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size.
4. A computer-implemented method comprising:
2. 2. The computer-implemented method of claim 1, wherein the total aperture value represents a size of an opening in the three-dimensional grill geometry when displayed in the corresponding screenshot with the three-dimensional grill geometry positioned at the corresponding rotation angle.
3. The computer-implemented method of claim 2 , wherein the total aperture value is different for at least some or all of the screenshots.
4. identifying which, if any, of the screenshotted images of the three-dimensional grill geometry has the largest total aperture value; For each of the above screenshots calculating an area value representative of an area of an opening in the grill geometry as displayed in the corresponding screenshot positioned at the corresponding rotation angle about the first axis; and designating the screenshot having the largest calculated area value as the image of the screenshotted three-dimensional grill geometry having the largest total aperture value. The computer-implemented method of claim 1 , comprising:
5. generating said screenshots of said plurality of computer-rendered images of said three-dimensional grill geometry; identifying an initial gaze vector for defining a viewpoint from which to create said screenshot; The computer-implemented method of claim 1 , comprising:
6. generating said screenshots of said plurality of computer-rendered images of said three-dimensional grill geometry; creating a first screenshot of the computer-rendered image of the three-dimensional grill geometry while positioning the image of the three-dimensional grill geometry at a first rotation angle about the first axis; rotating the computer-rendered image of the three-dimensional grill geometry about the first axis to two or more subsequent rotation angles about the first axis; and generating subsequent screenshots of the computer-rendered image of the three-dimensional grill geometry disposed at each of the two or more subsequent rotation angles about the first axis; The computer-implemented method of claim 1 , further comprising:
7. rotating the computer-rendered image of the three-dimensional grill geometry about the first axis in a first direction so long as the total aperture value of the image does not decrease within successive screenshots as the angle of rotation increases; In response to the total aperture value of the images decreasing in successive screenshots as the rotation angle increases, the computer-implemented method rotating the computer-rendered image of the three-dimensional grill geometry about the first axis in a second direction opposite to the first direction; and creating subsequent screenshots of the computer-rendered image of the three-dimensional grill geometry while positioning the image of the three-dimensional grill geometry at subsequent angles after rotating the image in the second direction; The computer-implemented method of claim 6 , further comprising:
8. if none of the screenshots are identified as having the maximum total aperture value, creating screenshots of computer-rendered images of the three-dimensional grill geometry at different rotation angles about a second axis different from the first axis. The computer-implemented method of claim 1 , further comprising:
9. calculating a calibration factor for the target image, the calibration factor representing a pixel-to-actual distance ratio; extracting edges of the target image; identifying contours in the target image based on the extracted edges; and Calculating the area within said identified contour. The computer-implemented method of claim 1 , further comprising:
10. generating a contour list including only the retained contours by rejecting outlier contours based on said area calculation; computing a two-dimensional oriented bounding box for each contour represented in the contour list and returning width and length values for each of the two-dimensional oriented bounding boxes; identifying a minimum between the width value and the length value for each of the two-dimensional oriented bounding boxes; and calculating a final opening size value representing an estimate of the opening size of the ventilation grille based on the identified minimum value; The computer-implemented method of claim 9 , further comprising:
11. importing the three-dimensional grill geometry from a source application; and Computing an oriented bounding box based on the three-dimensional grill geometry. The computer-implemented method of claim 1 , further comprising:
12. creating a spatial calibration box to associate a pixel region of a computer-rendered image of the three-dimensional grill geometry with a physical region for containing a real-world version of a grill based on the three-dimensional grill geometry; The computer-implemented method of claim 1 , further comprising:
13. automatically assigning a particular one of two or more variable resolution region options to the grill geometry based on the calculated final aperture size as part of setting up the numerical simulation in a computer implemented environment. The computer-implemented method of claim 1 , further comprising:
14. performing said numerical simulation for said three-dimensional grill geometry based on said automatically assigned variable resolution regions; The computer-implemented method of claim 13 further comprising:
15. 15. The computer-implemented method of claim 14, further comprising manufacturing a plurality of real-world grills using real-world machinery based on the three-dimensional grill geometry after performing the numerical simulation.
16. 1. A computer-implemented method comprising automatically determining an estimate of a ventilation grille opening size to automate a numerical simulation setup based on inputs in a computer-implemented environment, the computer-implemented method comprising: Importing 3D grill geometry; calculating an oriented bounding box based on the three-dimensional grill geometry; identifying an initial line of sight vector of the imported three-dimensional grill geometry; creating a spatial calibration box to associate a pixel region of the computer-rendered image of the three-dimensional grill geometry with a physical region for containing a real-world version of a grill based on the three-dimensional grill geometry; screenshotting a series of computer-rendered images of the three-dimensional grill geometry from a viewpoint defined by the initial line of sight vector and while placing the three-dimensional grill geometry in various orientations, each orientation showing the images of the three-dimensional grill geometry at various rotation angles about a first axis; identifying which, if any, of said screened images of the three-dimensional grill geometry have a greater total aperture value than any other of said screened images of the three-dimensional grill geometry; designating as a target image an image within said screened three-dimensional grill geometry image identified as having a greater total aperture value than any other of said screened three-dimensional grill geometry images; calculating a calibration factor for the target image; extracting edges of the target image; identifying contours within the target image; calculating the area within said identified contour; generating a contour list including only the retained contours by rejecting outlier contours based on said area calculation; computing a two-dimensional oriented bounding box for each contour represented in the contour list and returning width and length values for each of the two-dimensional oriented bounding boxes; identifying a minimum between the width value and the length value for each of the two-dimensional oriented bounding boxes; and calculating a final opening size value representing an estimate of the opening size of the ventilation grille based on the identified minimum value; 4. A computer-implemented method comprising:
17. automatically assigning certain of two or more variable resolution options to regions associated with the grill geometry as part of setting up a numerical simulation in a computer implemented environment based on the calculated final aperture size; and performing said numerical simulation for said three-dimensional grill geometry based on said automatically assigned variable resolution regions; The computer-implemented method of claim 16 further comprising:
18. 20. The computer-implemented method of claim 17, further comprising manufacturing a plurality of real-world grills using real-world machinery based on the three-dimensional grill geometry after performing the numerical simulation.
19. 1. A computer system configured to automatically determine an estimate of a ventilation grille opening size to automate the setup of a numerical simulation based on inputs in a computer-implemented environment, the computer system comprising: A computer processor; and a computer-based memory operably coupled to the computer processor, the computer-based memory, when executed by the computer processor, generating a plurality of computer-rendered image screenshots of the three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotation angles about a first axis; identifying which of the screenshots, if any, have an image of the three-dimensional grill geometry that has a greater total aperture value than any other of the screenshotted images of the three-dimensional grill geometry; and designating the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size. storing computer readable instructions for causing the computer-based system to Computer system.
20. When executed by a computer-based processor, generating a plurality of computer-rendered image screenshots of the three-dimensional grill geometry while positioning the three-dimensional grill geometry at various rotation angles about a first axis; identifying which of the screenshots, if any, have an image of the three-dimensional grill geometry that has a greater total aperture value than any other of the screenshotted images of the three-dimensional grill geometry; and designating the identified image as a target image for further processing to determine an estimate of the ventilation grille opening size. A non-transitory computer readable medium storing computer readable instructions for causing the computer-based processor to automatically determine an estimate of an opening size of the ventilation grille to automate the setup of a numerical simulation based on inputs in a computer-implemented environment by utilizing a process including:
