Method, system, device, medium and product for rendering a flexible body

By filtering out the strongly excited main modes and loading their data, the problem of performance degradation in flexible body rendering was solved, rendering efficiency and GPU resource utilization were improved, and the stability of the rendering system was ensured.

CN121213748BActive Publication Date: 2026-03-10CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-01
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, the animation rendering performance of flexible bodies degrades, resulting in poor rendering efficiency. This is especially true in vehicle dynamics simulations, where excessive number of nodes and modalities can lead to memory overflow, rendering stutters, or even rendering failures.

Method used

By determining the modal kinetic energy of the target order mode in the object to be rendered, the main modes that are strongly excited and have obvious modal displacements are selected, and only the data of these modes are loaded for simulation rendering, thereby reducing the video memory usage and GPU load.

Benefits of technology

It improves rendering efficiency, alleviates rendering performance degradation, avoids waste of video memory resources, and enhances GPU resource utilization efficiency and rendering system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121213748B_ABST
    Figure CN121213748B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a flexible body rendering method, system, device, medium and product. The method comprises: determining modal kinetic energy of a target order mode in a to-be-rendered object and accumulated modal kinetic energy of the target order mode within a preset time according to dynamic parameters and an invariant matrix of the to-be-rendered object; the invariant matrix represents a dynamic influence relationship between the target order mode and each selected order mode; the target order mode is a mode in the selected order mode; if a target proportion of the accumulated modal kinetic energy of the target order mode in global modal kinetic energy meets a preset proportion requirement, performing simulation rendering on the to-be-rendered object according to modal node information corresponding to the target order mode, and displaying the to-be-rendered object after simulation rendering; wherein the global modal kinetic energy is determined according to the accumulated modal kinetic energy of the selected order mode. The method is used to alleviate the decline of rendering performance, thereby achieving the effect of improving rendering efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of simulation technology for rigid-flexible coupled multibody systems, and in particular to a rendering method, system, device, medium, and product for flexible bodies. Background Technology

[0002] In the automotive R&D field, vehicle dynamics simulation technology is a core tool for evaluating key performance aspects such as vehicle handling stability, ride comfort, and safety. With the increasing demands for simulation accuracy, modern multibody dynamics simulation no longer treats large structures such as the body and chassis as rigid bodies, but rather considers the impact of their elastic deformation on the system's dynamic response. Therefore, large components such as the body-in-white (BIW), subframe, and suspension control arms are typically simulated as flexible bodies.

[0003] In existing technologies, modal data of flexible bodies can be extracted through finite element analysis (FEA) to generate modal neutral files (MNFs) containing information on millions of nodes, with data volumes reaching gigabytes. After being imported into multibody dynamics software (such as ADAMS and SIMPACK), this MNF file is resolved into invariant matrices representing modal masses, stiffness, and shape functions. These invariant matrices have dimensions that depend only on the modal order (e.g., 100×100), much smaller than the original file. During simulation, the numerical integrator uses only these fixed-size constant coefficient matrices to solve the dynamic equations, thereby accurately reflecting the structural elastic deformation of the flexible body while reducing computational complexity.

[0004] However, existing animation rendering technologies still default to rendering by superimposing the displacements of all modal nodes. Due to the large number of nodes and modalities, this results in poor rendering efficiency caused by a decrease in rendering performance. Summary of the Invention

[0005] This application provides a rendering method, system, device, medium, and product for flexible bodies to alleviate rendering performance degradation and thereby improve rendering efficiency.

[0006] In a first aspect, embodiments of this application provide a rendering method for a flexible body, including:

[0007] Based on the dynamic parameters and invariant matrix of the object to be rendered, determine the modal kinetic energy of the target order mode in the object to be rendered, and the cumulative modal kinetic energy of the target order mode within a preset time; the invariant matrix represents the dynamic influence relationship between the target order mode and each selected order mode; the target order mode is the mode in the selected order modes;

[0008] If the cumulative modal kinetic energy of the target order mode in the global modal kinetic energy meets the preset proportion requirement, then the object to be rendered is simulated and rendered according to the modal node information corresponding to the target order mode, and the simulated and rendered object is displayed; wherein, the global modal kinetic energy is determined according to the cumulative modal kinetic energy of the selected order mode.

[0009] In one possible implementation, the modal kinetic energy of the target mode in the object to be rendered and the accumulated modal kinetic energy of the target mode within a preset time are determined based on the dynamic parameters and invariant matrix of the object to be rendered, including:

[0010] Based on the modal velocities of the target mode, the selected mode, and the invariant matrix in the dynamic parameters of the object to be rendered, the modal kinetic energy of the target mode in the object to be rendered is determined; where the modal velocity of the target mode represents the rate of change of the target mode over simulation time, and the modal velocity of the selected mode represents the rate of change of the selected mode over simulation time.

[0011] Based on a preset time, the modal kinetic energy of the target modality in the object to be rendered is accumulated to obtain the accumulated modal kinetic energy of the target modality within the preset time.

[0012] In one possible implementation, the modal kinetic energy of the target mode in the object to be rendered is determined based on the modal velocity of the target mode, the modal velocity of the selected mode, and the invariant matrix in the dynamic parameters of the object to be rendered, including:

[0013] Based on the modal velocities of the target mode, the modal velocities of the selected modes, and the invariant matrix in the dynamic parameters of the object to be rendered, determine the kinetic energy contribution of the target mode relative to each selected mode.

[0014] The modal kinetic energy contribution of the target mode relative to each selected mode is summed to obtain the modal kinetic energy of the target mode in the object to be rendered.

[0015] In one possible implementation, the modal kinetic energy of the target modality in the object to be rendered satisfies:

[0016]

[0017] in, Modal kinetic energy characterizing the target order mode; Characterizing invariant matrices; The modal velocity characterizing the target order mode in the dynamic parameters; Modal velocity characterizing a selected mode among dynamic parameters; The order that characterizes the target mode; Characterizes the order of a selected mode; Characterizes the total order of the selected mode.

[0018] In one possible implementation, based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered, and the simulated and rendered object is displayed, including:

[0019] Determine whether the target modality is included in the rendering animation of the object to be rendered;

[0020] If the target modality is not included in the rendering animation of the object to be rendered, the modal node information corresponding to the target modality is read from the memory;

[0021] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered.

[0022] Display the object to be rendered after simulation rendering.

[0023] In one possible implementation, before simulating and rendering the object to be rendered based on the modal node information corresponding to the target modality and displaying the simulated and rendered object, if the target modality's accumulated modal kinetic energy in the global modal kinetic energy meets a preset proportion requirement, the method further includes:

[0024] Based on the dynamic parameters and invariant matrix of the object to be rendered, determine the modal kinetic energy of each selected mode in the object to be rendered, and the cumulative modal kinetic energy of each selected mode within a preset time; the selected modes are all or some modes in the object to be rendered.

[0025] The accumulated modal kinetic energy of each selected mode is accumulated to obtain the global modal kinetic energy.

[0026] In one possible implementation, if the cumulative modal kinetic energy of the target order mode accounts for a target proportion in the global modal kinetic energy, then the object to be rendered is simulated and rendered according to the modal node information corresponding to the target order mode, and the simulated and rendered object is displayed. The method further includes:

[0027] Determine the target proportion of the accumulated modal kinetic energy of the target mode in the global modal kinetic energy, and the sorting position of the target proportion in the proportion sequence; the proportion sequence is obtained by sorting the proportion of the accumulated modal kinetic energy of the selected mode in the global modal kinetic energy from largest to smallest;

[0028] If the target proportion is ranked before the preset position in the proportion sequence, then the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy is determined to meet the preset proportion requirement; where the preset position represents the position where the sum of the proportions from largest to smallest in the proportion sequence reaches the preset proportion threshold.

[0029] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered, and the simulated and rendered object is displayed.

[0030] In one possible implementation, if the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets a preset proportion requirement, then after simulating and rendering the object to be rendered according to the modal node information corresponding to the target order mode, and displaying the simulated and rendered object, the method further includes:

[0031] If the modal node information is not rendered within the preset rendering time, the modal node information will be released.

[0032] Secondly, embodiments of this application provide a rendering system for a flexible body, comprising:

[0033] The numerical integrator is used to determine the modal kinetic energy of the target mode in the object to be rendered, and the accumulated modal kinetic energy of the target mode within a preset time, based on the dynamic parameters and invariant matrix of the object to be rendered. The invariant matrix represents the dynamic influence relationship between the target mode and each selected mode. The target mode is a mode among the selected modes.

[0034] The renderer is used to simulate and render the object to be rendered based on the modal node information corresponding to the target modality if the target proportion of the accumulated modal kinetic energy of the target modality in the global modal kinetic energy meets the preset proportion requirement, and then display the simulated and rendered object to be rendered; wherein, the global modal kinetic energy is determined based on the accumulated modal kinetic energy of the selected modality.

[0035] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0036] The memory stores instructions that the computer executes;

[0037] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0038] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0039] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0040] The rendering method, system, device, medium, and product for flexible bodies provided in this application determine the modal kinetic energy of the target modality and the cumulative modal kinetic energy of the target modality within a preset time period based on the dynamic parameters and invariant matrix of the object to be rendered. The invariant matrix represents the dynamic influence relationship between the target modality and each selected modality. The target modality is a mode among the selected modalities. If the target proportion of the cumulative modal kinetic energy of the target modality in the global modal kinetic energy meets the preset proportion requirement, the object to be rendered is simulated and rendered based on the modal node information corresponding to the target modality, and the simulated and rendered object is displayed. The method of determining the global modal kinetic energy based on the cumulative modal kinetic energy of the selected modalities allows for the selection of strongly excited and significantly modal displacement main modes by determining the modal kinetic energy of each modality in the object to be rendered. Thus, by loading only the data of the main modes, the video memory usage and GPU load are reduced, rendering performance degradation is alleviated, and rendering efficiency is improved. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0042] Figure 1 A schematic diagram of a flexible beam model provided in an embodiment of this application;

[0043] Figure 2 A flowchart illustrating the rendering method for the flexible body provided in this application. Figure 1 ;

[0044] Figure 3 A flowchart illustrating the rendering method for the flexible body provided in this application. Figure 2 ;

[0045] Figure 4 A flowchart illustrating the rendering method for a flexible body provided in an embodiment of this application;

[0046] Figure 5 A schematic diagram of the rendering system for the flexible body provided in this application;

[0047] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.

[0048] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0049] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0050] First, let me explain the terms used in this application:

[0051] A flexible body can be defined as an object that can undergo significant elastic deformation during the process of being subjected to force or movement. Its shape and internal stress will change dynamically with external loads, constraints or inertial forces.

[0052] Rendering refers to the process of converting data such as geometric models, materials, lighting, textures, and deformation states in a 3D scene into 2D images or animation sequences through a graphics processing pipeline. In simulation visualization, rendering not only includes drawing static appearances but also integrates physical dynamic data (such as modal displacement and velocity) to generate realistic visual effects in real time.

[0053] In existing technologies, during vehicle dynamics simulations, large flexible components such as the body-in-white and chassis typically obtain modal data through finite element analysis and import it into multibody simulation software in the form of Modal Center Files (MNFs). MNF files contain all node information for each mode required for rendering; a typical body-in-white model may contain millions of nodes and hundreds of modes. In contrast, numerical integrators, when performing multibody dynamics simulations, use invariant matrices obtained by processing MNF files. These are constant matrices of fixed size, only representing the modal order. Therefore, the data volume is much smaller than that of the MNF file itself.

[0054] Currently, most mainstream multibody dynamics software renders animations by default by superimposing the displacements of all modal nodes. This leads to frequent issues such as memory overflow, rendering stutters, and even rendering failures due to the large number of nodes and modes, especially in applications like vehicle dynamics and whole-vehicle modal simulation.

[0055] for example, Figure 1 A schematic diagram of the flexible beam model provided in the embodiments of this application; as shown Figure 1 As shown, the modes of the flexible beam are:

[0056] ;

[0057] in, Indicates the first The shape function (or mode shape function) of a first-order mode. It describes the deformation mode of a flexible beam under that first-order mode; It is the modal order, indicating which mode it is; These are the position coordinates along the length of the beam, which can represent the measurement from one end of the beam (such as the left end) to the other end. It is the total length of the beam.

[0058] If N modes are retained in the calculation, its kinetic energy can be calculated as follows:

[0059] ;

[0060] in, For the first The generalized velocity of a mode, i.e., the rate of change of that mode with time; Represents the product of two modal shape functions; for Throughout the entire beam length Integrating on the surface yields the elements of the modal mass matrix; The transpose of the generalized velocity vector is a column vector containing the generalized velocities of all modes preserved.

[0061] If modal orthogonality is taken into account, then only N values ​​need to be stored for the whole system. However, for rendering, if a beam requires M nodes to describe its geometry, then NM data points are needed.

[0062] Therefore, it can be seen that the cost of a numerical integrator is only [amount missing] when performing one step of calculation. In terms of magnitude, for comparison, rendering a single frame of animation, without considering techniques, requires calculation. Next calculation, storage The modal data is on the order of magnitude larger than the computation itself, severely consuming computational resources. This problem is particularly prominent in real-time scenarios involving computation and rendering simultaneously, and can significantly slow down the overall simulation performance of the software.

[0063] Because the natural frequencies of different modes differ greatly, in practical engineering problems, only a few modes are often strongly excited and exhibit significant modal displacements. The displacements and velocities of most other modes are orders of magnitude smaller than those of the excited modes. Furthermore, in actual observation, modes with lower modal kinetic energy have a very weak impact on visualization in animation. In other words, animation rendering does not need to faithfully reproduce all modal responses, but should focus more on the parts that are perceptible to the human eye. Therefore, the flexible body rendering method provided in this application determines the modal kinetic energy of each mode in the object to be rendered to filter out the main modes that are strongly excited and exhibit significant modal displacements. By loading only the data of the main modes, it reduces video memory usage and GPU load, alleviates the degradation of rendering performance, and thus improves rendering efficiency.

[0064] The execution entity in this application embodiment can be a rendering system for flexible bodies. This system can be a server, which can be a computer, tablet, or other device equipped with simulation rendering tools. The server can include a numerical integrator and a renderer. The numerical integrator can determine the modal kinetic energy of the target modality and the accumulated modal kinetic energy of the target modality within a preset time period based on the dynamic parameters and invariant matrix of the object to be rendered. The renderer can perform simulation rendering of the object to be rendered based on the modal node information corresponding to the target modality when the target proportion of the accumulated modal kinetic energy of the target modality in the global modal kinetic energy meets a preset proportion requirement.

[0065] This application does not restrict the execution subject of the rendering method for flexible bodies, as long as it can determine the modal kinetic energy of the target modality in the object to be rendered and the cumulative modal kinetic energy of the target modality within a preset time based on the dynamic parameters and invariant matrix of the object to be rendered; the invariant matrix represents the dynamic influence relationship between the target modality and each selected modality; the target modality is a mode among the selected modalities; if the target proportion of the cumulative modal kinetic energy of the target modality in the global modal kinetic energy meets the preset proportion requirement, then the object to be rendered is simulated and rendered based on the modal node information corresponding to the target modality, and the simulated and rendered object is displayed; wherein, the global modal kinetic energy can be determined based on the cumulative modal kinetic energy of the selected modalities.

[0066] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0067] Figure 2 A flowchart illustrating the rendering method for the flexible body provided in this application. Figure 1 ,like Figure 2 As shown, the method includes:

[0068] S201. Based on the dynamic parameters and invariant matrix of the object to be rendered, determine the modal kinetic energy of the target order mode in the object to be rendered, and the cumulative modal kinetic energy of the target order mode within a preset time. The invariant matrix represents the dynamic influence relationship between the target order mode and each selected order mode. The target order mode is the mode in the selected order modes.

[0069] The object to be rendered can refer to a flexible body used for simulation. This flexible body can be a flexible component such as the body-in-white or chassis in vehicle dynamics simulation, or a mechanical system containing flexible structures in industrial equipment simulation.

[0070] Dynamic parameters refer to physical quantities that change over time during simulation and drive the geometric deformation or motion of the object being rendered. These physical quantities can include modal coordinates, modal velocities, modal accelerations, and data such as displacement, angular velocity, stress, and strain obtained from multibody dynamics solutions. In the rendering of flexible bodies, dynamic parameters can be superimposed with mode shapes to calculate the deformation positions of mesh vertices in real time, thereby achieving realistic dynamic visual effects. For example, when a vehicle is moving, the vibration of the vehicle body is updated in real time through the modal coordinates of each mode, thereby driving the 3D model to produce corresponding bending or torsional animations.

[0071] An invariant matrix can represent a class of physical properties such as stiffness and mass that do not change over time during simulation. This matrix can be generated by finite element analysis and stored in formats such as MNF (modal neutral file).

[0072] In some embodiments, the invariant matrix can reflect the inherent properties of the flexible body. For example, it can reflect the mass matrix, stiffness matrix, and damping matrix (or proportional damping coefficient), where the mass matrix is ​​used to describe the inertial coupling relationship between modes, and the stiffness matrix is ​​used to characterize the elastic restoring force between modes.

[0073] In this embodiment, the invariant matrix can be a mass matrix, used to characterize the dynamic influence relationship between the target mode and each selected mode. Wherein:

[0074] The mode of an object to be rendered refers to the specific inherent motion pattern of the object during vibration or deformation, which is extracted through modal analysis (such as the finite element method). The mode of the object to be rendered can have multiple orders, and each order mode can include a mode shape vector and a corresponding natural frequency. The mode shape vector can be used to describe the relative displacement distribution of each node of the object to be rendered under that mode (such as bending, torsion, and other deformation shapes), while the frequency can be used to reflect the speed of its dynamic response.

[0075] Selected modes can refer to N modes chosen from all modes of the object to be rendered, based on simulation objectives, accuracy requirements, and computational resource constraints. N can be equal to the total number of modes (i.e., retaining all modes) or less than the total number of modes (truncating some modes). For example, when high-fidelity reproduction of complex dynamic responses is required, a larger number of modes can be selected, such as choosing the top 120 modes with high kinetic energy proportions and strong frequency correlations from 150 modes, to retain key dynamic characteristics as much as possible while controlling computational scale; or, under extremely high-fidelity requirements, all 150 modes can be directly retained to ensure that all possible deformation forms are fully characterized.

[0076] The target mode can refer to a specific mode within a selected set of modes.

[0077] Therefore, the dynamic influence relationship between the target mode and each selected mode can refer to the inertial coupling, elastic coupling or energy transfer relationship between the target mode and the selected modes in the modal coordinate system through invariant matrices such as mass and stiffness. It is used to reflect the interaction strength between the target mode and the selected modes at the inertial level. If its value is significant, it indicates that the two modes will influence each other during motion, and the response change of one mode will indirectly change the energy contribution of the other mode through the coupling term.

[0078] The modal kinetic energy of the target modality can refer to the kinetic energy corresponding to the motion of the object to be rendered in that modality at a certain time step. In some embodiments, the modal kinetic energy of the target modality can be determined by the generalized mass and modal velocity of that modality.

[0079] The cumulative modal kinetic energy of the target mode within a preset time period can refer to the total energy value obtained by integrating or discretizing the instantaneous kinetic energy of the target mode at each time step within a time window.

[0080] In the embodiments of this application, the dynamic parameters and invariant matrix of the object to be rendered can be obtained by a numerical integrator, and the modal kinetic energy of the target order mode at each time step can be determined based on the dynamic parameters and invariant matrix of the object to be rendered. In the current time step or a time window after determining the modal kinetic energy, the modal kinetic energy is accumulated to obtain the accumulated modal kinetic energy of the target order mode.

[0081] S202. If the cumulative modal kinetic energy of the target order mode in the global modal kinetic energy meets the preset proportion requirement, then the object to be rendered is simulated and rendered according to the modal node information corresponding to the target order mode, and the simulated and rendered object is displayed; wherein, the global modal kinetic energy is determined according to the cumulative modal kinetic energy of the selected order mode.

[0082] The global modal kinetic energy can refer to the kinetic energy obtained by adding the accumulated modal kinetic energies of all selected modes. In the embodiments of this application, the accumulated modal kinetic energies of each selected mode can be obtained by repeatedly executing step S201, and the accumulated modal kinetic energies of each selected mode can be added together to obtain the global modal kinetic energy.

[0083] The target proportion of the accumulated modal kinetic energy of the target mode in the global modal kinetic energy can be defined as the ratio of the accumulated modal kinetic energy of the target mode to the global modal kinetic energy of all selected modes within a preset time period. It can be used to quantify the proportion of kinetic energy contributed by the target mode in the entire dynamic response process.

[0084] The preset proportion requirement refers to the pre-set requirement for the target proportion, which is used to filter whether the target mode is a strongly excited dominant mode and whether there is a significant modal shift. That is, when the target proportion meets the preset proportion requirement, the target mode is a strongly excited dominant mode with a significant modal shift; when the target proportion does not meet the preset proportion requirement, the target mode is not a dominant mode.

[0085] Among them, the main modes that are strongly excited and have relatively obvious modal displacements can refer to the modes whose modal coordinate amplitudes increase, whose modal kinetic energy or accumulated energy contribution is prominent under the current excitation conditions or motion conditions, and whose corresponding physical deformations (such as bending, torsion, etc.) are obvious in the structure. Because these modes have much larger modal displacements than other unexcited modes, they can effectively characterize the main vibration modes and energy distribution characteristics of the structure, and therefore play a dominant role in dynamic behavior.

[0086] In some embodiments, the preset percentage requirement can be set to be greater than a certain percentage threshold. For example, if the target percentage is greater than 10%, then the target mode is determined to be the main mode that is strongly excited and has obvious modal shift.

[0087] In some embodiments, the preset proportion requirement can be set to the requirement that the target proportion of the target order mode ranks among the top in all selected order modes. For example, if the target proportion is in the top 10, it can be determined that the target order mode is dominant in energy contribution, that is, the target order mode is determined to be the main mode that is strongly excited and has obvious modal shift.

[0088] In some embodiments, the preset percentage requirement can be set to the requirement that the cumulative kinetic energy percentage reaches the top a% by magnitude. For example, if the target percentage of the target mode reaches the top 90% of the total energy coverage range by magnitude, then the target mode is determined to be the main mode that is strongly excited and has obvious modal displacement.

[0089] Modal node information refers to the set of spatial displacement vectors of discrete structural nodes corresponding to the target mode in modal analysis. It can include node information for each node in the target mode, including relative displacement amplitudes and phase information in three directions to describe the deformation morphology of the structure in the target mode. In this embodiment, the modal node information can be extracted from a finite element model or a flexible body file such as MNF.

[0090] Simulation rendering of the object to be rendered can refer to loading the modal node information into the video memory as the base data for deformation calculation; combining the dynamic parameters such as modal coordinates and modal velocities obtained in real time, synthesizing the total displacement of the nodes, and dynamically updating the position of the mesh vertices through the vertex shader, thereby showing the physical deformation of the flexible body.

[0091] In this embodiment, the renderer selects whether the target modality is the main modality that needs to be retained according to the preset proportion requirements. If it is the main modality that needs to be retained, the modality node data corresponding to the target modality can be loaded into the video memory according to the modality node data corresponding to the target modality, so as to render and display the object to be rendered. If it is not the main modality that needs to be retained, the modality node data corresponding to the target modality can be not loaded into the video memory.

[0092] The rendering method for flexible bodies provided in this application identifies the dominant modes with significant modal displacements by calculating the modal kinetic energy of each mode in the object to be rendered. Since these modes dominate the dynamic deformation behavior of the flexible body structure, only the modal node information of high-contribution modes can be loaded into the video memory, actively removing data from low-kinetic-energy, inactive modes. This reduces video memory usage and the processing load on the GPU in vertex transformation and shading calculations. While ensuring the accurate reproduction of key deformation features, it reduces redundant calculations and resource contention, effectively alleviating rendering stuttering or frame rate drops caused by excessive data size, thereby improving rendering efficiency and response performance.

[0093] In this embodiment, to avoid wasting video memory during simulation rendering of the object to be rendered, the object is simulated and rendered based on the modal node information corresponding to the target modality, and the simulated and rendered object is then displayed, including:

[0094] Determine whether the target modality is included in the rendering animation of the object to be rendered;

[0095] If the target modality is not included in the rendering animation of the object to be rendered, the modal node information corresponding to the target modality is read from the memory;

[0096] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered.

[0097] Display the object to be rendered after simulation rendering.

[0098] Determining whether the target modality is included in the rendering animation of the object to be rendered can refer to checking whether the target modality has been included in the deformation calculation of the current frame or animation sequence before the rendering process starts, that is, whether its modal node information has been loaded into the video memory and participated in vertex deformation.

[0099] If the target modality is included in the rendering animation of the object to be rendered, it indicates that the data of the target modality has been loaded or released, and simulation rendering can be performed.

[0100] If the target modality is not included in the rendering animation of the object to be rendered, it indicates that although the target modality has been identified as a critical modality, its data has not been loaded or has been released. Therefore, it is necessary to read the modal node information corresponding to the target modality from the memory for simulation rendering.

[0101] In this embodiment, the memory can be RAM or external storage. When the memory is external storage, the modal node information corresponding to the target modality can be read from the MNF file.

[0102] Therefore, the rendering method for flexible bodies provided in this application determines whether the target modality is included in the rendering animation and loads its modality node information only when needed, thereby avoiding the long-term residence of modality node information in the video memory, effectively reducing video memory usage and data redundancy, and improving GPU resource utilization efficiency.

[0103] In this embodiment, to avoid wasting video memory resources during simulation rendering of the object to be rendered, if the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets a preset proportion requirement, then after simulating rendering the object to be rendered according to the modal node information corresponding to the target order mode and displaying the simulated rendered object, the method further includes:

[0104] If the modal node information is not rendered within the preset rendering time, the modal node information will be released.

[0105] If the modal node information is not used for deformation calculation or screen update within the preset rendering time, it indicates that the corresponding target-order modality is not currently excited or does not significantly contribute to dynamic behavior. In this case, it can be released from video memory to avoid invalid data occupying resources for a long time.

[0106] For example, if the fifth torsional mode of a vehicle frame is not activated during smooth driving, its modal coordinates are close to zero, and it does not participate in deformation rendering for 5 consecutive seconds, then it is determined to have timed out, and the node displacement data of this mode is automatically unloaded from the GPU memory. When the vehicle enters a bumpy road surface, and the mode is strongly activated, the data is reloaded from memory and participates in rendering.

[0107] Therefore, the rendering method for flexible bodies provided in this application effectively reclaims video memory resources, reduces GPU memory pressure, and avoids performance waste caused by redundant data residence by releasing modal node information when it has not participated in rendering for a long time. On the basis of ensuring the realism of dynamic deformation, it improves the resource utilization efficiency and long-term operational stability of the rendering system.

[0108] In this embodiment of the application, if the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets a preset proportion requirement, then before simulating and rendering the object to be rendered according to the modal node information corresponding to the target order mode, and before displaying the simulated and rendered object, after determining the modal kinetic energy of the target order mode in the object to be rendered and the accumulated modal kinetic energy of the target order mode within a preset time according to the dynamic parameters and invariant matrix of the object to be rendered, the method further includes:

[0109] Based on the dynamic parameters and invariant matrix of the object to be rendered, determine the modal kinetic energy of each selected mode in the object to be rendered, and the cumulative modal kinetic energy of each selected mode within a preset time; the selected modes are all or some modes in the object to be rendered.

[0110] The accumulated modal kinetic energy of each selected mode is accumulated to obtain the global modal kinetic energy.

[0111] In this process, each selected mode can be used as a target mode to calculate its modal kinetic energy, thereby obtaining the modal kinetic energy of each selected mode and the cumulative modal kinetic energy of each selected mode within a preset time.

[0112] After obtaining the accumulated modal kinetic energy of each selected mode, the accumulated modal kinetic energy of all selected modes is accumulated to obtain the global modal kinetic energy.

[0113] For example, in the simulation of a vehicle body-in-white, the model contains 800,000 nodes and 100 modes. The system analyzes all 100 modes as selected modes. By solving the coordinates of each mode in real time, the modal kinetic energy at each time step is calculated, and the kinetic energy of each mode is integrated and accumulated within a preset time period (e.g., 1 second) to obtain the accumulated modal kinetic energy of each mode. Subsequently, the accumulated kinetic energy of these 100 modes is summed to obtain the global modal kinetic energy.

[0114] Therefore, the rendering method for flexible bodies provided in this application can accurately quantify the total energy distribution of the system within a preset time by calculating the modal kinetic energy of each selected modality as the target modality and accumulating them to obtain the global modal kinetic energy, thereby achieving efficient processing and performance optimization of rendering resources while ensuring physical realism.

[0115] In this embodiment, if the cumulative modal kinetic energy of the target order mode accounts for a target proportion in the global modal kinetic energy, a simulation rendering of the object to be rendered is performed based on the modal node information corresponding to the target order mode, and the simulated rendering of the object to be rendered is displayed. The method further includes:

[0116] Determine the target proportion of the accumulated modal kinetic energy of the target mode in the global modal kinetic energy, and the sorting position of the target proportion in the proportion sequence; the proportion sequence is obtained by sorting the proportion of the accumulated modal kinetic energy of the selected mode in the global modal kinetic energy from largest to smallest;

[0117] If the target proportion is ranked before the preset position in the proportion sequence, then the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy is determined to meet the preset proportion requirement; where the preset position represents the position where the sum of the proportions from largest to smallest in the proportion sequence reaches the preset proportion threshold.

[0118] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered, and the simulated and rendered object is displayed.

[0119] The percentage sequence can refer to the sequence after sorting the percentage of the cumulative modal kinetic energy of each selected mode in the global modal kinetic energy. For example, if there are 100 selected modes, there can be 100 percentages of the cumulative modal kinetic energy of each selected mode in the global modal kinetic energy. By sorting the 100 percentages from largest to smallest, the percentage sequence can be obtained.

[0120] The ranking position of the target percentage within the percentage sequence refers to its position relative to the global modal kinetic energy. This ranking position reflects the importance of the target percentage relative to the global modal kinetic energy; when percentages are ranked from largest to smallest, the earlier the target percentage appears, the greater its importance.

[0121] The preset position can refer to the position of the main mode used to determine whether it is strongly excited and whether there is a significant modal shift. In the embodiments of this application, the preset position represents the position where the sum of the proportions from large to small in the proportion sequence reaches a preset proportion threshold. The preset proportion threshold can be set in advance as needed. For example, if the preset proportion threshold is 90%, when traversing the proportion sequence from top to bottom, if the sum of the first 10 proportions is just greater than 90% when reaching the 10th proportion, then the preset position is the position of the 10th proportion. That is, if the proportion sequence is 24%, 22%, 15%, 8%, 6%, 5%, 4%, 3%, 2%, 1.5%, when reaching the 9th proportion, the sum of the first 9 proportions is 89%, which is less than 90%. When reaching the 10th proportion, the sum of the first 10 proportions is 90.5%, so the position of the 10th proportion in the proportion sequence is the preset position.

[0122] The fact that the target percentage is ranked before a preset position in the percentage sequence indicates that the target percentage is greater than the percentage corresponding to the preset position. For example, if the percentage sequence is 24%, 22%, 15%, 8%, 6%, 5%, 4%, 3%, 2%, 1.5%, and the percentage corresponding to the ranked position is 1.5%, then if the target percentage is greater than 1.5%, and the target percentage is ranked before the preset position in the percentage sequence, it can be determined that the target percentage of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets the preset percentage requirement.

[0123] Therefore, the rendering method for flexible bodies provided in this application can dynamically identify a set of dominant modes that contribute significantly to energy by constructing a sorted sequence of the cumulative modal kinetic energy proportions of each selected mode and determining a preset position based on a preset proportion threshold. When the target proportion is located before the preset position in the proportion sequence, it indicates that the cumulative energy contribution of the target mode is higher than the threshold boundary, belonging to a strongly excited dominant mode with significant displacement, and meeting the preset proportion requirement. Thus, it is possible to better determine whether the cumulative modal kinetic energy of the target mode meets the preset proportion requirement in the global modal kinetic energy.

[0124] Figure 3 A flowchart illustrating the rendering method for the flexible body provided in this application. Figure 2 ,like Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, the steps of determining the modal kinetic energy of the target order mode in the object to be rendered, and accumulating the modal kinetic energy of the target order mode within a preset time, according to the dynamic parameters and invariant matrix of the object to be rendered, are described in detail. The method includes:

[0125] S301. Based on the modal velocities of the target mode, the selected mode, and the invariant matrix in the dynamic parameters of the object to be rendered, determine the modal kinetic energy of the target mode in the object to be rendered; wherein, the modal velocity of the target mode represents the rate of change of the target mode over simulation time, and the modal velocity of the selected mode represents the rate of change of the selected mode over simulation time.

[0126] S302. According to the preset time, the modal kinetic energy of the target modality in the object to be rendered is accumulated to obtain the accumulated modal kinetic energy of the target modality within the preset time.

[0127] Modal velocity refers to the generalized velocity in the coordinate direction of a certain modal, that is, the rate of change of the displacement of that modal with time. Modal velocity reflects the speed of motion of that mode at the current moment and is an important parameter for calculating modal kinetic energy, damping force, and dynamic response. Therefore, the modal velocity of the target modal characterizes the rate of change of the target modal over simulation time, and the modal velocity of the selected modal characterizes the rate of change of the selected modal over simulation time.

[0128] In this embodiment, the kinetic energy of the target mode can be calculated by combining the modal velocities of the target mode with the modal velocities of all selected modes, along with the corresponding coupling relationships in the mass matrix. Since the mass matrix describes the inertial interactions between different modes, the velocity of the target mode is weighted and combined with the velocities of each mode (including itself and other modes) using the values ​​in this matrix. Then, through energy superposition, the magnitude of the kinetic energy contained in the target mode at the current moment is reflected.

[0129] In this embodiment of the application, determining the modal kinetic energy of the target mode in the object to be rendered based on the modal velocity of the target mode, the modal velocity of the selected mode, and the invariant matrix in the dynamic parameters of the object to be rendered includes:

[0130] Based on the modal velocities of the target mode, the modal velocities of the selected modes, and the invariant matrix in the dynamic parameters of the object to be rendered, determine the kinetic energy contribution of the target mode relative to each selected mode.

[0131] The modal kinetic energy contribution of the target mode relative to each selected mode is summed to obtain the modal kinetic energy of the target mode in the object to be rendered.

[0132] In this process, by analyzing the dynamic parameters of the object to be rendered, and using the modal velocities of the target mode and each selected mode, combined with the corresponding coupling elements in the mass matrix, the kinetic energy contribution of the target mode relative to each selected mode can be calculated. This kinetic energy contribution reflects the energy interaction between the target mode and each mode due to velocity linkage under inertial coupling. Subsequently, by summing all these relative kinetic energy contributions, the total modal kinetic energy of the target mode at the current moment can be obtained. In this embodiment, the modal kinetic energy of the target mode in the object to be rendered satisfies:

[0133]

[0134] in, Modal kinetic energy characterizing the target order mode; Characterizing invariant matrices; The modal velocity characterizing the target order mode in the dynamic parameters; Modal velocity characterizing a selected mode among dynamic parameters; The order that characterizes the target mode; Characterizes the order of a selected mode; Characterizes the total order of the selected mode.

[0135] Therefore, the rendering method of flexible body provided in this application fully considers the velocity linkage effect between the target mode and each selected mode under the mass matrix coupling relationship, thereby obtaining modal kinetic energy that can truly reflect the energy contribution of each mode in the dynamic response, making the differentiation of the main modes more accurate and avoiding misjudgment or omission of key vibration modes due to energy estimation deviation.

[0136] Figure 4 A flowchart illustrating the rendering method for flexible bodies provided in this application embodiment. Figure 3 ,like Figure 4 As shown, the method includes:

[0137] 1. Modal energy calculation;

[0138] This step can be completed by a numerical integrator after each simulation step. Its algorithm is based on the modal coordinates and their derivatives (i.e., modal velocities) at the current time step t. It uses posterior dynamic data to calculate the energy of each mode and updates the kinetic energy values ​​of each mode in real time at each simulation moment to ensure that the energy response is consistent with the system motion state.

[0139] Energy satisfaction is performed for each mode:

[0140]

[0141] in, One of the invariant matrices obtained from the MNF file. The modal velocity is calculated by the solver for the current step.

[0142] 2. Ranking of the kinetic energy percentage of each mode;

[0143] This step can be provided by the numerical integrator after each simulation step. Within the current time step or a time window, the modal energies are accumulated to obtain the total energy, and the energies of each mode are sorted from largest to smallest. Then, the proportion is calculated, and the results are reported to the renderer along with the simulation data.

[0144] 3. Animation rendering and cropping;

[0145] This step can be performed by the renderer, which selects the primary modes to be retained based on the set modal energy percentage (90%).

[0146] 4. Optimized rendering cache management;

[0147] This step can be performed by the renderer; non-primary modal data is not loaded into video memory.

[0148] Before rendering, the renderer checks whether the current main modality has been included in the animation. If not, it reads the required modality node information from the MNF in memory or even external storage.

[0149] In addition, it is also necessary to dynamically manage the modal node information stored in the video memory: if it is detected that certain modalities have not been rendered for a long time, these data can be actively released to reduce video memory usage.

[0150] In this embodiment of the application, a simulation of the whole vehicle body-in-white is taken as an example:

[0151] The model can contain 800,000 nodes and 100 modes. By executing steps 1 to 4 above, the energy of each mode is calculated, and the mode with a cumulative energy ratio of 90% can be selected. Modes with modal orders of 8-12 are retained, and animation reconstruction is performed accordingly to obtain the simulation results of the white body.

[0152] Based on this, without a significant decrease in animation visual quality (which is difficult for the human eye to distinguish), it can reduce video memory usage by about 78% and increase the frame rate by about 3 times.

[0153] Therefore, the rendering method for flexible bodies provided in this application embodiment can significantly reduce the consumption of video memory and GPU resources, has good scalability, is suitable for animation simulation of various flexible body structures, and can be easily embedded into existing multibody dynamics simulation software or post-processing systems. It has low implementation cost, does not require modification of the original simulation process, does not interfere with existing links, and has strong engineering practicality and integration advantages.

[0154] Figure 5A schematic diagram of the rendering system for the flexible body provided in this application is shown below. Figure 5 As shown, the flexible body rendering system 50 provided in this embodiment includes:

[0155] The numerical integrator 501 is used to determine the modal kinetic energy of the target order mode in the object to be rendered, and the accumulated modal kinetic energy of the target order mode within a preset time, based on the dynamic parameters and invariant matrix of the object to be rendered. The invariant matrix represents the dynamic influence relationship between the target order mode and each selected order mode. The target order mode is a mode among the selected order modes.

[0156] Renderer 502 is used to simulate and render the object to be rendered based on the modal node information corresponding to the target modality if the target proportion of the accumulated modal kinetic energy of the target modality in the global modal kinetic energy meets the preset proportion requirement, and then display the simulated and rendered object to be rendered; wherein, the global modal kinetic energy is determined based on the accumulated modal kinetic energy of the selected modality.

[0157] In one possible implementation, the numerical integrator 501 can also be specifically used for:

[0158] Based on the modal velocities of the target mode, the selected mode, and the invariant matrix in the dynamic parameters of the object to be rendered, the modal kinetic energy of the target mode in the object to be rendered is determined; where the modal velocity of the target mode represents the rate of change of the target mode over simulation time, and the modal velocity of the selected mode represents the rate of change of the selected mode over simulation time.

[0159] Based on a preset time, the modal kinetic energy of the target modality in the object to be rendered is accumulated to obtain the accumulated modal kinetic energy of the target modality within the preset time.

[0160] In one possible implementation, the numerical integrator 501 can also be specifically used for:

[0161] Based on the modal velocities of the target mode, the modal velocities of the selected modes, and the invariant matrix in the dynamic parameters of the object to be rendered, determine the kinetic energy contribution of the target mode relative to each selected mode.

[0162] The modal kinetic energy contribution of the target mode relative to each selected mode is summed to obtain the modal kinetic energy of the target mode in the object to be rendered.

[0163] In one possible implementation, the modal kinetic energy of the target order mode in the object to be rendered in the numerical integrator 501 satisfies:

[0164]

[0165] in, Modal kinetic energy characterizing the target order mode; Characterizing invariant matrices; The modal velocity characterizing the target order mode in the dynamic parameters; Modal velocity characterizing a selected mode among dynamic parameters; The order that characterizes the target mode; Characterizes the order of a selected mode; Characterizes the total order of the selected mode.

[0166] In one possible implementation, renderer 502 can also be specifically used for:

[0167] Determine whether the target modality is included in the rendering animation of the object to be rendered;

[0168] If the target modality is not included in the rendering animation of the object to be rendered, the modal node information corresponding to the target modality is read from the memory;

[0169] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered.

[0170] Display the object to be rendered after simulation rendering.

[0171] In one possible implementation, the numerical integrator 501 can also be specifically used for:

[0172] Based on the dynamic parameters and invariant matrix of the object to be rendered, determine the modal kinetic energy of each selected mode in the object to be rendered, and the cumulative modal kinetic energy of each selected mode within a preset time; the selected modes are all or some modes in the object to be rendered.

[0173] The accumulated modal kinetic energy of each selected mode is accumulated to obtain the global modal kinetic energy.

[0174] In one possible implementation, renderer 502 can also be specifically used for:

[0175] Determine the target proportion of the accumulated modal kinetic energy of the target mode in the global modal kinetic energy, and the sorting position of the target proportion in the proportion sequence; the proportion sequence is obtained by sorting the proportion of the accumulated modal kinetic energy of the selected mode in the global modal kinetic energy from largest to smallest;

[0176] If the target proportion is ranked before the preset position in the proportion sequence, then the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy is determined to meet the preset proportion requirement; where the preset position represents the position where the sum of the proportions from largest to smallest in the proportion sequence reaches the preset proportion threshold.

[0177] Based on the modal node information corresponding to the target modality, the object to be rendered is simulated and rendered, and the simulated and rendered object is displayed.

[0178] In one possible implementation, renderer 502 can also be specifically used for:

[0179] If the modal node information is not rendered within the preset rendering time, the modal node information will be released.

[0180] The rendering system for flexible bodies provided in this embodiment can execute the methods provided in the above-described method embodiments. Its implementation principle and technical effects are similar, and will not be described in detail here.

[0181] Figure 6 A schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the device 60 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.

[0182] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.

[0183] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0184] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0185] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0186] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0187] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0188] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0189] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0190] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0191] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0192] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0193] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0194] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0195] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0196] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method of rendering a flexible body, characterized by, The method comprises the following steps: determining modal kinetic energy of a target modal in the object to be rendered according to dynamic parameters of the object to be rendered and an invariant matrix, and accumulating the modal kinetic energy of the target modal within a preset time; the invariant matrix represents a dynamic influence relationship between the target modal and each selected modal, and the invariant matrix is a mass matrix; the target modal is a modal among the selected modals; if a target proportion of the accumulated modal kinetic energy of the target modal in global modal kinetic energy meets a preset proportion requirement, then performing simulation rendering on the object to be rendered according to modal node information corresponding to the target modal, and displaying the object to be rendered after simulation rendering; wherein the global modal kinetic energy is determined according to the accumulated modal kinetic energy of the selected modals; wherein the determination of the modal kinetic energy of the target modal in the object to be rendered according to the dynamic parameters of the object to be rendered and the invariant matrix comprises: determining kinetic energy contribution of the target modal relative to each selected modal according to modal velocity of the target modal, modal velocity of the selected modals and the invariant matrix in the dynamic parameters of the object to be rendered; summing the kinetic energy contribution of the target modal relative to each selected modal to obtain the modal kinetic energy of the target modal in the object to be rendered.

2. The method of claim 1, wherein, wherein the modal velocity of the target modal represents a change rate of the target modal at a simulation time, and the modal velocity of the selected modals represents a change rate of the selected modals at the simulation time; the method further comprises: accumulating the modal kinetic energy of the target modal in the object to be rendered according to a preset time to obtain the accumulated modal kinetic energy of the target modal within the preset time.

3. The method of claim 1, wherein, the modal kinetic energy of the target modal in the object to be rendered meets: wherein the characterizing a modal kinetic energy of a target modal of the target order; the characterizing the mass matrix; the characterizing a modal velocity of a target modal of the dynamic parameters; the characterizing a modal velocity of a selected modal of the dynamic parameters; the characterizing an order of a target modal; the characterizing an order of a selected modal; the characterizing a total order of the selected modal.

4. The method of claim 1, wherein, the simulation rendering of the object to be rendered according to the modal node information corresponding to the target modal, and the display of the object to be rendered after simulation rendering, comprises: determining whether the target modal is counted in a rendering animation of the object to be rendered; if the target modal is not counted in the rendering animation of the object to be rendered, then reading the modal node information corresponding to the target modal from a storage; performing simulation rendering on the object to be rendered according to the modal node information corresponding to the target modal; displaying the object to be rendered after simulation rendering.

5. The method of claim 1, wherein, before the simulation rendering of the object to be rendered according to the modal node information corresponding to the target modal, and the display of the object to be rendered after simulation rendering if a target proportion of the accumulated modal kinetic energy of the target modal in global modal kinetic energy meets a preset proportion requirement, after the determination of the modal kinetic energy of the target modal in the object to be rendered according to the dynamic parameters of the object to be rendered and the invariant matrix, and the accumulation of the modal kinetic energy of the target modal within a preset time, the method further comprises: determine modal kinetic energy of each selected order mode in the object to be rendered according to dynamic parameters and an invariant matrix of the object to be rendered, and accumulate the modal kinetic energy of each selected order mode within a preset time to obtain global modal kinetic energy; perform accumulation processing on the accumulated modal kinetic energy of each selected order mode to obtain the global modal kinetic energy.

6. The method of claim 1, wherein, If the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets a preset proportion requirement, perform simulation rendering on the object to be rendered according to modal node information corresponding to the target order mode, and display the object to be rendered after simulation rendering. determine the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy, and a sorting position of the target proportion in a proportion sequence; the proportion sequence is obtained by sorting proportions of the accumulated modal kinetic energy of the selected order modes in the global modal kinetic energy from large to small; If the sorting position of the target proportion in the proportion sequence is before a preset position, it is determined that the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets the preset proportion requirement; the preset position represents a position at which a sum of proportions from large to small in the proportion sequence reaches a preset proportion threshold. perform simulation rendering on the object to be rendered according to modal node information corresponding to the target order mode, and display the object to be rendered after simulation rendering.

7. The method of claim 1, wherein, After the target proportion of the accumulated modal kinetic energy of the target order mode in the global modal kinetic energy meets the preset proportion requirement, the method further includes: If the modal node information does not render the object to be rendered within a preset rendering time, release the modal node information.

8. A system for rendering a flexible body, characterized by comprise: a numerical integrator configured to determine modal kinetic energy of a target order mode in an object to be rendered according to dynamic parameters and an invariant matrix of the object to be rendered, and accumulate the accumulated modal kinetic energy of the target order mode within a preset time; the invariant matrix represents a dynamic influence relationship between the target order mode and each selected order mode, and the invariant matrix is a mass matrix; the target order mode is a mode in the selected order modes; a renderer configured to, if a target proportion of the accumulated modal kinetic energy of the target order mode in global modal kinetic energy meets a preset proportion requirement, perform simulation rendering on the object to be rendered according to modal node information corresponding to the target order mode, and display the object to be rendered after simulation rendering; the global modal kinetic energy is determined according to the accumulated modal kinetic energy of the selected order modes; the numerical integrator is specifically configured to: determine kinetic energy contribution of the target order mode relative to each selected order mode according to modal velocity of the target order mode, modal velocity of the selected order mode, and the invariant matrix. Summing the kinetic energy contribution of the target order mode relative to each of the selected order modes to obtain a modal kinetic energy of the target order mode in the object to be rendered.

9. An electronic device, comprising: Comprising: a memory, a processor; the memory stores computer-executed instructions; the processor executes the computer-executed instructions stored in the memory, so that the processor executes the method in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executed instructions, and the computer-executed instructions are executed by the processor to implement the method in any one of claims 1-7.

11. A computer program product, characterised in that, The computer program is executed by the processor to implement the method in any one of claims 1-7.

Citation Information

Patent Citations

  • ANSYS and ADAMS-based large-scale antenna dynamical modeling method

    CN104850697A

  • Display method and device

    CN120068191A