Vehicle structural component weighting method and related apparatus

CN122965102APending Publication Date: 2026-10-23ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611047125.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-14
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0003]现有的结构件质量配重方法依赖工程师手动分配结构件节点质量或不断调整有限元模型参数来进行配重,这一过程需工程师反复测量零件模型质量、重心坐标、零件节点数量、各节点配重质量、零件密度等,过程复杂、重复性高、易出错,严重影响配重效率

Benefits of technology

[0017]本申请的有益效果是:区别于现有技术的情况,本申请获取车辆的目标结构件的理论配重参数后,识别理论配重参数所属的参数类型,启动与参数类型对应的配重方案,对目标结构件进行配重。识别参数类型后,自动启动对应的配重方案,即可实现自动对车辆结构件进行配重,提高配重效率。通过启动与参数类型对应的配重方案,使得能够采用最优的配重方案对结构件进行配重,实现提高配重结果的准确度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122965102A_ABST
    Figure CN122965102A_ABST
Patent Text Reader

Abstract

The application discloses a vehicle structure weight matching method and related device, and the method comprises the following steps: acquiring a theoretical weight matching parameter of a target structure of a vehicle; identifying a parameter type to which the theoretical weight matching parameter belongs, wherein the parameter type comprises a uniform weight matching parameter and a non-uniform weight matching parameter; and starting a weight matching scheme corresponding to the parameter type to perform weight matching on the target structure. In this way, the application can automatically perform weight matching on the vehicle structure, thereby improving the weight matching efficiency and the accuracy of the weight matching result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle simulation analysis technology, and in particular to a method and related device for counterweighting vehicle structural components. Background Technology

[0002] Vehicle structural durability simulation analysis is a core CAE (Computer-Aided Engineering) simulation technology in the automotive R&D system. It is primarily used to simulate the stress distribution, deformation characteristics, and fatigue durability of the vehicle body and various structural components under full-condition road loads, including bumps, torsion, braking, and acceleration. It is a key technology for proactively identifying structural failure risks, optimizing structural design, shortening vehicle development cycles, and improving overall vehicle reliability. In the process of vehicle structural durability simulation, the weight distribution of structural components is a crucial factor determining the simulation accuracy and the realism of the operating conditions, directly affecting the accuracy and effectiveness of the simulation results.

[0003] Existing methods for counterweighting structural components rely on engineers manually allocating the mass of structural component nodes or continuously adjusting finite element model parameters to perform counterweighting. This process requires engineers to repeatedly measure the mass of the part model, the coordinates of the center of gravity, the number of part nodes, the counterweight mass of each node, the density of the part, etc., which is complex, highly repetitive, and prone to errors, seriously affecting the efficiency of counterweighting. Summary of the Invention

[0004] The main technical problem addressed by this application is to provide a method for counterweighting vehicle structural components, which can automatically counterweight vehicle structural components, thereby improving counterweighting efficiency and the accuracy of counterweighting results.

[0005] To address the aforementioned technical problems, the first aspect of this application provides a method for counterweighting vehicle structural components. This method includes: obtaining theoretical counterweight parameters of the target structural component of the vehicle; identifying the parameter type to which the theoretical counterweight parameters belong, including uniformly distributed counterweight parameters and non-uniformly distributed counterweight parameters; and activating a counterweighting scheme corresponding to the parameter type to counterweight the target structural component.

[0006] There are multiple counterweight schemes corresponding to the same parameter type. The counterweight scheme corresponding to the parameter type is activated to counterweight the target structural component. This includes: obtaining the magnitude relationship between the theoretical counterweight parameter and the actual counterweight parameter of the target structural component; taking multiple counterweight schemes corresponding to the parameter type to which the theoretical counterweight parameter belongs as candidate counterweight schemes, activating the candidate counterweight scheme corresponding to the magnitude relationship, and counterweighting the target structural component.

[0007] Among them, the theoretical counterweight parameters include the first theoretical mass of the target structural component, and the parameter type of the first theoretical mass is the uniformly distributed counterweight parameter.

[0008] The step of activating a counterweight scheme corresponding to the parameter type to counterweight the target structural component includes: obtaining a first magnitude relationship between the first theoretical mass and the first actual mass of the target structural component; selecting multiple counterweight schemes corresponding to the uniformly distributed counterweight parameters as candidate counterweight schemes, activating the candidate counterweight schemes corresponding to the first magnitude relationship, and counterweighting the target structural component.

[0009] The process of initiating a candidate counterweight scheme corresponding to the first size relationship and counterweighting the target structural component includes: in response to the first size relationship where the first actual mass is less than the first theoretical mass, obtaining the first counterweight node in the target structural component; determining the first mass to be added to each first counterweight node based on the mass difference between the first actual mass and the first theoretical mass and the number of first counterweight nodes; adding the first mass to be added to each first counterweight node to complete the uniform counterweight distribution; and in response to the first size relationship where the first actual mass is greater than the first theoretical mass, obtaining the actual density of the target structural component; determining the theoretical density of the target structural component based on the first actual mass, the actual density, and the first theoretical mass; adjusting the actual density of the target structural component to the theoretical density to complete the uniform counterweight distribution.

[0010] Among them, the theoretical counterweight parameters include the second theoretical mass and the theoretical centroid of the target structural component. The parameter type to which the second theoretical mass and the theoretical centroid belong is non-uniformly distributed counterweight parameters.

[0011] The process of activating a counterweight scheme corresponding to the parameter type and counterweighting the target structural component includes: responding to the difference between the second actual mass and the second theoretical mass of the target structural component, and / or the difference between the actual centroid and the theoretical centroid of the target structural component, determining the second counterweight nodes in the target structural component and the second mass to be added to each second counterweight node based on the second actual mass, the second theoretical mass, the actual centroid, and the theoretical centroid, and adding the second mass to each second counterweight node to complete the non-uniform counterweighting.

[0012] The process of determining the second counterweight node and the second mass to be added to each second counterweight node in the target structural component based on the second actual mass, the second theoretical mass, the actual center of mass, and the theoretical center of mass includes: using a mass balancing tool to determine the second counterweight node and the second mass to be added to each second counterweight node in the target structural component; wherein the input parameters of the mass balancing tool include the second actual mass, the second theoretical mass, the actual center of mass, and the theoretical center of mass.

[0013] Before obtaining the theoretical counterweight parameters of the target structural component of the vehicle, the method further includes: in response to the selection instruction for the structural component, selecting at least one candidate structural component from the candidate structural components of the vehicle as the target structural component.

[0014] To address the aforementioned technical problems, a second aspect of this application provides an electronic device comprising a memory and a processor. The memory stores program instructions, and the processor executes the program instructions to implement the method provided in the first aspect.

[0015] To address the aforementioned technical problems, a third aspect of this application provides a computer-readable storage medium storing program instructions that can be executed by a processor to implement the method provided in the first aspect.

[0016] To address the aforementioned technical problems, a fourth aspect of this application provides a computer program product comprising a computer program that, when executed by a processor, implements the method provided in the first aspect.

[0017] The beneficial effects of this application are as follows: Unlike existing technologies, this application, after obtaining the theoretical counterweight parameters of the target structural component of the vehicle, identifies the parameter type of the theoretical counterweight parameters and activates the corresponding counterweight scheme to counterweight the target structural component. By automatically activating the corresponding counterweight scheme after identifying the parameter type, the vehicle structural component can be automatically counterweighted, improving counterweight efficiency. By activating the counterweight scheme corresponding to the parameter type, the optimal counterweight scheme can be used to counterweight the structural component, thereby improving the accuracy of the counterweight results. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this application, the accompanying drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Among them: Figure 1 This is a flowchart illustrating one embodiment of the vehicle structural component counterweight method provided in this application; Figure 2 This is a flowchart illustrating another embodiment of the vehicle structural component counterweight method provided in this application; Figure 3 This is a flowchart illustrating another embodiment of the vehicle structural component counterweight method provided in this application; Figure 4 This is a schematic diagram of one embodiment of the visual interface provided in this application; Figure 5 This is a schematic diagram of the framework structure of one embodiment of the electronic device provided in this application; Figure 6 This is a schematic diagram of the framework structure of one embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0020] It should be noted that the embodiments of this application contain descriptions involving "first," "second," etc., which are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature.

[0021] In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movement of the components in a specific posture (as shown in the figures). If the specific posture changes, the directional indication will also change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0024] This application provides the following embodiments, and each embodiment will be described in detail below.

[0025] In vehicle structure simulation, functions such as modal analysis, frequency response analysis, vehicle durability analysis, and strength analysis of opening and closing components all require the use of counterweights for structural components. Compared to traditional single-mass-point counterweight methods, uniformly distributed and non-uniformly distributed counterweights can more accurately reproduce the mechanical properties of the actual structure. Uniformly distributed counterweights are suitable for structural components with uniform mass distribution, while non-uniformly distributed counterweights are suitable for structural components with uneven mass distribution or offset centers of gravity. Uniformly distributed counterweights refer to using continuously distributed mass points to accurately simulate the mass distribution of the structural component, avoiding the local stiffness distortion caused by single-mass-point counterweights. Non-uniformly distributed counterweights refer to using counterweights to reproduce the true mass distribution and center of gravity position of the structural component, ensuring the accuracy of inertia tensor calculations.

[0026] Please see Figure 1 , Figure 1 This is a flowchart illustrating one embodiment of the vehicle structural component counterweight method provided in this application. The method includes: S11: Obtain the theoretical counterweight parameters of the target structural components of the vehicle.

[0027] This application aims to address the problem of low efficiency and error-proneness in the manual operation of structural component weight balancing in vehicle structural durability simulation modeling. Target structural components refer to vehicle body parts that require weight balancing simulation, such as sheet metal panels, support frames, glass, and irregularly shaped structural components with mounting brackets, integrated accessories, or partial thickening / hollowing out, as well as composite structural components housing electrical components, piping, and auxiliary materials.

[0028] In one embodiment, the target structural component is selected by the user from multiple candidate structural components displayed on the simulation software interface; the number of target structural components can be one or more. The simulation software can be computer-aided engineering preprocessing software (such as ANSA software).

[0029] Theoretical counterweight parameters refer to theoretical values ​​during the design phase, including at least one of theoretical mass and theoretical center of mass. In one embodiment, theoretical counterweight parameters can be obtained from data input by the user in a visual interface, i.e., the user directly inputs the theoretical counterweight parameters. In other embodiments, multiple theoretical counterweight parameters can be pre-maintained, a theoretical counterweight parameter table can be established, and the theoretical counterweight parameters can be read from the theoretical counterweight parameter table. For example, the theoretical counterweight parameter table can be established using the identifier of the structural component as an index. The above methods are merely illustrative, and the method of obtaining theoretical counterweight parameters is not limited.

[0030] S12: Identify the parameter type to which the theoretical counterweight parameters belong.

[0031] The parameter type can be used to distinguish the mass distribution characteristics of structural components. In one embodiment, the parameter type includes uniformly distributed counterweight parameters and non-uniformly distributed counterweight parameters. Uniformly distributed counterweight parameters are suitable for structural components with uniform mass distribution, while non-uniformly distributed counterweight parameters are suitable for structural components with uneven mass distribution or offset center of gravity.

[0032] In one specific embodiment, if the theoretical counterweight parameter only includes the theoretical mass, the parameter type of the theoretical counterweight parameter is determined to be a uniformly distributed counterweight parameter. If the theoretical counterweight parameter includes both the theoretical mass and the theoretical center of mass, the parameter type of the theoretical counterweight parameter is determined to be a non-uniformly distributed counterweight parameter.

[0033] S13: Activate the counterweight scheme corresponding to the parameter type to counterweight the target structural component.

[0034] In one embodiment, activating a counterweight scheme refers to calling a corresponding preset automated algorithm or software interface to execute a corresponding counterweight operation based on the identified parameter type. There may be one or more counterweight schemes corresponding to a parameter type. When there is only one counterweight scheme corresponding to a parameter type, the corresponding counterweight scheme is directly invoked for counterweighting. When there are multiple counterweight schemes corresponding to the parameter type to which the theoretical counterweight parameter belongs, the relationship between the theoretical counterweight parameter and the actual counterweight parameter of the target structural component can be obtained first. The multiple counterweight schemes corresponding to the parameter type to which the theoretical counterweight parameter belongs are then used as candidate counterweight schemes, and the candidate counterweight scheme corresponding to the relationship is activated to counterweight the target structural component.

[0035] The actual counterweight parameters are the actual mass value and actual centroid coordinates of the target structural component, which can be automatically read through the software interface. The magnitude relationship refers to comparing the theoretical counterweight parameters with the automatically acquired actual counterweight parameters to determine whether the actual counterweight parameters are less than, equal to, or greater than the theoretical counterweight parameters. Once the magnitude relationship is determined, the system automatically selects the corresponding candidate counterweight scheme according to preset logical rules. By introducing a mechanism for automatically selecting a counterweight scheme based on the magnitude relationship, the counterweighting process can adaptively select the optimal correction strategy for different mass deviations, thereby improving the accuracy of the counterweighting results.

[0036] The above scheme, after obtaining the theoretical counterweight parameters of the target structural component of the vehicle, identifies the parameter type of the theoretical counterweight parameters and activates the corresponding counterweight scheme to counterweight the target structural component. By automatically activating the corresponding counterweight scheme after identifying the parameter type, the scheme can automatically counterweight the vehicle structural component, improving counterweight efficiency. By activating the counterweight scheme corresponding to the parameter type, the optimal counterweight scheme can be used to counterweight the structural component, improving the accuracy of the counterweight results and enabling adaptive adjustment of the counterweight scheme. This comprehensively covers the simulation requirements of different types of structural components, thereby improving the scenario adaptability of the counterweight method.

[0037] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the vehicle structural component counterweight method provided in this application, the method comprising: S21: Obtain the theoretical counterweight parameters of the target structural components of the vehicle.

[0038] S22: Identify the parameter type to which the theoretical counterweight parameters belong.

[0039] In this embodiment, the theoretical counterweight parameters include the first theoretical mass of the target structural component, and the parameter type of the first theoretical mass is a uniformly distributed counterweight parameter. This embodiment is used to apply uniformly distributed counterweight to the target structural component. Structural components capable of undergoing uniformly distributed counterweight are those with a uniform mass distribution, such as sheet metal coverings, support frames, glass, and other regular structural components.

[0040] For the specific implementation of steps S21-S22, please refer to steps S11 and S12 in the first implementation of the vehicle structural component counterweight method, which will not be repeated here.

[0041] S23: Obtain the first magnitude relationship between the first theoretical mass and the first actual mass of the target structural component.

[0042] In one embodiment, the difference between the first theoretical mass and the first actual mass is calculated, and based on the difference, it is determined that the first theoretical mass is greater than, less than, or equal to the first actual mass.

[0043] S24: Select multiple counterweight schemes corresponding to the uniformly distributed counterweight parameters as candidate counterweight schemes, activate the candidate counterweight scheme corresponding to the first size relationship, and counterweight the target structural component.

[0044] In one embodiment, the multiple counterweight schemes corresponding to the uniformly distributed counterweight parameters include a node mass point addition scheme and a material density adjustment scheme. When the first size relationship is determined to be that the first actual mass is less than the first theoretical mass, the system initiates the node mass point addition scheme. When the first size relationship is determined to be that the first actual mass is greater than the first theoretical mass, the system initiates the material density adjustment scheme. When the first actual mass is equal to the first theoretical mass, no counterweight operation is required.

[0045] In one specific embodiment, in response to a first size relationship where the first actual mass is less than the first theoretical mass, the system obtains the first counterweight nodes in the target structural component. Based on the mass difference between the first actual mass and the first theoretical mass, and the number of first counterweight nodes, it determines the first mass to be added to each first counterweight node, and adds the first mass to be added to each first counterweight node to complete the uniform counterweight distribution. In response to a first size relationship where the first actual mass is greater than the first theoretical mass, the system obtains the actual density of the target structural component. Based on the first actual mass, the actual density, and the first theoretical mass, it determines the theoretical density of the target structural component, and adjusts the actual density of the target structural component to the theoretical density to complete the uniform counterweight distribution.

[0046] The first counterweight node can be created by the platform's underlying basic entity creation function (base.CollectEntities). This involves obtaining a list of identifiers for each created first counterweight node, iterating through the identifier list, and counting the number of first counterweight nodes. After calculating the first mass to be added using a formula, the system iterates through each first counterweight node in the identifier list, creates a mass point on each first counterweight node, and assigns the first mass to be added to the corresponding mass point. Optionally, in one specific implementation, mass points can be added in batches using mass balance or mass point creation commands.

[0047] In one embodiment, determining the first mass to be added to each first counterweight node based on the mass difference between the first actual mass and the first theoretical mass, and the number of first counterweight nodes, includes: dividing the mass difference by the number of first counterweight nodes to obtain the first mass to be added. Before calculating the mass difference between the first actual mass and the first theoretical mass, it can also be determined whether the units of the first actual mass and the first theoretical mass are consistent. If they are inconsistent, the units of the first theoretical mass are converted.

[0048] In one embodiment, determining the theoretical density of the target structural component based on a first actual mass, actual density, and a first theoretical mass includes: multiplying the first theoretical mass by the actual density and dividing by the first actual mass to obtain the theoretical density. The actual density of the structural component is then updated to this theoretical density, thereby reducing the mass of the structural component by scaling the material properties overall. Specifically, a Python script can be used to read the structural component's material property file, modify the target structural component's density key-value pairs, and write them back to the model.

[0049] In this embodiment, candidate counterweight schemes for uniformly distributed counterweights are automatically selected and executed based on size relationships. This achieves fully automated judgment and correction of the uniformly distributed counterweight process, avoiding the tedious process of manually calculating quality differences, node numbers, or density adjustment ratios. It also avoids human errors caused by unit conversion mistakes.

[0050] Please see Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the vehicle structural component counterweight method provided in this application, the method comprising: S31: Obtain the theoretical counterweight parameters of the target structural components of the vehicle.

[0051] S32: Identify the parameter type to which the theoretical counterweight parameters belong.

[0052] In this embodiment, the theoretical counterweight parameters include the second theoretical mass and theoretical center of gravity of the target structural component. The parameter type to which the second theoretical mass and theoretical center of gravity belong is non-uniformly distributed counterweight parameter. This embodiment is used to perform non-uniformly distributed counterweight on the target structural component. Structural components capable of performing non-uniformly distributed counterweight are those with uneven mass distribution and offset center of gravity, such as irregularly shaped structural components with mounting supports, integrated accessories, locally thickened / hollowed-out parts, battery packs, suspension systems, and composite structural components carrying electrical appliances, pipelines, and auxiliary materials.

[0053] For the specific implementation of steps S31-S32, please refer to steps S11 and S12 in the first implementation of the vehicle structural component counterweight method, which will not be repeated here.

[0054] S33: In response to the difference between the second actual mass and the second theoretical mass of the target structural component, and / or the difference between the actual centroid and the theoretical centroid of the target structural component, based on the second actual mass, the second theoretical mass, the actual centroid and the theoretical centroid, determine the second counterweight node in the target structural component and the second mass to be added to each second counterweight node, and add the second mass to each second counterweight node to complete the non-uniform counterweight.

[0055] In one embodiment, after obtaining the theoretical counterweight parameters, it is first determined whether the theoretical counterweight parameters are the same as the actual counterweight parameters. This embodiment only needs to compare whether they are the same, without calculating the difference. If the second actual mass is different from the second theoretical mass, and / or the actual centroid of the target structural component is different from the theoretical centroid, the non-uniformly distributed counterweight process is executed. That is, if either of the two differences exists, the non-uniformly distributed counterweight process is executed. If the second actual mass is the same as the second theoretical mass, and the actual centroid of the target structural component is the same as the theoretical centroid, the non-uniformly distributed counterweight process is not executed.

[0056] In one embodiment, a preset algorithm can be used to determine the second counterweight node in the target structural component and the second mass to be added to each second counterweight node based on the second actual mass, the second theoretical mass, the actual centroid, and the theoretical centroid. The preset algorithm includes, but is not limited to, iterative optimization algorithms (such as constrained genetic algorithms, whale migration algorithms, etc.) and mass balancing tools built into ANSA software (such as the Mass Balance function).

[0057] In one specific embodiment, the built-in mass balancing tool in ANSA software can be used to determine the second counterweight nodes in the target structural component and the second mass to be added to each second counterweight node. The input parameters of the mass balancing tool include the second actual mass, the second theoretical mass, the actual centroid, and the theoretical centroid. This tool iteratively calculates and finds a node mass allocation scheme that allows the overall mass of the structural component model to converge to the second theoretical mass and the overall centroid to the theoretical centroid. Specifically, Python can be used to call the ANSA software's API interface to automatically obtain the second actual mass and actual centroid of the target structural component model and compare them with the input second theoretical mass and theoretical centroid. If a discrepancy exists, the program automatically uses the software's built-in mass balancing tool to determine at least one second counterweight node and the second mass to be added to each second counterweight node, and assigns these mass values ​​in batches to the corresponding second counterweight nodes, thereby correcting the mass characteristics without changing the model's geometry and mesh topology.

[0058] In this embodiment, by using an automated mass balance calculation method to determine the second counterweight node and the second mass to be added to each second counterweight node in the non-uniform counterweight process, it is beneficial to eliminate the tedious process of manually selecting nodes, manually calculating mass differences, and manually allocating mass, thereby further improving the operational efficiency and accuracy of non-uniform counterweight.

[0059] In one specific embodiment, the vehicle structural component counterweight method can be implemented by combining the Python language and ANSA software API commands. After determining the target structural component, the engineer can use a visual interface (such as...) Figure 4 As shown, Figure 4(This is a schematic diagram of one embodiment of the visualization interface provided in this application) Input the theoretical counterweight parameters and click the corresponding "Start" button. The program will automatically identify the parameter type to which the theoretical counterweight parameters belong, start the counterweight scheme corresponding to the parameter type, and counterweight the target structural component.

[0060] When the theoretical counterweight parameters are uniformly distributed (the theoretical counterweight parameters only include the first theoretical mass), the uniformly distributed counterweight scheme is activated. The program automatically identifies the first actual mass of the target structural component, automatically compares the first actual mass with the first theoretical mass. If the first actual mass is less than the first theoretical mass, the program automatically counts the number of nodes in the first counterweight node of the target structural component, converts the input first theoretical mass to units, automatically calculates the mass difference between the first theoretical mass and the first actual mass, and calculates the single-point mass = mass difference / number of nodes. The single-point mass is used as the counterweight mass, and mass points are added to each first counterweight node of the target structural component. If the first actual mass is greater than the first theoretical mass, the program automatically identifies the actual density of the target structural component and calculates the theoretical density = first theoretical mass x actual density of the target structural component, automatically adjusting the actual density of the target structural component to the theoretical density.

[0061] When the theoretical counterweight parameters are non-uniformly distributed (the theoretical counterweight parameters include the second theoretical mass and the theoretical center of mass), the program automatically identifies the second actual mass and the actual center of mass of the target structural component, and compares the second actual mass and the actual center of mass with the second theoretical mass and the theoretical center of mass. If there is an inconsistency, the program calls the massbalance function through the ANSA software API command, using the second actual mass, the actual center of mass, the second theoretical mass, and the theoretical center of mass as the input values ​​for the mass balance function to complete the non-uniformly distributed mass counterweight.

[0062] In the mass balance function, the mass calculation area is fixed as the "display component" (i.e., the target structural component), and the mass balancing method is fixed as "nodes." This means that each time the mass balance function is called, the mass calculation area is always the "display component," and the mass balancing method is always the "nodes." The fixed mass calculation area as the "display component" means that only the portion of the model currently displayed on the screen (i.e., the target structural component) is calculated, along with its center of mass. The mass balancing method as "nodes" means that the counterweight mass is concentrated on one or more specified nodes.

[0063] In other implementations, the mass calculation area and mass balancing method in the mass balance function may not be fixed, or the mass calculation area may be fixed as the "entire model," and the mass balancing method as a "set." Fixing the mass calculation area as the "entire model" means calculating the total mass and center of gravity of the entire model, not just the displayed portion. For example, it calculates the total mass and center of gravity of the entire vehicle, not just the target structural component within the vehicle. Using a "set" for the mass balancing method means evenly distributing the counterweight mass across points within the set. These points are nodes within a pre-selected group of units or components, which may contain multiple structural components.

[0064] The above solution, based on the Python language and ANSA software API interface, encapsulates the entire process of counterweighting, which involves numerous repetitive and tedious operations such as manual measurement, data calculation, parameter comparison, node statistics, unit conversion, and function calls, into a program. Only core theoretical parameters need to be input to complete the counterweighting process with a single click. This completely eliminates the need for repeated manual calculations and iterative adjustments, significantly shortens the modeling cycle for vehicle structural components, adapts to the rapid iteration needs of vehicle R&D, significantly reduces engineers' workload, and improves counterweighting efficiency.

[0065] It is understood that in the above method of specific implementation, the order in which each step is written does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0066] Please see Figure 5 , Figure 5 This is a schematic diagram of the framework structure of one embodiment of the electronic device provided in this application.

[0067] The electronic device 50 includes a memory 51 and a processor 52, which are coupled to each other. The memory 51 stores program instructions, and the processor 52 executes the program instructions stored in the memory 51 to implement the steps of any of the above method embodiments. In a specific implementation scenario, the electronic device 50 may include, but is not limited to, a microcomputer or a server. In addition, the electronic device 50 may also include mobile devices such as laptops and tablets, which are not limited here.

[0068] Specifically, processor 52 controls itself and memory 51 to implement the steps in any of the above method embodiments. Processor 52 may also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 may also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 52 may be implemented using integrated circuit chips.

[0069] Please see Figure 6 , Figure 6 This is a schematic diagram of the framework structure of one embodiment of the computer-readable storage medium provided in this application.

[0070] The computer-readable storage medium 60 stores program instructions 61 that can be executed by a processor, the program instructions 61 being used to implement the steps in any of the above method embodiments.

[0071] The storage media mentioned in this article include: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program code.

[0072] This application also provides a computer program product comprising a computer program that, when executed by a processor, can implement the steps described in any of the foregoing method embodiments. Specifically, the computer program product can be a software or program product containing a computer program, capable of running on a computing device or stored on any available medium.

[0073] If the technical solution of this application involves personal information, the product using this technical solution has clearly informed the user of the personal information processing rules and obtained the user's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using this technical solution has obtained the user's separate consent before processing the sensitive personal information, and also meets the requirement of "express consent". For example, at personal information collection devices such as cameras, clear and prominent signs are set up to inform users that they have entered the scope of personal information collection and that personal information will be collected. If an individual voluntarily enters the collection scope, it is deemed that they have agreed to the collection of their personal information; or on the personal information processing device, with clear signs / information informing users of the personal information processing rules, authorization is obtained from the individual through pop-up information or by asking the individual to upload their personal information; wherein, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the types of personal information processed.

[0074] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for counterweighting vehicle structural components, characterized in that, include: Obtain the theoretical counterweight parameters of the target structural components of the vehicle; Identify the parameter type to which the theoretical counterweight parameters belong, including uniformly distributed counterweight parameters and non-uniformly distributed counterweight parameters; Activate the counterweight scheme corresponding to the parameter type to apply counterweight to the target structural component.

2. The method according to claim 1, characterized in that, There are multiple counterweight schemes corresponding to the same parameter type. Activating the counterweight scheme corresponding to the parameter type to counterweight the target structural component includes: Obtain the magnitude relationship between the theoretical counterweight parameters and the actual counterweight parameters of the target structural component; Multiple counterweight schemes corresponding to the parameter type to which the theoretical counterweight parameters belong are selected as candidate counterweight schemes. The candidate counterweight schemes corresponding to the size relationship are activated to counterweight the target structural component.

3. The method according to claim 2, characterized in that, The theoretical counterweight parameters include the first theoretical mass of the target structural component, and the parameter type of the first theoretical mass is a uniformly distributed counterweight parameter. The activation of the counterweight scheme corresponding to the parameter type, and the application of counterweight to the target structural component, includes: Obtain a first magnitude relationship between the first theoretical mass and the first actual mass of the target structural component; Multiple weight schemes corresponding to the uniformly distributed weight parameters are selected as candidate weight schemes. The candidate weight schemes corresponding to the first size relationship are activated to perform weight adjustment on the target structural component.

4. The method according to claim 3, characterized in that, The step of activating the candidate counterweight scheme corresponding to the first size relationship and counterweighting the target structural component includes: In response to the first size relationship that the first actual mass is less than the first theoretical mass, the first counterweight node in the target structural component is obtained. Based on the mass difference between the first actual mass and the first theoretical mass and the number of the first counterweight nodes, the first mass to be added to each of the first counterweight nodes is determined. The first mass to be added is added to each of the first counterweight nodes to complete the uniform counterweight distribution. In response to the first size relationship that the first actual mass is greater than the first theoretical mass, the actual density of the target structural component is obtained, and based on the first actual mass, the actual density and the first theoretical mass, the theoretical density of the target structural component is determined. The actual density of the target structural component is then adjusted to the theoretical density to complete the uniform weight distribution.

5. The method according to claim 1, characterized in that, The theoretical counterweight parameters include the second theoretical mass and the theoretical centroid of the target structural component, and the parameter type to which the second theoretical mass and the theoretical centroid belong is non-uniformly distributed counterweight parameters; The activation of the counterweight scheme corresponding to the parameter type, and the application of counterweight to the target structural component, includes: In response to the difference between the second actual mass and the second theoretical mass of the target structural component, and / or the difference between the actual centroid and the theoretical centroid of the target structural component, based on the second actual mass, the second theoretical mass, the actual centroid and the theoretical centroid, the second counterweight node in the target structural component and the second mass to be added to each of the second counterweight nodes are determined, and the second mass to be added is added to each of the second counterweight nodes to complete the non-uniform counterweight.

6. The method according to claim 5, characterized in that, The step of determining the second counterweight node in the target structural component and the second mass to be added to each of the second counterweight nodes based on the second actual mass, the second theoretical mass, the actual centroid, and the theoretical centroid includes: The second counterweight node in the target structural component and the second mass to be added to each second counterweight node are determined using a mass balancing tool; wherein the input parameters of the mass balancing tool include the second actual mass, the second theoretical mass, the actual center of mass, and the theoretical center of mass.

7. The method according to claim 1, characterized in that, Before obtaining the theoretical counterweight parameters of the target structural component of the vehicle, the method further includes: In response to a structural component selection instruction, at least one candidate structural component is selected from the candidate structural components of the vehicle as the target structural component.

8. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores program instructions and the processor executes the program instructions to implement the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions that can be executed by a processor to implement the method of any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.