An image rendering method, device, electronic equipment and storage medium
By dividing the aero-engine into sector structures and using an image processor for calculation and rendering, the problem of low rendering efficiency caused by the large amount of data in aero-engine simulation results was solved, and efficient image rendering effects were achieved.
Patent Information
- Application Number
- CN202311386047.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-24
AI Technical Summary
In existing technologies, the complex structure of aero engines results in a large amount of simulation data, which relies on slow central processing unit (CPU) computing speed and low graphics rendering efficiency.
The aero-engine is divided into multiple sector structures. The information of the first sector structure is obtained through the central processing unit, and the information of the other sector structures is calculated using the image processor. The rendering is extended and displayed using open graphics libraries and shaders.
It significantly reduces the computational and storage burden on the central processing unit, improves processing efficiency, enhances graphics rendering performance, and makes full use of the graphics processor's computing resources.
Smart Images

Figure CN117541710B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image rendering technology, and in particular to an image rendering method, apparatus, electronic device, and storage medium. Background Technology
[0002] As the heart of an aircraft, the aero-engine is considered the crown jewel and flower of modern industry, a high-speed rotating precision thermodynamic mechanical device. Using computers to create mathematical models of aero-engines for research can shorten development cycles, reduce costs, decrease the number of field tests, accelerate technological updates, and avoid unnecessary risks.
[0003] In existing technologies, the structure of aero-engines is extremely complex, requiring rendering of the complete aero-engine structure. Therefore, the amount of data in the simulation results is enormous. Since the calculations for the simulation results rely entirely on the Central Processing Unit (CPU), there is a problem of slow computation speed. Furthermore, due to the large amount of model rendering data, rendering on the CPU also results in low graphics rendering efficiency. Summary of the Invention
[0004] This disclosure provides at least one image rendering method, apparatus, electronic device, and storage medium.
[0005] In a first aspect, embodiments of this disclosure provide an image rendering method, wherein an aero-engine includes a multiple sector structure, applied to an image processor, comprising:
[0006] Acquire first information about the first sector structure of the aero-engine; wherein the first information is used to indicate the first position information of the first sector structure and the first operational result of the deformation information of the first sector structure during the operation of the aero-engine;
[0007] Based on the first information, second information of the second sector structure of the aero-engine is determined; wherein, the second sector structure is used to indicate the sector structure other than the first sector structure among the plurality of sector structures, and the second information includes second position information of the second sector structure and a second operating result for indicating the deformation information of the second sector structure during the operation of the aero-engine;
[0008] Based on the first information and the second information, image rendering is performed on the aero-engine.
[0009] In one optional embodiment, determining second information about the second sector structure of the aero-engine based on the first information includes:
[0010] Based on the first running result, the running result of the second sector structure is determined, and the second running result is obtained;
[0011] Based on the first location information, the location information of the second sector structure is determined, and the second location information is obtained;
[0012] The second running result and the second location information are determined as the second information.
[0013] In one optional embodiment, the second sector structure includes multiple sub-sector structures;
[0014] The step of determining the position information of the second sector structure based on the first position information, and obtaining the second position information, includes:
[0015] Based on the first position information, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined.
[0016] Based on the axis of symmetry and the sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0017] Based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined;
[0018] The second position information is determined based on the sub-position information of each of the sub-sector structures.
[0019] In one optional embodiment, determining the rotation matrix corresponding to each sub-sector structure based on the axis of symmetry and the sector angle includes:
[0020] Determine the first number of rotations corresponding to each of the sub-sector structures; wherein, the first number of rotations is used to indicate the number of rotations the first sector structure has taken from its current position to the initial position of the sub-sector structure;
[0021] Based on the first number of rotations, the sector angle, and the axis of symmetry, the rotation matrix corresponding to the sub-sector structure is determined.
[0022] In one optional embodiment, based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined, including...
[0023] Multiply the rotation matrix by the first position information to obtain the target product;
[0024] The sub-location information of the sub-sector structure is determined based on the target product.
[0025] In one optional embodiment, determining the axis of symmetry of the first sector structure and the sector angle of the first sector structure based on the first position information includes:
[0026] Obtain information about the geometric surface of each first sector in the first sector structure;
[0027] A first sector geometric surface that meets the preset geometric surface matching requirements is determined, and a second sector geometric surface is obtained; wherein different second sector geometric surfaces are located in different planes;
[0028] The included angle between the second sector geometric surfaces that satisfy the preset geometric surface requirements is taken as the sector angle;
[0029] The intersection line between the sector geometric surfaces of the second sector that meet the preset geometric surface requirements is taken as the axis of symmetry.
[0030] In an optional embodiment, determining second information about the second sector structure of the aero-engine based on the first information further includes:
[0031] Obtain the number of nodal diameters in the first sector structure;
[0032] Based on the number of pitch diameters and the first information, the second information of the second sector structure of the aero-engine is determined.
[0033] In one optional embodiment, the second information is the second running result, and the second sector structure includes multiple sub-sector structures;
[0034] Based on the number of nodal diameters and the first information, the second information of the second sector structure of the aero-engine is determined, including:
[0035] When the number of nodal diameters meets the preset nodal diameter requirements, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined.
[0036] Based on the axis of symmetry and the sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0037] Based on the rotation matrix and the first running result, the sub-running result of the sub-sector structure is determined;
[0038] The second running result is determined based on the sub-running results of each of the aforementioned sub-sector structures.
[0039] In one optional embodiment, determining second information about the second sector structure of the aero-engine based on the number of pitch diameters and the first information includes:
[0040] If the number of segment diameters does not meet the preset segment diameter requirements, the first operating result will be used as the second operating result of the second sector structure.
[0041] Secondly, embodiments of this disclosure also provide an image rendering apparatus, comprising:
[0042] An acquisition module is used to acquire first information about the first sector structure of an aero-engine; wherein the first information is used to indicate the first position information of the first sector structure and the first operational result of the deformation information of the first sector structure during the operation of the aero-engine;
[0043] The determining module is used to determine second information of the second sector structure of the aero-engine based on the first information; wherein the second sector structure is a sector structure other than the first sector structure among the plurality of sector structures, and the second information includes second position information of the second sector structure and a second operating result for indicating the deformation information of the second sector structure during the operation of the aero-engine;
[0044] The rendering module is used to perform image rendering on the aero-engine based on the first information and the second information.
[0045] Thirdly, embodiments of this disclosure also provide a non-transitory computer-readable storage medium storing at least one instruction or at least one program, wherein the at least one instruction or at least one program is loaded and executed by a processor to implement the above method.
[0046] Fourthly, embodiments of this disclosure also provide an electronic device, including a processor and a non-transitory computer-readable storage medium.
[0047] The present invention has at least the following beneficial effects: First, first information of the first sector structure of the aero-engine is obtained; wherein, the first information is used to indicate the first position information of the first sector structure and the first operating result of the deformation information of the first sector structure during the operation of the aero-engine; then, based on the first information, second information of the second sector structure of the aero-engine is determined; wherein, the second sector structure is used to indicate the sector structure other than the first sector structure among multiple sector structures, and the second information includes the second position information of the second sector structure and the second operating result of the deformation information of the second sector structure during the operation of the aero-engine; finally, based on the first information and the second information, the aero-engine is image rendered.
[0048] As described above, only one sector of the aero-engine structure needs to be processed by the central processing unit (CPU), namely the first sector, to obtain the first information. Next, the image processor (IPF) calculates the second information for the remaining sectors. Finally, the IPF performs extended calculations to render the complete aero-engine model. This significantly reduces the amount of aero-engine information that the CPU needs to calculate and store, improving its processing efficiency. Furthermore, this disclosure utilizes the IPF's computational resources to fully leverage the second information obtained from the first sector and the rendering of the aero-engine model based on this second information. Since the aero-engine's positional information and operational results correspond to a large amount of data, this method saves significant CPU computational and memory resources for aero-engine rendering. Moreover, the IPF offers better real-time rendering capabilities compared to the CPU. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 A flowchart of an image rendering method provided in an embodiment of this disclosure;
[0051] Figure 2 A rendering of an aero-engine provided in an embodiment of this disclosure;
[0052] Figure 3 This is a schematic diagram of an image rendering apparatus provided in an embodiment of the present disclosure. Detailed Implementation
[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] Example 1
[0055] Reference Figure 1 The diagram shows a flowchart of an image rendering method provided in an embodiment of this disclosure. The method includes steps S10 to S30 and is applied to an image processor, wherein:
[0056] S10. Obtain first information of the first sector structure of the aero-engine; wherein, the first information is used to indicate the first position information of the first sector structure and the first operating result is used to indicate the deformation information of the first sector structure during the operation of the aero-engine.
[0057] In the embodiments of this disclosure, the aero-engine includes multiple sector structures. Specifically, the aero-engine can be divided into multiple sector structures based on the characteristic that the aero-engine has a symmetrical structure.
[0058] Here, the structural features (shape, opening position, and color variation, etc.) of each sector structure are the same.
[0059] In the example disclosed herein, firstly, the first position information and the first running result information of the first sector structure are obtained by reading the binary file of the CAE calculation result, and then stored in the computer memory.
[0060] Here, location information can be used to indicate the coordinates of each point in the first sector structure in a spatial rectangular coordinate system.
[0061] Here, the first operating result is used to indicate the degree of deformation, displacement, and stress of the first sector structure during engine operation.
[0062] Here, the internal data of the binary file consists of multiple data blocks, including location information data blocks, location relationship data blocks, and execution result data blocks. Specifically, the location information data blocks indicate the location information of the sector structure, the location relationship data blocks indicate the relationships between locations, and the execution result data blocks indicate the execution result data of the sector structure.
[0063] Each type of data block can be separated by a start delimiter and an end delimiter, and each type of data block has a unique corresponding data block identifier. For example, the start delimiter "beg" is set at the beginning of each type of data block, and the end delimiter "end" is set at the beginning of each type of data block; the data block identifier for the location information data block is set to "50800", the data block identifier for the location relationship data block is set to "50702", and the data block identifier for the execution result data block is set to "52401". This prevents confusion between different types of data blocks.
[0064] Each location information data block has a data length of 16 bytes. For example, bytes 0-4 are used to record the data block identifier of the location information data block, bytes 5-8 are used to record the location information corresponding to the location information data block on the x-axis in the spatial rectangular coordinate system, bytes 9-12 are used to record the location information corresponding to the location information data block on the y-axis in the spatial rectangular coordinate system, and bytes 13-16 are used to record the location information corresponding to the location information data block on the z-axis in the spatial rectangular coordinate system.
[0065] Each location relationship data block has a data length of (12 + 4 * the number of location information included in the location relationship) bytes. For example, bytes 0-4 are used to record the data block identifier of the location relationship data block, bytes 5-8 are used to record the type data of the location relationship, bytes 9-12 are used to record the number of location information included in the location relationship, and bytes 13-4 * the number of location information included in the location relationship are used to record the relationship data between the location information included in the location relationship.
[0066] Each execution result data block has a data length of 40 bytes. For example, bytes 0-4 are used to record scalars in the execution result, bytes 5-16 are used to record vectors in the execution result, and bytes 17-40 are used to record tensors in the execution result.
[0067] S20. Based on the first information, determine the second information of the second sector structure of the aero-engine; wherein, the second sector structure is used to indicate the sector structure other than the first sector structure among multiple sector structures, and the second information includes the second position information of the second sector structure and the second operating result used to indicate the deformation information of the second sector structure during the operation of the aero-engine.
[0068] In the embodiments of this disclosure, firstly, the first information is read and all data in the obtained binary file is loaded into a linked list; then, the data loaded into the linked list is preprocessed; finally, the second information is obtained by calculating the preprocessed data.
[0069] Here, the preprocessing process can be as follows: First, mark the positions where all data blocks "beg" and "end" appear to obtain several different data blocks; second, process the data in each data block in turn: read the data identifier in the current data block, read the data of the location information data block (50800), the data of the location relationship data block (50702), and the data of the running result data block (52401) in turn, and convert the bytes into the corresponding int, float, and string types according to the organization method of the read data; finally, store the read data of the location information data block (50800), the data of the location relationship data block (50702), and the data of the running result data block (52401) in the node list, the cell list, and the result list, respectively.
[0070] S30. Based on the first and second information, perform image rendering on the aero-engine.
[0071] In the embodiments of this disclosure, firstly, based on the first information, the aircraft engine is rendered and extended using the Open Graphics Library (OpenGL) to obtain an intermediate image of the aircraft engine; then, based on the second information, the intermediate image is processed using the GLSL shader and the Rainbow algorithm to obtain an image of the aircraft engine.
[0072] Here, based on the initial information, the Open Graphics Library (OpenGL) is used to render and extend the display of the aero-engine to obtain an intermediate image of the aero-engine. For example, in the case where the aero-engine is a tetrahedral unit, it contains four triangular elements. First, based on the position information and relationships between the tetrahedral units, corresponding triangular elements are constructed for each position relationship data block. The position information of the vertices of this tetrahedral unit and the execution results are then written into a Vertex Buffer Object (VBO). Second, based on the constructed triangular element metadata, the connection relationships and data organization relationships of each triangular element are written into a Vertex Attribute Object (VAO). Finally, the triangular elements are drawn in OpenGL, and the position information and position relationships of the tetrahedral unit are submitted to the rendering pipeline to complete the rendering of the tetrahedral unit.
[0073] Here, the GLSL shader is used to calculate the color coefficient of each vertex based on the running results corresponding to the vertex of each aero-engine.
[0074] Here, the Rainbow algorithm is used to calculate the RGB color data corresponding to the aircraft engine based on the vertex color coefficients mentioned above, thus obtaining the image of the aircraft engine, as shown below. Figure 2 As shown.
[0075] This disclosure describes a method applied to an image processor. First, first information about the first sector structure of an aero-engine is acquired. This first information indicates first position information of the first sector structure and a first operational result indicating deformation information of the first sector structure during engine operation. Then, based on the first information, second information about the second sector structure of the aero-engine is determined. This second sector structure indicates sector structures other than the first sector structure among multiple sector structures, and the second information includes second position information of the second sector structure and a second operational result indicating deformation information of the second sector structure during engine operation. Finally, based on the first and second information, image rendering of the aero-engine is performed.
[0076] As described above, only one sector of the aero-engine structure needs to be processed by the central processing unit (CPU), namely the first sector, to obtain the first information. Next, the image processor (IPF) calculates the second information for the remaining sectors. Finally, the IPF performs extended calculations to render the complete aero-engine model. This significantly reduces the amount of aero-engine information that the CPU needs to calculate and store, improving its processing efficiency. Furthermore, this disclosure utilizes the IPF's computational resources to fully leverage the second information obtained from the first sector and to render the aero-engine model based on this second information. Since the aero-engine's positional information and operational results correspond to a large amount of data, this method saves significant CPU and memory resources for aero-engine rendering and significantly improves real-time rendering performance.
[0077] In one optional implementation, determining the second information of the second sector structure of the aero-engine based on the first information specifically includes the following steps:
[0078] Based on the first running result, the running result of the second sector structure is determined, and the second running result is obtained;
[0079] Based on the first location information, the location information of the second sector structure is determined, and the second location information is obtained;
[0080] The second running result and the second location information are determined as the second information.
[0081] In the embodiments of this disclosure, the second sector structure includes multiple sub-sector structures; based on the first location information, the location information of the second sector structure is determined to obtain the second location information, specifically including the following steps:
[0082] Based on the first position information, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined;
[0083] Based on the axis of symmetry and sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0084] Based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined;
[0085] The second position information is determined based on the sub-position information of each sub-sector structure.
[0086] In the embodiments of this disclosure, firstly, the geometric surface data of the first sector structure can be obtained based on the first position information; finally, the axis of symmetry of the first sector structure and the sector angle of the first sector structure can be determined based on the matching symmetry relationship between the geometric surface data.
[0087] In the embodiments of this disclosure, after determining the axis of symmetry of the first sector structure, the components of the axis of symmetry on the x-axis, y-axis, and z-axis can be obtained. Then, the rotation matrix corresponding to each sub-sector structure can be determined based on the components of the axis of symmetry on the x-axis, y-axis, and z-axis and the sector angle.
[0088] In the embodiments of this disclosure, each sub-sector structure corresponds to a different rotation matrix. The rotation matrix corresponding to the sub-sector structure and the first position information can be processed to determine the sub-position information of the sub-sector structure.
[0089] In the embodiments of this disclosure, second location information is determined based on the sub-location information of each sub-sector structure. The sub-information location of each sub-sector structure is used as the second location information.
[0090] In the embodiments of this disclosure, given the sector angle, the number of second sector structures can be obtained based on the sector angle; the number of second sector structures is π divided by the sector angle.
[0091] In an optional embodiment, the rotation matrix corresponding to each sub-sector structure is determined based on the axis of symmetry and the sector angle, specifically including the following steps:
[0092] Determine the first number of rotations corresponding to each sub-sector structure; wherein, the first number of rotations indicates the number of rotations the first sector structure has taken from its current position to the initial position of the sub-sector structure;
[0093] Based on the first number of rotations, sector angle, and axis of symmetry, determine the rotation matrix corresponding to the sub-sector structure.
[0094] In the embodiments of this disclosure, the first rotation number corresponding to each sub-sector structure can be determined by how many sub-sector structures exist between each sub-sector structure and the first sector structure. For example, if there are no sub-sector structures between the sub-sector structure and the first sector structure, that is, the current sub-sector structure is adjacent to the first sector structure, then the first rotation number corresponding to the sub-sector structure is 1; if there are 2 sub-sector structures between the sub-sector structure and the first sector structure, then the first rotation number corresponding to the sub-sector structure is 3.
[0095] In embodiments of this disclosure, the rotation matrix corresponding to the sub-sector structure can be determined based on the first rotation number, sector angle, and the components of the symmetry axis on the x-axis, y-axis, and z-axis, respectively. For example, the rotation matrix R of the sub-sector structure satisfies the following condition:
[0096]
[0097] Among them, V x V is the component of the axis of symmetry on the x-axis. y V is the component of the axis of symmetry on the y-axis. z Let θ be the component of the axis of symmetry on the z-axis, n be the first rotation number of the sub-sector structure, and θ be the sector angle.
[0098] In an optional embodiment, the sub-position information of the sub-sector structure is determined based on the rotation matrix and the first position information, specifically including the following steps:
[0099] Multiply the rotation matrix by the first position information to obtain the target product;
[0100] The sub-location information of the sub-sector structure is determined based on the target product.
[0101] In embodiments of this disclosure, the first position information can be written in matrix form N, for example:
[0102]
[0103] Where m is the number of first location information, x m Let y be the coordinates of the m-th first position information on the x-axis. m Let z be the coordinates of the m-th first position information on the y-axis. m Let be the coordinates of the m-th first position information on the z-axis.
[0104] In the embodiments of this disclosure, the rotation matrix is multiplied by the first position information to obtain the target product N', where N' satisfies the following condition:
[0105] N' = N × R;
[0106] In an optional embodiment, determining the axis of symmetry of the first sector structure and the sector angle of the first sector structure based on the first position information includes:
[0107] Obtain information about the geometric surface of each first sector in the first sector structure;
[0108] A first sector geometric surface that meets the preset geometric surface matching requirements is determined, and a second sector geometric surface is obtained; wherein different second sector geometric surfaces are located in different planes;
[0109] The included angle between the second sector geometric surfaces that meet the preset geometric surface requirements is taken as the sector angle.
[0110] The intersection line between the sector geometric surfaces of the second sector that meet the preset geometric surface requirements is taken as the axis of symmetry.
[0111] In embodiments of this disclosure, the information of the first sector geometry includes the normal vector of the first sector geometry.
[0112] Here, the preset geometric surface matching requirement can be that the angle between normal vectors is less than or equal to a preset angle threshold. To determine that normal vectors satisfying the preset normal vector requirement are on the same plane, firstly, it can be determined whether the angle between normal vectors is less than the preset angle threshold. If the angle between normal vectors is less than the preset angle threshold, the corresponding geometric surfaces of the first sector are on the same plane. Then, all geometric surfaces of the first sector structure that are on the same plane are used as the geometric surfaces of the second sector and saved to computer memory. The preset angle threshold can be set according to actual needs, for example, 1°; this disclosure does not impose any limitation on it.
[0113] In the embodiments of this disclosure, the preset geometric surface requirements can be that the angle between the normal vectors is the largest, the geometric surface area is equal, and the number of vertices and edges of the geometric surface is the same. To obtain the angle between the second sector geometric surfaces that meet the preset geometric surface requirements, firstly, the normal vector of the second sector geometric surface that meets the preset geometric surface requirements is obtained as the intermediate normal vector; then, the angle between the intermediate normal vectors is taken as the angle between the second sector geometric surfaces.
[0114] In an optional embodiment, determining the second information of the second sector structure of the aero-engine based on the first information further includes the following steps:
[0115] Obtain the number of nodal diameters in the first sector structure;
[0116] Based on the number of pitch diameters and the first information, the second information of the second sector structure of the aero-engine is determined.
[0117] In the embodiments of this disclosure, cyclic symmetric modal analysis can be performed on the first information to obtain the number of nodal diameters of the first sector structure. Here, any method can be used to perform cyclic symmetric modal analysis on the first information to obtain the number of nodal diameters of the first sector structure, and this disclosure does not impose any limitations on it.
[0118] In the embodiments of this disclosure, there are multiple ways to determine the second information. The method for determining the second information of the second sector structure of the aero-engine can be selected based on the number of pitch diameters.
[0119] In an optional embodiment, the second information is the second running result, and the second sector structure includes multiple sub-sector structures;
[0120] Based on the number of nodal diameters and the first information, the second information of the second sector structure of the aero-engine is determined, including:
[0121] Under the condition that the number of nodal diameters meets the preset nodal diameter requirements, determine the axis of symmetry of the first sector structure and the sector angle of the first sector structure;
[0122] Based on the axis of symmetry and sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0123] Based on the rotation matrix and the first running result, the sub-running result of the sub-sector structure is determined;
[0124] The second running result is determined based on the sub-run results of each sub-sector structure.
[0125] In the embodiments of this disclosure, the preset section diameter requirement can be that the number of section diameters is within a preset section diameter range, for example, the preset section diameter range is [0, n / 2]. When the number of section diameters falls within the section diameter range, the second running result is obtained using the above method.
[0126] In the embodiments of this disclosure, the method for determining the rotation matrix corresponding to each sub-sector structure can refer to the method for obtaining the rotation matrix R described above.
[0127] In the embodiments of this disclosure, the sub-running result of the sub-sector structure is determined based on the rotation matrix and the first running result, specifically including the following steps: First, the real part and imaginary part of the first running result are obtained; then, the sub-running result of the sub-sector structure is determined based on the real part and imaginary part of the first running result and the rotation matrix R.
[0128] Here, firstly, the number of rotations from the current position to the first sector structure through this sub-sector structure can be obtained, which is taken as the second rotation number of the sub-sector structure. Then, based on the second rotation number, sector angle, and axis of symmetry, the rotation matrix R of the sub-sector structure is determined.
[0129] For example, the sub-run result of this sub-sector structure (denoted as sub-run result U) p It meets the following conditions:
[0130] U p =R(U r coshn′θ-U i sinhn′θ)+iR(U r sinhn′θ+U i coshn′θ);
[0131] Where n' is the second rotation number, U r U is the real part of the first running result. i is the imaginary part of the first running result, and h is the number of nodal diameters.
[0132] In the embodiments of this disclosure, each sub-sector structure corresponds to a different rotation matrix. The rotation matrix corresponding to the sub-sector structure and the first running result can be processed to determine the sub-position information of the sub-sector structure.
[0133] In the embodiments of this disclosure, a second running result is determined based on the sub-position information of each sub-sector structure. The sub-running result of each sub-sector structure is used as the second position information.
[0134] In an optional embodiment, based on the number of nodal diameters and the first information, the second information of the second sector structure of the aero-engine is determined, including:
[0135] If the number of pitch diameters does not meet the preset pitch diameter requirements, the first running result will be used as the second running result of the second sector structure.
[0136] In the embodiments of this disclosure, if the number of segment diameters does not meet the preset segment diameter requirements, for example, if the number of segment diameters is greater than n, the first running result is used as the second running result of the second sector structure.
[0137] Example 2
[0138] Reference Figure 3 As shown, an image rendering apparatus provided in an embodiment of this disclosure includes: an acquisition module 10, a determination module 20, and a rendering module 30; wherein:
[0139] The acquisition module is used to acquire first information of the first sector structure of the aero-engine; wherein, the first information is used to indicate the first position information of the first sector structure and the first operating result is used to indicate the deformation information of the first sector structure during the operation of the aero-engine;
[0140] The determination module is used to determine the second information of the second sector structure of the aero-engine based on the first information; wherein, the second sector structure is a sector structure other than the first sector structure among multiple sector structures, and the second information includes the second position information of the second sector structure and the second operation result used to indicate the deformation information of the second sector structure during the operation of the aero-engine;
[0141] The rendering module is used to render images of the aero-engine based on the first and second information.
[0142] As described above, only one sector of the aero-engine structure needs to be processed by the central processing unit (CPU), namely the first sector, to obtain the first information. Next, the image processor (IPF) calculates the second information for the remaining sectors. Finally, the IPF performs extended calculations to render the complete aero-engine model. This significantly reduces the amount of aero-engine information that the CPU needs to calculate and store, improving its processing efficiency. Furthermore, this disclosure utilizes the IPF's computational resources to fully leverage the second information obtained from the first sector and the rendering of the aero-engine model based on this second information. Since the aero-engine's positional information and operational results correspond to a large amount of data, this method saves significant CPU computational and memory resources for aero-engine rendering. Moreover, the IPF offers better real-time rendering capabilities compared to the CPU.
[0143] In one possible embodiment, the determining module is further configured to:
[0144] Based on the first running result, the running result of the second sector structure is determined, and the second running result is obtained;
[0145] Based on the first location information, the location information of the second sector structure is determined, and the second location information is obtained;
[0146] The second running result and the second location information are determined as the second information.
[0147] In one possible embodiment, the determining module is further configured to:
[0148] Based on the first position information, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined;
[0149] Based on the axis of symmetry and sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0150] Based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined;
[0151] The second position information is determined based on the sub-position information of each sub-sector structure.
[0152] In one possible embodiment, the determining module is further configured to:
[0153] Determine the first number of rotations corresponding to each sub-sector structure; wherein, the first number of rotations indicates the number of rotations the first sector structure has taken from its current position to the initial position of the sub-sector structure;
[0154] Based on the first number of rotations, sector angle, and axis of symmetry, determine the rotation matrix corresponding to the sub-sector structure.
[0155] In one possible embodiment, the determining module is further configured to:
[0156] Multiply the rotation matrix by the first position information to obtain the target product;
[0157] The sub-location information of the sub-sector structure is determined based on the target product.
[0158] In one possible embodiment, the determining module is further configured to:
[0159] Obtain information about the geometric surface of each first sector in the first sector structure;
[0160] A first sector geometric surface that meets the preset geometric surface matching requirements is determined, and a second sector geometric surface is obtained; wherein different second sector geometric surfaces are located in different planes;
[0161] The included angle between the second sector geometric surfaces that meet the preset geometric surface requirements is taken as the sector angle.
[0162] The intersection line between the sector geometric surfaces of the second sector that meet the preset geometric surface requirements is taken as the axis of symmetry.
[0163] In one possible embodiment, the rendering module is further configured to:
[0164] Obtain the number of nodal diameters in the first sector structure;
[0165] Based on the number of pitch diameters and the first information, the second information of the second sector structure of the aero-engine is determined.
[0166] In one possible embodiment, the rendering module is further configured to:
[0167] Based on the number of nodal diameters and the first information, the second information of the second sector structure of the aero-engine is determined, including:
[0168] Under the condition that the number of nodal diameters meets the preset nodal diameter requirements, determine the axis of symmetry of the first sector structure and the sector angle of the first sector structure;
[0169] Based on the axis of symmetry and sector angle, determine the rotation matrix corresponding to each sub-sector structure;
[0170] Based on the rotation matrix and the first running result, the sub-running result of the sub-sector structure is determined;
[0171] The second running result is determined based on the sub-run results of each sub-sector structure.
[0172] In one possible embodiment, the rendering module is further configured to:
[0173] If the number of pitch diameters does not meet the preset pitch diameter requirements, the first running result will be used as the second running result of the second sector structure.
[0174] Embodiments of the present invention also provide a non-transitory computer-readable storage medium that can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a method in the method embodiments, wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiments.
[0175] Embodiments of the present invention also provide an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0176] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.
[0177] While specific embodiments of the invention have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of the invention. It should also be understood that various modifications can be made to the embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.
Claims
1. An image rendering method, characterized in that, Applied to image processors, and in aircraft engines comprising multiple sector structures, the method includes: Acquire first information about the first sector structure of the aero-engine; wherein the first information is used to indicate the first position information of the first sector structure and the first operational result of the deformation information of the first sector structure during the operation of the aero-engine; Based on the first information, second information of the second sector structure of the aero-engine is determined; wherein, the second sector structure is used to indicate the sector structure other than the first sector structure among the plurality of sector structures, and the second information includes second position information of the second sector structure and a second operating result for indicating the deformation information of the second sector structure during the operation of the aero-engine; Based on the first information and the second information, the aero-engine is image rendered; The second information for determining the second sector structure of the aero-engine based on the first information includes: Based on the first running result, the running result of the second sector structure is determined, and the second running result is obtained; Based on the first location information, the location information of the second sector structure is determined, and the second location information is obtained; The second running result and the second location information are determined as the second information; The second sector structure contains multiple sub-sector structures; The step of determining the position information of the second sector structure based on the first position information, and obtaining the second position information, includes: Based on the first position information, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined. Based on the axis of symmetry and the sector angle, determine the rotation matrix corresponding to each sub-sector structure; Based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined; The second position information is determined based on the sub-position information of each of the sub-sector structures; The step of determining the axis of symmetry of the first sector structure and the sector angle of the first sector structure based on the first position information includes: Obtain information about the geometric surface of each first sector in the first sector structure; A first sector geometric surface that meets the preset geometric surface matching requirements is determined, and a second sector geometric surface is obtained; wherein different second sector geometric surfaces are located in different planes, and the preset geometric surface matching requirement is that the angle between the normal vectors is less than or equal to a preset angle threshold; The angle between the second sector geometric surfaces that meet the preset geometric surface requirements is taken as the sector angle; wherein, the preset geometric surface requirements are that the angle between the normal vectors is the largest, the geometric surface area is equal, and the number of vertices and edges of the geometric surface is the same; The intersection line between the sector geometric surfaces of the second sector that meet the preset geometric surface requirements is taken as the axis of symmetry.
2. The method according to claim 1, characterized in that, The step of determining the rotation matrix corresponding to each sub-sector structure based on the axis of symmetry and the sector angle includes: Determine the first number of rotations corresponding to each of the sub-sector structures; wherein, the first number of rotations is used to indicate the number of rotations the first sector structure has taken from its current position to the initial position of the sub-sector structure; Based on the first number of rotations, the sector angle, and the axis of symmetry, the rotation matrix corresponding to the sub-sector structure is determined.
3. The method according to claim 1, characterized in that, The step of determining the sub-position information of the sub-sector structure based on the rotation matrix and the first position information includes: Multiply the rotation matrix by the first position information to obtain the target product; The sub-location information of the sub-sector structure is determined based on the target product.
4. The method according to claim 1, characterized in that, Based on the first information, determining the second information of the second sector structure of the aero-engine further includes: Obtain the number of nodal diameters in the first sector structure; Based on the number of pitch diameters and the first information, the second information of the second sector structure of the aero-engine is determined.
5. The method according to claim 4, characterized in that, The second sector structure contains multiple sub-sector structures; Based on the number of nodal diameters and the first information, the second information of the second sector structure of the aero-engine is determined, including: When the number of nodal diameters meets the preset nodal diameter requirements, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined. Based on the axis of symmetry and the sector angle, determine the rotation matrix corresponding to each sub-sector structure; Based on the rotation matrix and the first running result, the sub-running result of the sub-sector structure is determined; The second running result is determined based on the sub-running results of each of the aforementioned sub-sector structures.
6. The method according to claim 4, characterized in that, The second information for determining the second sector structure of the aero-engine based on the number of nodal diameters and the first information includes: If the number of segment diameters does not meet the preset segment diameter requirements, the first operating result will be used as the second operating result of the second sector structure.
7. An image rendering apparatus, characterized in that, The device includes: An acquisition module is used to acquire first information about the first sector structure of an aero-engine; wherein the first information is used to indicate the first position information of the first sector structure and the first operational result of the deformation information of the first sector structure during the operation of the aero-engine; The determining module is used to determine second information of the second sector structure of the aero-engine based on the first information; wherein the second sector structure is a sector structure other than the first sector structure among the plurality of sector structures, and the second information includes second position information of the second sector structure and a second operating result for indicating the deformation information of the second sector structure during the operation of the aero-engine; A rendering module is used to perform image rendering on the aero-engine based on the first information and the second information; The determining module is further configured to: determine the operation result of the second sector structure based on the first operation result, and obtain the second operation result; Based on the first location information, the location information of the second sector structure is determined, and the second location information is obtained; The second running result and the second location information are determined as the second information; The second sector structure contains multiple sub-sector structures; Based on the first position information, the axis of symmetry of the first sector structure and the sector angle of the first sector structure are determined. Based on the axis of symmetry and the sector angle, determine the rotation matrix corresponding to each sub-sector structure; Based on the rotation matrix and the first position information, the sub-position information of the sub-sector structure is determined; The second position information is determined based on the sub-position information of each of the sub-sector structures; Obtain information about the geometric surface of each first sector in the first sector structure; A first sector geometric surface that meets the preset geometric surface matching requirements is determined, and a second sector geometric surface is obtained; wherein different second sector geometric surfaces are located in different planes; The included angle between the second sector geometric surfaces that meet the preset geometric surface requirements is taken as the sector angle. The intersection line between the sector geometric surfaces of the second sector that meet the preset geometric surface requirements is taken as the axis of symmetry.
8. A non-transitory computer-readable storage medium, characterized in that, The storage medium stores at least one instruction or at least one program segment, which is loaded and executed by a processor to implement the method as described in any one of claims 1-6.
9. An electronic device, characterized in that, Includes a processor and the non-transitory computer-readable storage medium as described in claim 8.
Citation Information
Patent Citations
Data-driven aero-engine three-dimensional scene real-time rendering system
CN116306360A
Airframe-engine aerodynamic simulation using a mixing plane subdivided into angular sectors
US20160154909A1
