Cabin CFD simulation post-processing method, device, equipment and medium

By automatically processing the core domain and surface in the nacelle simulation model, the core surface space matrix surface is generated, which solves the problems of low simulation efficiency and poor accuracy caused by manual operation, and achieves efficient and accurate reading of simulation results.

CN120430221APending Publication Date: 2025-08-05ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510406683.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

In the prior art, the post-processing of vehicle cabin simulation analysis relies on manual operations, resulting in cumbersome and error-prone, affecting simulation efficiency and accuracy.

Method used

By obtaining the core domain in the cabin simulation model, filtering out the core face set, and generating the core face space matrix and matrix surface, automatically reading the simulation results, reducing manual intervention.

Benefits of technology

It improves the processing efficiency and accuracy of simulation results, reduces artificial errors, and ensures the consistency and reliability of simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120430221A_ABST
    Figure CN120430221A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle simulation, and discloses a cabin CFD simulation post-processing method, device and equipment and a medium, and the method comprises the steps: obtaining a core body region in a cabin simulation model, and carrying out the screening of the boundary type of the core body region, and obtaining a core body surface set; wherein the core body region represents a grid region used for heat exchange in the cabin simulation model; generating a corresponding core surface space matrix for each core surface in the core surface set; based on the core surface space matrix, determining core space parameters corresponding to the core surface; and generating a matrix surface corresponding to the core surface according to a pre-configured row and column number in combination with the core surface space matrix and the core space parameters so as to automatically read a cabin CFD simulation result based on the matrix surface. According to the technical scheme provided by the invention, the time consumption of post-processing work can be saved, and the efficiency of analysis work is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle simulation technology, and in particular to a cabin CFD simulation post-processing method, device, equipment and medium. Background Art

[0002] With the development of fluid simulation technology and the improvement of computer hardware performance, simulation analysis is increasingly used in vehicle development, especially in the performance analysis of thermal management systems. It has gradually replaced traditional experimental tests and become an important basis for design.

[0003] However, the current post-processing of vehicle cabin simulation analysis mainly relies on manual operations by engineers. Reading large amounts of result matrices is tedious and error-prone, seriously affecting simulation efficiency and accuracy.

[0004] Therefore, improving the reading efficiency of simulation results and reducing human errors to improve the efficiency and accuracy of simulation analysis are issues that need to be urgently addressed. Summary of the Invention

[0005] The present application provides a cabin CFD simulation post-processing method, device, equipment and medium, which achieves the technical effect of saving post-processing time and improving the efficiency of analysis work.

[0006] In order to achieve the above objectives, the main technical solutions adopted in this application include: In a first aspect, an embodiment of the present application provides a cabin CFD simulation post-processing method, the method comprising: Acquire a core domain in the cabin simulation model, and filter the core domain according to a boundary type to obtain a core face set; wherein the core domain represents a grid area used for heat exchange in the cabin simulation model; Generating a corresponding core surface space matrix for each core surface in the core surface set; Determining core space parameters corresponding to the core surface based on the core surface space matrix; According to the pre-configured number of rows and columns, the core surface space matrix and the core space parameters are combined to generate a matrix surface corresponding to the core surface, so that the cabin CFD simulation results are automatically read based on the matrix surface.

[0007] This embodiment provides a cabin CFD simulation post-processing method that accurately screens out key heat exchange areas in the cabin simulation model and divides them into core surface sets, laying the foundation for subsequent analysis. A core surface space matrix is generated based on these core surface sets, further refining the spatial characteristics of each core surface. By extracting the core surface space parameters corresponding to the core surface, a matrix surface is further generated, which facilitates the subsequent reading of various parameters in the heat exchange analysis process, significantly improving processing efficiency and simulation accuracy. This automated post-processing process not only improves calculation speed, but also reduces human intervention, ensuring the consistency and reliability of simulation results.

[0008] In one embodiment, obtaining a core domain in the cabin simulation model and filtering the core domain according to a boundary type to obtain a core surface set includes: Traversing all regions in the cabin simulation model to obtain a region type for each region; According to the region type, the core domain is obtained by screening; For each core domain, traverse all boundaries corresponding to each core domain and obtain the boundary type of each boundary; According to the boundary type, the core surface set including the core air inlet surface and the core air outlet surface is screened and obtained.

[0009] This embodiment accurately locates and optimizes key areas by gradually screening the areas, boundaries, and surfaces in the cabin simulation model. First, by traversing all areas in the cabin simulation model and obtaining the area types, different areas can be classified according to function or characteristics, which is convenient for subsequent analysis. Next, the core domain is filtered out according to the area type, and the boundary type of each core domain is further traversed and identified, and the core air inlet surface and the core air outlet surface are filtered out. In this way, engineers do not need to manually extract and process each data point, but can quickly obtain data in an automated manner. This not only greatly reduces the workload of post-processing, but also accelerates the data analysis and optimization process, thereby improving the efficiency of subsequent analysis work.

[0010] In one embodiment, the core space parameter includes the core surface width; the core surface width is obtained by: The core surface width corresponding to the core surface is determined according to the difference between the maximum value of the Y axis and the minimum value of the Y axis in the core surface space matrix.

[0011] In one embodiment, the core space parameter includes the core surface height; the core surface height is obtained by: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; A core surface height corresponding to the core surface is determined according to the X-axis distance and the Z-axis distance.

[0012] In one embodiment, the core space parameter includes a core surface rotation angle; and the core surface rotation angle is obtained by: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; Determining a tangent value according to a ratio of the X-axis distance to the Z-axis distance; Determine the radian corresponding to the tangent value; The radian is converted into an angle to obtain the core surface rotation angle.

[0013] In one embodiment, generating a matrix surface corresponding to the core surface according to a preconfigured number of rows and columns, in combination with the core surface space matrix and the core space parameters, includes: Acquire initialization coordinates, where the initialization coordinates represent the starting position and the ending position of the matrix surface; Generate a width of a single face according to the core face width in the core space parameter and the number of columns in the number of rows and columns; Generate the height of a single surface according to the core surface height in the core space parameter and the number of rows in the number of rows and columns; A nested loop is used to traverse the rows and columns, and the initialization coordinates are updated according to the width and height of the single face, so as to generate the matrix face corresponding to the core face row by row and column by column.

[0014] The present embodiment, by obtaining the initialization coordinates, determines the starting position and the end position of the matrix face, thereby provides accurate starting point for subsequent generation. According to the core body face width in the core body space parameter and the number of rows and columns, the width of each unit face can be calculated, ensuring that the width of each matrix face is uniform. Equally, according to the core body face height and the number of rows, the height of each unit face can be calculated, ensuring the consistency of the matrix face in the height direction. Finally, by nested loop traversal rows and columns, according to the width and height of a single face, row by row and column by column, the initialization coordinates are updated, thereby accurately generating the matrix face. This process has promoted the automation and the precision that the matrix face generates, optimized the post-processing process of CFD simulation data, and significantly improved the working efficiency of three-dimensional simulation analysis.

[0015] In one embodiment, after generating the matrix surface corresponding to the core surface, the method further includes: When the core surface rotation angle in the core space parameters is not zero, the matrix surface is rotated according to the core surface rotation angle to obtain a rotated matrix surface.

[0016] This embodiment automatically rotates the matrix surface according to the rotation angle when the core surface rotation angle is non-zero, thereby ensuring precise spatial alignment between the matrix surface and the core surface. This operation effectively eliminates errors caused by changes in the core surface angle, improving simulation accuracy and the reliability of the results. Furthermore, the automated rotation of the matrix surface simplifies the operational process, reduces the risk of human error, and improves work efficiency. Furthermore, automatic matrix surface rotation reduces the time and error associated with manual adjustments, making the simulation process more efficient and accurate.

[0017] In one embodiment, the method further comprises: Converting the matrix surface into a corresponding derived surface; wherein the derived surface represents a virtual surface derived from the component surface and is used to read the cabin CFD simulation results; According to the pre-configured scalar type, the derived surface is used as a component of the report to generate a report corresponding to the scalar type; according to the position of the matrix surface, the report value of the report is stored in a two-dimensional array.

[0018] This embodiment can effectively associate the geometric surfaces of components with simulation data by converting matrix surfaces into derived surfaces, ensuring that the simulation data can accurately reflect the characteristics and performance of the component surfaces. In cabin simulation, derived surfaces can be used as an effective tool to obtain fluid dynamics simulation data, thereby flexibly and accurately reading key parameters such as flow rate, pressure, and temperature. Customized reports are generated based on pre-configured scalar types to ensure the relevance and pertinence of the report content, helping to analyze key data in the cabin simulation. At the same time, the values in the report are stored in a two-dimensional array, making data management more standardized and efficient, and facilitating subsequent data comparison, analysis, and visualization. Through the optimization of these technical means, the accuracy of simulation results and analysis efficiency can be significantly improved, promoting the accuracy and work efficiency of cabin simulation analysis.

[0019] In a second aspect, an embodiment of the present application provides a cabin CFD simulation post-processing device, the device comprising: A core surface acquisition unit is used to acquire a core domain in the cabin simulation model and obtain a core surface set by screening the core domain according to the boundary type of the core domain; wherein the core domain represents a grid area used for heat exchange in the cabin simulation model; a space matrix generating unit, configured to generate a corresponding core surface space matrix for each core surface in the core surface set; A spatial parameter determination unit is used to determine the core space parameters corresponding to the core surface based on the core surface space matrix; a matrix surface generation unit is used to generate a matrix surface corresponding to the core surface according to a pre-configured number of rows and columns, combined with the core surface space matrix and the core space parameters, so as to automatically read the cabin CFD simulation results based on the matrix surface.

[0020] In a third aspect, an embodiment of the present application provides a computer device, including: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the above-mentioned cabin CFD simulation post-processing method by executing the computer instructions.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are used to enable a computer to execute the cabin CFD simulation post-processing method described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] Figure 1 A flowchart of a cabin CFD simulation post-processing method provided in an embodiment of the present application; Figure 2 A schematic diagram of an input interface provided in an embodiment of the present application; Figure 3 Flowchart of step S1 provided in the embodiment of the present application; Figure 4 Flowchart of step S7 provided in the embodiment of the present application; Figure 5 A schematic diagram of a matrix surface provided in an embodiment of the present application; Figure 6 A block diagram of a cabin CFD simulation post-processing device provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.

[0025] With the continuous maturity of fluid simulation technology and the rapid improvement of computer hardware performance, simulation analysis is becoming increasingly widely used in vehicle development. In particular, it is gradually replacing traditional experimental testing methods in thermal management system performance analysis, becoming a crucial basis for product development and design. To meet the rapid development pace of multiple solutions and short cycles, the efficiency and accuracy of simulation analysis are extremely important. Furthermore, high-precision and information-rich simulation results can not only effectively replace experiments and reduce development costs, but also provide critical data that cannot be obtained experimentally.

[0026] Currently, post-processing for vehicle cabin simulation analysis primarily relies on manual operations by engineers. This method is highly repetitive, labor-intensive, and slow to respond, significantly consuming a significant portion of the simulation analysis engineer's time. In particular, thermal management system analysis often employs a combination of one-dimensional and three-dimensional simulations. The wind speed or temperature result matrix provided by the three-dimensional simulation model serves as input to the one-dimensional simulation model. Due to the uneven distribution of wind speed and temperature at different locations, one-dimensional simulations require a large number of result matrices to accurately reflect these variations.

[0027] However, reading these result matrices is a tedious process. For example, for a 20-row, 30-column matrix, a 3D simulation engineer would need to manually read approximately 1,200 reported results. This represents a massive amount of data and is prone to human error. Even under optimal circumstances, reading a single result takes approximately 10 seconds, while reading all the results would take 200 minutes, making this practically unfeasible. Therefore, the tedious nature of reading the result matrix has become a significant bottleneck affecting the accuracy of 1D simulations.

[0028] In order to solve the above technical problems, according to an embodiment of the present application, an embodiment of a cabin CFD simulation post-processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] In this embodiment, a cabin CFD simulation post-processing method is provided. Figure 1A flowchart of a cabin CFD simulation post-processing method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the process includes the following steps: Step S1: obtaining a core domain in the cabin simulation model, and filtering a core face set according to the boundary type of the core domain; wherein the core domain represents a grid area used for heat exchange in the cabin simulation model.

[0030] Specifically, in cabin simulation models, core domains (also called porous media domains) are often used to represent areas related to heat exchange. For example, a vehicle's radiator, cooling system, and air filter typically involve porous media, which exchange heat with fluids (such as air or coolant). The simulation software's API is used to obtain a collection of all regions in the cabin simulation model. Common simulation software (such as CFD software) typically provides APIs to retrieve regions within the model, such as functions like sim.getRegionManager().getRegions(). This function retrieves region information. A collection of regions (regions) is obtained, including fluid domains, solid domains, and core domains. To identify core domains, the region type must be determined. By calling each region's type identification method (such as instanceof), we can determine whether a region is a core domain. Finally, all core domains are filtered out and formed into a collection. For each core domain, all its subordinate boundaries are further traversed. The region.getBoundaryManager().getBoundaries() function is used to obtain the collection of all boundaries under the core domain. The inlet and outlet surfaces of the core domain are crucial for fluid flow; they are the surfaces that come into contact with the fluid during heat exchange. By determining the boundary type (e.g., contact surface type), the inlet and outlet surfaces can be identified. By obtaining the simple name of the boundary element's class, such as b.getClass.getSimpleName, the class name of the boundary can be obtained. Then, by determining whether the class name is equal to the boundary surface class name, such as b.getClass.getSimpleName.equals("InterfaceBoundary"), the boundary can be determined to be a contact surface. In engineering simulations, the core domain has only two contact surfaces: the inlet and outlet. By determining the contact surface, a collection of the inlet and outlet surfaces of the core domain can be obtained, but it is impossible to determine which is the specific inlet surface. In the final processing, there is no need to distinguish between inlet and outlet surfaces; all inlet and outlet surfaces are simply grouped into a unified collection for subsequent simulation analysis.

[0031] Step S3: Generate a corresponding core face space matrix for each core face in the core face set.

[0032] Specifically, the "position report" of each core face is obtained through the API to determine its coordinate information in three-dimensional space. The position report usually contains the minimum and maximum values of the face on the X, Y, and Z axes. After obtaining the position information report of the core face, the next step is to extract the minimum and maximum values of each axis from the report. After extracting the minimum and maximum coordinates of each core face, the data is organized into a spatial matrix. Each core face will generate a matrix containing {X min ,Y min ,Z min ,X max ,Y max ,Z max The core face space matrix of} defines the minimum and maximum boundaries of a cuboid that just wraps around the core face.

[0033] Step S5: determining the core space parameters corresponding to the core surface based on the core surface space matrix.

[0034] Specifically, the core space parameters characterize the geometric parameters of the core surface. min ,Y min ,Z min ,X max ,Y max ,Z max}, the geometric and spatial characteristics of the core surface can be determined, and these characteristics are characterized by the core space parameters. Specifically, the core surface width is obtained by calculating the difference between the maximum and minimum values of the Y axis in the space matrix, that is, width = Y max -Y min The core surface height is obtained by calculating the difference between the maximum and minimum values of the Z axis, that is, height = Z max -Z min The calculation of the core body rotation angle is based on the distance difference between the X axis and the Z axis. The tangent value is obtained by calculating the ratio of these two distances, and then the arc tangent function is used to obtain the radian. Finally, the radian is converted into an angle, that is, rotate = arctan ((X max -X min) / (Z max -Z min ))×(180 / π). These parameters together describe the position, size, and orientation of the core surface in three-dimensional space, providing the necessary geometric information for subsequent simulation analysis and processing.

[0035] Step S7 : generating a matrix surface corresponding to the core surface according to the pre-configured number of rows and columns, combined with the core surface space matrix and the core space parameters, so as to automatically read the cabin CFD simulation results based on the matrix surface.

[0036] Specifically, a front-end window is loaded to select the inlet and outlet of the core surface, the physical scalar to be read, the number of rows and columns of the matrix surface, and provide a run button. This window will serve as the input interface for subsequent steps. Figure 2 As shown, on the left: the core inlet and outlet surface selection, which lists all the core surface inlet and outlet surfaces, and each inlet and outlet surface provides an option to check. On the right: the physical scalar selection to read from the core surface, which lists all the physical quantities that can be read (such as mass flow, velocity, temperature, etc.), and each physical quantity provides an option to check. Text box: Enter the number of rows and columns of the matrix surface. The user can enter the number of rows and columns of the matrix surface to be read. Lower right corner: Run button, which the user clicks to start the subsequent steps.

[0037] According to the pre-configured number of rows and columns M and N, combined with the core surface space matrix and core space parameters, the matrix surface corresponding to the core surface can be generated. First, calculate the width width / N and height height / M of a single sub-surface. Then, initialize the starting point coordinates begin={X min ,Y min +width,Z min +height} and the end point coordinate end={X min ,Y min ,Z min Then, through nested loops (the outer loop controls M rows, the inner loop controls N columns), the matrix surface is generated row by row and column by column. In this way, M×N sub-surfaces can be generated that are aligned with the core surface position, forming a complete matrix surface layout, providing a foundation for subsequent simulation analysis. Subsequent engineers can read simulation results based on the matrix surface, avoiding time-consuming manual reading.

[0038] This embodiment provides a cabin CFD simulation post-processing method that accurately screens out key heat exchange areas in the cabin simulation model and divides them into core surface sets, laying the foundation for subsequent analysis. A core surface space matrix is generated based on these core surface sets, further refining the spatial characteristics of each core surface. By extracting the core surface space parameters corresponding to the core surface, a matrix surface is further generated, which facilitates the subsequent reading of various parameters in the heat exchange analysis process, significantly improving processing efficiency and simulation accuracy. This automated post-processing process not only improves calculation speed, but also reduces human intervention, ensuring the consistency and reliability of simulation results.

[0039] Figure 3 The flowchart of step S1 provided in the embodiment of the present application may include the following steps: Step S11: traverse all areas in the cabin simulation model and obtain the area type of each area.

[0040] Specifically, in the cabin simulation model, the core domain (also called the porous media domain) is usually used to represent the area related to heat exchange. For example, the radiator, cooling system, air filter, etc. in the car usually involve porous media, which will exchange heat with fluids (such as air or coolant). Get all the region sets in the cabin simulation model through the API of the simulation software. Common simulation software (such as CFD software) usually provides an API interface to obtain the regions in the model, such as sim.getRegionManager().getRegions(). This function obtains region information. A region set (regions) will be obtained, which includes fluid domains, solid domains, and core domains.

[0041] Step S13: Screen and obtain the core domain according to the region type.

[0042] Specifically, to identify core domains, it is necessary to determine the type of the region. By calling each region's type identification method (such as instanceof), it is possible to determine whether a region is a core domain. Ultimately, all core domains are screened and formed into a set.

[0043] Step S15: for each core region, traverse all boundaries corresponding to each core region and obtain the boundary type of each boundary.

[0044] Specifically, for each core region, all its subordinate boundaries are further traversed, and the set of all boundaries under the core region can be obtained through the region.getBoundaryManager().getBoundaries() function.

[0045] Step S17: Screening and obtaining a core surface set including a core air inlet surface and a core air outlet surface according to the boundary type.

[0046] Specifically, the inlet and outlet surfaces of the core domain are important components related to fluid flow; they are the surfaces that come into contact with the fluid during the heat exchange process. By determining the boundary type (e.g., contact surface type), the core inlet and outlet surfaces can be identified. By obtaining the simple name of the boundary element's class, such as b.getClass.getSimpleName, the class name of the boundary can be obtained. Then, based on whether the class name is equal to the boundary surface class name, such as b.getClass.getSimpleName.equals("InterfaceBoundary"), it can be determined whether the boundary is a contact surface. In engineering simulation, the core domain has only two contact surfaces: the inlet surface and the outlet surface. By determining the contact surface, a set of the inlet and outlet surfaces of the core domain can be obtained, but it is impossible to determine which is the specific inlet surface. In the final processing, there is no need to distinguish between the core inlet and outlet surfaces; all inlet and outlet surfaces are simply put into a unified set for subsequent simulation analysis.

[0047] This embodiment accurately locates and optimizes key areas by gradually screening the areas, boundaries, and surfaces in the cabin simulation model. First, by traversing all areas in the cabin simulation model and obtaining the area types, different areas can be classified according to function or characteristics, which is convenient for subsequent analysis. Next, the core domain is filtered out according to the area type, and the boundary type of each core domain is further traversed and identified, and the core air inlet surface and the core air outlet surface are filtered out. In this way, engineers do not need to manually extract and process each data point, but can quickly obtain data in an automated manner. This not only greatly reduces the workload of post-processing, but also accelerates the data analysis and optimization process, thereby improving the efficiency of subsequent analysis work.

[0048] In one embodiment, the core space parameter includes the core surface width; the core surface width is obtained by determining the core surface width corresponding to the core surface based on the difference between the maximum value and the minimum value of the Y axis in the core surface space matrix.

[0049] Specifically, from the core face space matrix {X min ,Y min ,Z min ,X max ,Y max ,Z max} to extract the maximum value Y of the Y axis max and the Y axis minimum value Y min Calculate the core width width = Y max -Y min .

[0050] In one embodiment, the core space parameters include the core surface height; the method for obtaining the core surface height includes: determining the X-axis distance corresponding to the core surface based on the difference between the X-axis maximum value and the X-axis minimum value in the core surface space matrix; determining the Z-axis distance corresponding to the core surface based on the difference between the Z-axis maximum value and the Z-axis minimum value in the core surface space matrix; determining the core surface height corresponding to the core surface based on the X-axis distance and the Z-axis distance.

[0051] Specifically, from the core face space matrix {X min ,Y min ,Z min ,X max ,Y max ,Z max} Extract the maximum value of the X axis X max and the minimum value of the X axis X min , calculate the X-axis distance = X max -X min Extract the maximum value of Z axis max and the Z axis minimum value Z min , calculate the Z axis distance = Z max -Z min .

[0052] Use the Pythagorean theorem to calculate the core height. The core height is the square root of the sum of the squares of the X-axis distance and the Z-axis distance: core height hight = sqrt(X-axis distance 2 +Z axis distance 2 ).

[0053] In one embodiment, the core space parameters include the core surface rotation angle; the method for obtaining the core surface rotation angle includes: determining the X-axis distance corresponding to the core surface based on the difference between the X-axis maximum value and the X-axis minimum value in the core surface space matrix; determining the Z-axis distance corresponding to the core surface based on the difference between the Z-axis maximum value and the Z-axis minimum value in the core surface space matrix; determining the tangent value based on the ratio of the X-axis distance and the Z-axis distance; determining the radian corresponding to the tangent value; converting the radian into an angle to obtain the core surface rotation angle.

[0054] Specifically, from the core face space matrix {X min ,Y min ,Z min ,X max ,Y max ,Z max} Extract the maximum value of the X axis X max and the minimum value of the X axis X min , calculate the X-axis distance = X max -X min Extract the maximum value of Z axis max and the Z axis minimum value Z min , calculate the Z axis distance = Zmax -Z min The ratio of the X-axis distance to the Z-axis distance is used to calculate the tangent of the core surface rotation angle = X-axis distance / Z-axis distance. The inverse tangent function (arctan) is used to calculate the radians corresponding to the tangent value = arctan (X-axis distance / Z-axis distance). The radians are converted to angles using rotate = radians × (180 / π).

[0055] Preferably, the present application can calculate the rotation angle of the core surface by using the trigonometric functions of the Math class. First, using the formula (X max -X min ) / (Z max -Z min ) to calculate the tangent of the rotation angle. Then, use the Math.atan() function to perform inverse trigonometric operations on the tangent value to obtain the corresponding radian value. Finally, use the Math.toDegrees() function to convert radians to degrees to obtain the core surface rotation angle.

[0056] Figure 4 The flowchart of step S7 provided in the embodiment of the present application may include the following steps: Step S71 , obtaining initialization coordinates, where the initialization coordinates represent the starting position and the ending position of the generated matrix surface.

[0057] Step S73 : Generate the width of a single surface according to the core surface width in the core space parameter and the number of columns in the number of rows and columns.

[0058] Step S75 , generating the height of a single surface according to the core surface height in the core space parameter and the number of rows in the number of rows and columns.

[0059] Step S77: Use a nested loop to traverse the rows and columns, and update the initialization coordinates according to the width and height of a single face, and generate the matrix face corresponding to the core face row by row and column by column.

[0060] Specifically, get the initialization coordinates, which are used to define the starting and ending points of the matrix surface. Define two floating point lists begin and end, double[]begin, double[]end, which represent the starting and ending coordinates of the matrix surface respectively. The initial value of the starting coordinates is {X min ,Y min +width,Z min +height}, the end point coordinates: the initial value of end is {X min ,Y min ,Z minBased on the core width width and the number of matrix columns N, the width of a single face is calculated as width / N. Based on the core height height and the number of matrix columns M, the height of a single face is calculated as height / M.

[0061] Use nested for loops, with the outer loop controlling rows (M rows) and the inner loop controlling columns (N columns). When the outer loop is in progress, for each row: 1. Inner loop: Traverse the columns (N columns), input (begin[0], begin[1], begin[2]), (begin[0], begin[1]-intercal_y, begin[2]-intercal_z), create a rectangular block, and then delete unnecessary faces, keeping only specific faces. Here, keep rectangular faces parallel to the XY, XZ, or YZ plane.

[0062] Specifically, the simulation software API is called, combining multiple functions to achieve customized requirements. Here, a rectangular block is created based on the start and end coordinates. All faces of the block are retrieved. All faces are iterated over, determining whether each face is a required face. Unnecessary faces are deleted, retaining only a specific face. The retained face is the desired rectangular face, parallel to the XY, XZ, or YZ plane.

[0063] 2. Update begin coordinates: begin[1]-=intercal_y (reduce the width in the Y direction) 3. Restore the initial value of begin[1]: begin[1]+=intercal_y*N (restore the initial value of the Y direction) 4. Reduce the height of begin[2]: begin[2]-=intercal_z (reduce the height in the Z direction) Repeat the above steps to generate the matrix surface row by row and column by column. Figure 5 As shown in the figure, the numbers 1, 2, 3, 4, and 5 represent the order in the generation process, starting from the first face to the fifth face, and then continuing to generate in the same order until the complete matrix face is constructed.

[0064] The present embodiment, by obtaining the initialization coordinates, determines the starting position and the end position of the matrix face, thereby provides accurate starting point for subsequent generation. According to the core body face width in the core body space parameter and the number of rows and columns, the width of each unit face can be calculated, ensuring that the width of each matrix face is uniform. Equally, according to the core body face height and the number of rows, the height of each unit face can be calculated, ensuring the consistency of the matrix face in the height direction. Finally, by nested loop traversal rows and columns, according to the width and height of a single face, row by row and column by column, the initialization coordinates are updated, thereby accurately generating the matrix face. This process has promoted the automation and the precision that the matrix face generates, optimized the post-processing process of CFD simulation data, and significantly improved the working efficiency of three-dimensional simulation analysis.

[0065] In one embodiment, after generating the matrix surface corresponding to the core surface, the method further includes: when the core surface rotation angle in the core space parameters is not zero, rotating the matrix surface according to the core surface rotation angle to obtain a rotated matrix surface.

[0066] Specifically, after the core surface generates the corresponding matrix surface, if the core surface has a rotation angle, the matrix surface needs to be rotated to ensure that the matrix surface is consistent with the layout of the core. Determine the origin of the rotation axis as {X min ,Y min ,Z min}. Confirm the axis of rotation is {0,1,0} (rotation around the Y axis). Use the simulation software API to rotate the matrix surface by the angle "rotate" to ensure that the matrix surface matches the core layout. This process automates the core surface rotation problem, eliminating the need for engineers to manually rotate and adjust the matrix surface position, saving significant time and reducing manual errors.

[0067] This embodiment automatically rotates the matrix surface according to the rotation angle when the core surface rotation angle is non-zero, thereby ensuring precise spatial alignment between the matrix surface and the core surface. This operation effectively eliminates errors caused by changes in the core surface angle, improving simulation accuracy and the reliability of the results. Furthermore, the automated rotation of the matrix surface simplifies the operational process, reduces the risk of human error, and improves work efficiency. Furthermore, automatic matrix surface rotation reduces the time and error associated with manual adjustments, making the simulation process more efficient and accurate.

[0068] In one embodiment, the method further includes: converting the matrix face into a corresponding derived face; wherein the derived face represents a virtual face derived from the component face and is used to read the cabin CFD simulation results; based on a pre-configured scalar type, using the derived face as a component of the report and generating a report corresponding to the scalar type; and storing the report value of the report in a two-dimensional array based on the position of the matrix face.

[0069] Specifically, a matrix surface is a reference surface in three-dimensional space that represents the position or surface of a specific component. By converting a matrix surface into a derived surface, a virtual representation can be created for the surface, which facilitates reading simulation data. A derived surface is virtual and derived from the component surface, and it carries information related to simulation analysis. In this process, the derived surface is used to read the cabin CFD (computational fluid dynamics) simulation results. Use the simulation software's API to create an empty derived surface, set the defined matrix surface as the input surface of the derived surface, so that the derived surface inherits the geometry of the matrix surface. The purpose of this is to ensure that the derived surface can correctly read the simulation data on the matrix surface, so that it can be used for subsequent report generation.

[0070] In CFD simulation, it is necessary to obtain multiple parameters related to fluid dynamics. Depending on the needs, different types of reports and corresponding scalar types can be defined: Mass Flow Report: Report Type: Mass Flow Scalar Type: Mass Flow Speed Report: Report Type: Average Scalar type: velocity Temperature Report: Report Type: Average Scalar type: temperature Set the derived surface as the part of the report (i.e. the source of the report). Then, based on the defined report type, create different types of reports (such as mass flow, velocity, temperature).

[0071] Call the getReportMonitorValue() function in the API to obtain and return the report value for each report. This function returns the corresponding simulation results based on the position of the derived surface, the report type, and the scalar type. The report values are stored according to the position of the matrix surface and the data is saved in a two-dimensional array. The array is structured to store the values of different reports (such as mass flow, velocity, temperature, etc.) by column and the sampling point data of each different surface in the matrix surface by row. This two-dimensional array is formatted as a string separated by commas (,) by column and newlines (\n) by row, and the generated string is output as a CSV file.

[0072] This embodiment can effectively associate the geometric surfaces of components with simulation data by converting matrix surfaces into derived surfaces, ensuring that the simulation data can accurately reflect the characteristics and performance of the component surfaces. In cabin simulation, derived surfaces can be used as an effective tool to obtain fluid dynamics simulation data, thereby flexibly and accurately reading key parameters such as flow rate, pressure, and temperature. Customized reports are generated based on pre-configured scalar types to ensure the relevance and pertinence of the report content, helping to analyze key data in the cabin simulation. At the same time, the values in the report are stored in a two-dimensional array, making data management more standardized and efficient, and facilitating subsequent data comparison, analysis, and visualization. Through the optimization of these technical means, the accuracy of simulation results and analysis efficiency can be significantly improved, promoting the accuracy and work efficiency of cabin simulation analysis.

[0073] Accordingly, please refer to Figure 6 This is a block diagram of a cabin CFD simulation post-processing device provided in an embodiment of the present application, the device comprising: The core surface acquisition unit 101 is used to acquire a core domain in the cabin simulation model and obtain a core surface set by filtering the core domain according to the boundary type of the core domain; wherein the core domain represents the grid area used for heat exchange in the cabin simulation model; A space matrix generating unit 103 is configured to generate a corresponding core surface space matrix for each core surface in the core surface set; A space parameter determination unit 105 is configured to determine a core space parameter corresponding to a core surface based on the core surface space matrix; The matrix surface generating unit 107 is used to generate a matrix surface corresponding to the core surface according to the pre-configured number of rows and columns, combined with the core surface space matrix and the core space parameters, so as to automatically read the cabin CFD simulation results based on the matrix surface.

[0074] In some optional embodiments, the core surface acquisition unit 101 includes: Traverse all areas in the cabin simulation model and obtain the area type of each area; According to the region type, the core domain is screened; For each core domain, traverse all boundaries corresponding to each core domain and obtain the boundary type of each boundary; According to the boundary type, a core surface set including the core air inlet surface and the core air outlet surface is obtained by screening.

[0075] In some optional embodiments, the core space parameter includes the core surface width; the core surface width is obtained by: The core surface width corresponding to the core surface is determined according to the difference between the maximum value and the minimum value of the Y axis in the core surface space matrix.

[0076] In some optional embodiments, the core space parameter includes the core surface height; the core surface height is obtained by: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; According to the X-axis distance and the Z-axis distance, the core surface height corresponding to the core surface is determined.

[0077] In some optional embodiments, the core space parameter includes a core surface rotation angle; the core surface rotation angle is obtained by: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; Determine the tangent value based on the ratio of the X-axis distance to the Z-axis distance; Determine the radian corresponding to the tangent value; Convert radians to degrees to get the core face rotation angle.

[0078] In some optional implementations, the matrix surface generating unit 107 includes: Get the initialization coordinates, which represent the starting and ending positions of the generated matrix surface; Generate the width of a single face according to the core face width in the core space parameters and the number of columns in the number of rows and columns; Generate the height of a single face according to the core face height in the core space parameters and the number of rows in the number of rows and columns; Use nested loops to traverse rows and columns, and update the initialization coordinates according to the width and height of a single face, generating the matrix face corresponding to the core face row by row and column by column.

[0079] In some optional embodiments, after generating the matrix surface corresponding to the core surface, the apparatus further comprises: When the core surface rotation angle in the core space parameters is not zero, the matrix surface is rotated according to the core surface rotation angle to obtain a rotated matrix surface.

[0080] In some optional embodiments, the device further comprises: Convert the matrix surface into the corresponding derived surface; the derived surface represents the virtual surface derived from the component surface and is used to read the cabin CFD simulation results; According to the pre-configured scalar type, the derived surface is used as the component of the report and the report corresponding to the scalar type is generated; Store the reported values into a two-dimensional array based on the position of the matrix face.

[0081] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0082] In this embodiment, a cabin CFD simulation post-processing device is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0083] See also Figure 7 , Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of a GUI on an external input / output device (such as, a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0084] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0085] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0086] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0087] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0088] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0089] The embodiments of the present application also provide a computer-readable storage medium. The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0090] The devices and units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0091] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0092] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or units. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices, and apparatus according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0096] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0097] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0098] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

[0099] Although the embodiments of the present application have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations shall fall within the scope defined by the appended claims.

Claims

1. A cabin CFD simulation post-processing method, characterized in that: The method comprises: Acquire a core domain in the cabin simulation model, and filter the core domain according to a boundary type to obtain a core face set; wherein the core domain represents a grid area used for heat exchange in the cabin simulation model; Generating a corresponding core surface space matrix for each core surface in the core surface set; Determining core space parameters corresponding to the core surface based on the core surface space matrix; According to the pre-configured number of rows and columns, the core surface space matrix and the core space parameters are combined to generate a matrix surface corresponding to the core surface, so that the cabin CFD simulation results are automatically read based on the matrix surface.

2. The method according to claim 1, characterized in that The obtaining of the core domain in the cabin simulation model and screening the core domain according to the boundary type to obtain a core surface set includes: Traversing all regions in the cabin simulation model to obtain a region type for each region; According to the region type, the core domain is obtained by screening; For each core domain, traverse all boundaries corresponding to each core domain and obtain the boundary type of each boundary; According to the boundary type, the core surface set including the core air inlet surface and the core air outlet surface is screened and obtained.

3. The method according to claim 1, characterized in that The core space parameter includes the core surface width; the core surface width is obtained by: The core surface width corresponding to the core surface is determined according to the difference between the maximum value of the Y axis and the minimum value of the Y axis in the core surface space matrix.

4. The method according to claim 1, wherein The core space parameters include the core surface height; the core surface height is obtained by: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; A core surface height corresponding to the core surface is determined according to the X-axis distance and the Z-axis distance.

5. The method according to claim 1, characterized in that The core space parameters include the core surface rotation angle; The method for obtaining the core surface rotation angle includes: Determine the X-axis distance corresponding to the core surface according to the difference between the maximum X-axis value and the minimum X-axis value in the core surface space matrix; Determine the Z-axis distance corresponding to the core surface according to the difference between the maximum Z-axis value and the minimum Z-axis value in the core surface space matrix; Determining a tangent value according to a ratio of the X-axis distance to the Z-axis distance; Determine the radian corresponding to the tangent value; The radian is converted into an angle to obtain the core surface rotation angle.

6. The method according to claim 1, characterized in that The generating of the matrix surface corresponding to the core surface according to the pre-configured number of rows and columns, in combination with the core surface space matrix and the core space parameters, comprises: Acquire initialization coordinates, where the initialization coordinates represent the starting position and the ending position of the matrix surface; Generate a width of a single face according to the core face width in the core space parameter and the number of columns in the number of rows and columns; Generate the height of a single surface according to the core surface height in the core space parameter and the number of rows in the number of rows and columns; A nested loop is used to traverse the rows and columns, and the initialization coordinates are updated according to the width and height of the single face, so as to generate the matrix face corresponding to the core face row by row and column by column.

7. The method according to claim 6, characterized in that After generating the matrix surface corresponding to the core surface, the method further includes: When the core surface rotation angle in the core space parameters is not zero, the matrix surface is rotated according to the core surface rotation angle to obtain a rotated matrix surface.

8. The method according to claim 1, characterized in that The method further comprises: Converting the matrix surface into a corresponding derived surface; wherein the derived surface represents a virtual surface derived from the component surface and is used to read the cabin CFD simulation results; According to the pre-configured scalar type, the derived surface is used as a component of the report to generate a report corresponding to the scalar type; according to the position of the matrix surface, the report value of the report is stored in a two-dimensional array.

9. A cabin CFD simulation post-processing device, characterized in that: The device comprises: A core surface acquisition unit is used to acquire a core domain in the cabin simulation model and obtain a core surface set by screening the core domain according to the boundary type of the core domain; wherein the core domain represents a grid area used for heat exchange in the cabin simulation model; a space matrix generating unit, configured to generate a corresponding core surface space matrix for each core surface in the core surface set; A spatial parameter determination unit is used to determine the core space parameters corresponding to the core surface based on the core surface space matrix; a matrix surface generation unit is used to generate a matrix surface corresponding to the core surface according to a pre-configured number of rows and columns, combined with the core surface space matrix and the core space parameters, so as to automatically read the cabin CFD simulation results based on the matrix surface.

10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the cabin CFD simulation post-processing method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the cabin CFD simulation post-processing method according to any one of claims 1 to 8.