Vehicle suspension KC data analysis management program using method based on Adams secondary development
By developing a vehicle suspension K&C data analysis management program based on Adams' secondary development, using Python language to integrate simulation, data processing, curve drawing and data reporting functions, the problem of cumbersome and error-prone vehicle suspension K&C data analysis in the existing technology is solved, and fast, accurate and unified data analysis is achieved, which improves the efficiency of development work.
Patent Information
- Application Number
- CN202411966437.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-16
AI Technical Summary
In the K&C data analysis of vehicle suspension, the performance indicators for multiple working conditions need to be manually selected and set, which leads to cumbersome steps, time-consuming and error-prone, and it is impossible to view the curve and make judgments in a unified standard.
Develop a vehicle suspension K&C data analysis management program based on Adams' secondary development, using Python language to integrate simulation, data processing, curve drawing and data reporting functions to automatically complete data selection, setting and processing, and generate unified curves and reports.
It realizes fast, accurate and unified analysis of vehicle suspension K&C data, reduces the use requirements for Adams software, reduces data drawing steps, and improves the data management efficiency of developers in development work.
Smart Images

Figure CN120012264A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis methods, and in particular to a method for using a vehicle suspension K&C data analysis management program based on Adams secondary development. Background Art
[0002] Adams is a professional multi-body dynamics simulation software, which is widely used in the fields of automobile, aerospace, heavy industrial machinery, etc. It can simulate and analyze the kinematic and dynamic performance of complex mechanical systems. For the static and dynamic analysis of vehicle suspension, Adams software can be used to build the suspension model, and the suspension and the whole vehicle can be analyzed under specified working conditions according to the analysis requirements. However, after the Adams simulation, the Adams post-processing module needs to be used to view the K&C data of the suspension. In the face of K&C indicators of different working conditions, different selections and settings of post-processing data are required for each performance, and some indicators need to be obtained by formula calculation. However, for the investigation of a vehicle suspension, not only the front and rear suspensions, but also at least twelve working conditions for the front or rear suspensions are investigated, with a total of more than 100 performance indicator data and curves. If the K&C data are selected and set manually, these steps are cumbersome and take a lot of time and effort. Data or curve errors may be caused by negligence of the operator, and it is impossible to use a unified standard to view the curve and judge the suspension. Therefore, it is particularly important to develop a software and method that combines suspension simulation analysis, data processing and export through programming language.
[0003] Python is an interpreted programming language. Python provides efficient high-level data structures and simple and effective object-oriented programming. Python's rich standard library provides source code or machine code suitable for all major system platforms. Adams can be called through the system command of the Windows system, and supports the import of ".cmd" type executable files for simulation. Therefore, an application integrating Adams simulation, K&C data processing, drawing and data reporting is developed based on Python language, making the operation easy, the results easy to understand, and the reports easy to read. It has important practical value and realistic significance to extract K&C data efficiently, accurately and uniformly. After consulting the existing literature and materials, no relevant mature methods for vehicle suspension K&C data analysis management programs and secondary development methods based on Adams secondary development have been found.
[0004] Therefore, it is necessary to design a vehicle suspension K&C data analysis management program based on Adams secondary development to solve the above problems. Summary of the invention
[0005] The purpose of the present invention is to provide a method for using a vehicle suspension K&C data analysis management program based on Adams secondary development to overcome the above-mentioned shortcomings of the current prior art.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A method for using a vehicle suspension K&C data analysis management program based on Adams secondary development, comprising the following steps:
[0008] S1. Select relevant data and complete the simulation: Select the Adams front suspension or rear suspension to be analyzed, and then input the corresponding front suspension and rear suspension parameters into the interface. The software will automatically generate an execution file approved by Adams for executing the simulation input. After submitting the simulation, the Adams software will automatically run and complete the K&C working condition simulation. After the model selection is completed, Python will be used to generate a cmd file that can be recognized by the Adams software according to the simulation execution statements of the respective working conditions based on the input parameters. Then, the Adams software will be started using the Windows system call, and the generated cmd file will be executed in the background to complete the simulation;
[0009] S2. Creation and generation of vehicle model database file: Customize the name to generate a K&C database file of the vehicle model to be generated. In the dialog box corresponding to the suspension working condition, select to input the result file generated by the K&C simulation of the Adams software, and filter the file according to the data prepared in advance in the software to filter out the suspension parameters related to the general K&C analysis indicators, perform data processing, and submit the creation of the database to complete the K&C database file of the vehicle model;
[0010] S3, drawing relevant curves according to the data, by reading the K&C database file generated by the application, and based on the data in the file, generating a curve drawing file with the identified data and its boundaries through background calculation of the application for subsequent curve drawing;
[0011] S4. Edit into data report: Based on the drawn display results, the curve, slope results, and formatted report can be exported to a local file through the export option, and they can all be edited to facilitate vehicle data reporting.
[0012] Preferably, through the interactive interface developed in Python, select the Adams front overhang or rear overhang to be analyzed in the corresponding dialog box, and then select the corresponding Adams version to perform the simulation to meet the simulation requirements of different versions.
[0013] Preferably, the data is obtained by selecting different performance indicators of different working conditions that need to be viewed, and a curve with internationally recognized data direction and style can be generated in the interface to view the performance indicator values and their trends.
[0014] Preferably, when drawing relevant curves, select an Excel database of a front overhang and a rear overhang, that is, the K&C data that needs to be viewed. When loading the database, use Python to first calculate the numerical values of all indicators in the database, identify the boundaries of the drawing curve, save the curve configuration data to the path, and then select the specific K&C working conditions and indicators you want to view. At this time, a K&C curve drawn using the curve configuration data and K&C data will be generated in the drawing area.
[0015] Preferably, when editing into a data report, you can choose the data type of the currently selected database to be exported, which is divided into K&C curve pictures, K&C result summary Excel tables and K&C data PPT reports, and can select working conditions and specific performance indicators according to actual needs.
[0016] The beneficial effects of the present invention are as follows: the technical solution integrates simulation, analysis, data parsing and curve drawing for the method and process of traditional vehicle suspension K&C analysis through a program developed in Python, which can quickly analyze the suspension K&C, reduce the requirements for the use of Adams software in vehicle development, reduce the steps of drawing K&C data, improve the data management of developers in development work, and significantly improve development and work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic flowchart of the workflow of a method for using a vehicle suspension K&C data analysis management program based on Adams secondary development according to the present invention; DETAILED DESCRIPTION
[0018] Reference Figure 1 , a method for using a vehicle suspension K&C data analysis management program based on Adams secondary development, comprising the following steps:
[0019] S1. Select the Adams front suspension or rear suspension to be analyzed, and then input the corresponding front suspension and rear suspension parameters into the interface. The software will automatically generate an Adams-approved execution file for executing the simulation input. After submitting the simulation, the Adams software will automatically run and complete the K&C working condition simulation.
[0020] S2. Generate a K&C database file of the vehicle model to be generated by custom naming. In the dialog box corresponding to the suspension working condition, select and input the result file generated by the K&C simulation of the Adams software, and filter the file according to the data prepared in advance in the software to filter out the suspension parameters related to the general K&C analysis indicators, perform data processing, and submit the creation of the database to complete the K&C database file of the vehicle model;
[0021] S3, by reading the K&C database file generated by the application, based on the data in the file, through the background calculation of the application, a curve drawing file with the identified data and its boundaries is generated for subsequent curve drawing;
[0022] S4. Based on the drawn display results, the curves, slope results, and formatted reports can be exported to local files through the export option, and they can all be edited to facilitate vehicle data reporting.
[0023] Specifically, through the interactive interface developed in Python, select the Adams front overhang or rear overhang to be analyzed in the corresponding dialog box, and then select the corresponding Adams version to perform the simulation to meet the simulation requirements of different versions;
[0024] The specific data is obtained by selecting different performance indicators of different working conditions that need to be viewed, and a curve with internationally recognized data direction and style can be generated in the interface to view the performance indicator values and their trends;
[0025] The specific method for selecting the suspension and the corresponding Adams version is as follows:
[0026] Select the suspension to be analyzed as the developer, build and debug the suspension model that can be used for suspension analysis through Adams software. The model path is in the user-defined model database file; different models may be created by different versions of software, and there is a possibility that the higher version cannot open the lower version of the model. You can use the Adams version selection in the application interface to prompt the software to call different versions of Adams software to start the suspension model. The Adams software startup path needs to be filled in by the user;
[0027] The specific method to automatically generate Adams-approved execution files for suspension simulation is as follows:
[0028] Select the working conditions to be executed through the working conditions defined in the interface, including parallel wheel hop, roll-with stabilizer bar, roll-without stabilizer bar, steering-engine on, steering-engine off, same-direction lateral force, opposite-direction lateral force, same-direction longitudinal force, opposite-direction longitudinal force, same-direction return torque, opposite-direction return torque, etc. In the corresponding working condition dialog box, enter the upper and lower limit values of the corresponding stroke, the corresponding wheel hop position and related simulation options to complete the setting of the simulation working condition;
[0029] After all the working condition parameters are defined, click Submit Simulation. The program will use Python to execute the algorithm in the background, combine the input parameters with the Adams simulation language, generate a command file with Adams software recognized logic, and then call the Windows system program command through Python to further start the corresponding Adams version (that is, selected by selecting the suspension and the corresponding Adams version to select the specific method), execute the command file, and complete the simulation;
[0030] The specific method of filtering the data file and filtering out the suspension parameters related to the general K&C analysis indicators and then creating the database is as follows:
[0031] In the application, the suspension index names for K&C curve drawing are configured, and these suspension index names are selected from the Adams simulation post-processing results. According to the direction and size of the drawing, the data is processed with a corresponding coefficient. According to the input database name, a local document database corresponding to the front or rear overhang is generated, and the user can also edit the data content.
[0032] The specific method of generating a curve drawing file of the identified data and its boundaries is as follows: when loading the local document database, first calculate the numerical values of all indicators in the database, identify the boundaries of the drawing curve, and save the curve configuration data to the path specified by the application;
[0033] The specific methods for viewing different performance indicators under different working conditions and generating curves are as follows:
[0034] Based on the curve drawing file of the identified data and its boundaries, and two files generated by the suspension parameters related to the general K&C analysis indicators, the database data is used to draw the curve, and the curve configuration data is used to set the legend, coordinate axis, etc. of the curve map. The two sets of data are used together to form a complete K&C curve;
[0035] The specific methods for exporting K&C curves, slope results, and formatted reports are as follows:
[0036] By selecting the working conditions and performance indicators to be exported, the drawn K&C curve is converted into .png or .jpg format, and the image is exported to the user-defined local path; or by selecting the working conditions and performance indicators to be exported, the slopes of each K&C curve or key indicator parameters are summarized into a table, and the table is exported to the user-defined local path; or by selecting the working conditions and performance indicators to be exported, the data of each K&C curve, slope or key indicator parameter is exported and transferred to ppt, and then the report is exported to the user-defined local path;
[0037] The specific method of exporting data and transferring it to ppt is as follows:
[0038] Call ppt through Python and generate a new template file, then pass the K&C curve image and K&C indicator summary results to the newly generated ppt file through Python statements, specify the corresponding placement page, and finally save the ppt report to the user-defined local path;
[0039] The specific method of generating a new ppt template file is as follows: the template file is pre-built according to the standards or habits used by the user, mainly for the master version of the ppt. For generating a new template file, it is actually to save a built ppt template file. After transferring the K&C data to the ppt, it is saved to the user-defined path.
[0040] The technical solution of this embodiment is embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium; the specific implementation cases are:
[0041] Step 1: Use the "Select" button to select the suspension model built by Adams, then select the corresponding Adams running version, finally check the simulation conditions and enter the travel and other setting parameters to be analyzed into the dialog box in the boundary settings of the front and rear suspension conditions, and submit the simulation;
[0042] Step 2: After completing the model selection, a cmd file that can be recognized by Adams software will be generated according to the input parameters using Python and the simulation execution statements of each working condition. Then, Adams software will be started using Windows system calls, and the generated cmd file will be executed in the background to complete the simulation.
[0043] Step 3. In the database creation interface, enter the name of the new database and check whether it is repeated with the existing database name in the database, and then select the res files generated by Adams simulation for the front and rear suspensions to their corresponding working conditions. The program will use Python to process all res files and filter out data that is not related to K&C, then save the retained data to an Excel table, and save the Excel table to the set save path with the entered new database name;
[0044] Step 4. In the curve drawing interface, select an Excel database of a front overhang and a rear overhang, that is, the K&C data to be viewed. When loading the database, use Python to first calculate the numerical values of all indicators in the database, identify the boundaries of the drawing curve, save the curve configuration data to the path, and then select the specific K&C working conditions and indicators you want to view. At this time, a K&C curve drawn using the curve configuration data and K&C data will be generated in the drawing area;
[0045] Step 5. You can use the curve configuration dialog box of the front and rear overhangs to adjust the slope fitting range and the X and Y axis coordinate range of the front and rear overhangs. You can also use Python to save these parameters to the configuration file in step 4, so that you can load and use them next time without having to adjust them again.
[0046] Step 6. After the K&C database is selected and the drawing configuration is loaded, you can click the Export button to select the data type of the currently selected database to be exported, which is divided into K&C curve pictures, K&C result summary Excel tables and K&C data PPT reports. You can select working conditions and specific performance indicators according to actual needs;
[0047] The benefits of the present invention are that the technical solution integrates simulation, analysis, data parsing and curve drawing for the method and process of traditional vehicle suspension K&C analysis through a program developed in Python, which can quickly analyze the suspension K&C, reduce the requirements for the use of Adams software in vehicle development, reduce the steps of drawing K&C data, improve the data management of developers in development work, and significantly improve development and work efficiency.
[0048] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for using a vehicle suspension K&C data analysis management program based on Adams secondary development, characterized in that: It includes the following steps: S1. Select relevant data and complete the simulation: Select the Adams front suspension or rear suspension to be analyzed, and then input the corresponding front suspension and rear suspension parameters into the interface. The software will automatically generate an execution file approved by Adams for executing the simulation input. After submitting the simulation, the Adams software will automatically run and complete the K&C working condition simulation. After completing the model selection, Python will be used to generate a cmd file that can be recognized by the Adams software according to the simulation execution statements of the respective working conditions based on the input parameters. Then, the Adams software will be started using the Windows system call, and the generated cmd file will be executed in the background to complete the simulation; S2. Creation and generation of vehicle model database file: Customize the name to generate a K&C database file of the vehicle model to be generated. In the dialog box corresponding to the suspension working condition, select to input the result file generated by the K&C simulation of the Adams software, and filter the file according to the data prepared in advance in the software to filter out the suspension parameters related to the general K&C analysis indicators, perform data processing, and submit the creation of the database to complete the K&C database file of the vehicle model; S3, drawing relevant curves according to the data, by reading the K&C database file generated by the application, and based on the data in the file, generating a curve drawing file with the identified data and its boundaries through background calculation of the application for subsequent curve drawing; S4. Edit into data report: Based on the drawn display results, the curve, slope results, and formatted report can be exported to a local file through the export option, and they can all be edited to facilitate vehicle data reporting.
2. The method for using the vehicle suspension K&C data analysis management program based on Adams secondary development according to claim 1, characterized in that: Through the interactive interface developed in Python, select the Adams front overhang or rear overhang to be analyzed in the corresponding dialog box, and then select the corresponding Adams version to perform the simulation to meet the simulation requirements of different versions.
3. The method for using the vehicle suspension K&C data analysis management program based on Adams secondary development according to claim 1, characterized in that: The data is obtained by selecting different performance indicators of different working conditions that need to be viewed, and a curve with internationally recognized data direction and style can be generated in the interface to view the performance indicator values and their trends.
4. The method for using the vehicle suspension K&C data analysis management program based on Adams secondary development according to claim 1, characterized in that: When drawing relevant curves, select an Excel database of a front overhang and a rear overhang, that is, the K&C data you need to view. When loading the database, use Python to first calculate the numerical values of all indicators in the database, identify the boundaries of the drawing curve, and save the curve configuration data to the path. Then you can select the specific K&C working conditions and indicators you want to view. At this time, a K&C curve drawn using the curve configuration data and K&C data will be generated in the drawing area.
5. The method for using the vehicle suspension K&C data analysis management program based on Adams secondary development according to claim 1, characterized in that: When editing into a data report, you can select the data type to export from the currently selected database, which is divided into K&C curve images, K&C result summary Excel tables and K&C data PPT reports. You can select working conditions and specific performance indicators according to actual needs.