CN114282301A - K & C simulation analysis method and device for automobile suspension - Google Patents

K & C simulation analysis method and device for automobile suspension Download PDF

Info

Publication number
CN114282301A
CN114282301A CN202111383066.XA CN202111383066A CN114282301A CN 114282301 A CN114282301 A CN 114282301A CN 202111383066 A CN202111383066 A CN 202111383066A CN 114282301 A CN114282301 A CN 114282301A
Authority
CN
China
Prior art keywords
simulation
file
working condition
template
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111383066.XA
Other languages
Chinese (zh)
Inventor
王秋来
张泽阳
周波
孙海英
宫熔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Group Co Ltd
Original Assignee
Dongfeng Motor Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
Priority to CN202111383066.XA priority Critical patent/CN114282301A/en
Publication of CN114282301A publication Critical patent/CN114282301A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for K & C simulation analysis of an automobile suspension, wherein the method comprises the following steps: acquiring a preset basic information template and a preset working condition template; generating a file header of the simulation working condition according to the basic information template and a file body of the simulation working condition according to the working condition template aiming at each simulation working condition; generating a solving file of the simulation working condition according to the file header and the file body; according to the file information of the solving files of the plurality of simulation working conditions, a batch processing file and a command driving file are constructed; and starting ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files, and outputting simulation analysis results. The method of the invention does not need manual adjustment and simulation in the whole simulation process, can realize batch simulation calculation and customized output, greatly improves the efficiency and reliability of a large amount of simulation calculation in the field of vehicle engineering, and reduces simulation errors.

Description

K & C simulation analysis method and device for automobile suspension
Technical Field
The invention relates to the technical field of simulation, in particular to a method and a device for analyzing K & C simulation of an automobile suspension.
Background
The automobile suspension K & C simulation analysis working conditions are 8-10 (classified according to the suspension form and the driving condition), more than 120 output indexes and more than 90 curve graphs, manual input and output are achieved, and the working efficiency is low. The traditional suspension K & C Analysis method is to open a suspension model in ADAMS (Automatic Dynamic Analysis of Mechanical Systems, Automatic Analysis of Mechanical system dynamics); then, each working condition needs to be manually input once, and then the model is calculated once; and sequentially selecting suspension K & C characteristic curves corresponding to the indexes through a post-processing window of software, manually calculating values of the indexes, and manually outputting the curves. Manually compiling the simulation report, wherein the manual compilation comprises index and numerical value writing, and manually pasting a curve graph into the report; and comparing bidding analysis with a target value manually, searching an index value of the competitive model, and defining a range. The optimization work is realized by carrying out joint simulation with Isight software, manually editing a software calling program, defining variables, constraints, targets and the like. Therefore, the problems of large simulation workload, complex operation and more repetitive work exist in the conventional K & C simulation analysis work of the automobile suspension; therefore, errors are easy to occur and error correction is difficult in the simulation analysis process. Moreover, the existing simulation analysis has more manual operations and low simulation working efficiency; and the simulation analysis of manual operation also causes that the simulation analysis result has strong dependence on the simulation personnel, and different simulation personnel can generate different simulation results.
In summary, the problems existing in the current K & C simulation analysis work of the automobile suspension are low simulation efficiency and poor reliability.
Disclosure of Invention
In view of the above problems, the invention provides a method and a device for analyzing K & C simulation of an automobile suspension, which can realize batch simulation calculation and customized output, greatly improve the efficiency and reliability of a large amount of simulation calculations in the field of vehicle engineering, and reduce simulation errors.
In a first aspect, the present application provides the following technical solutions through an embodiment:
a K & C simulation analysis method for an automobile suspension comprises the following steps:
acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition; generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition; generating a solving file of the simulation working condition according to the file header and the file body; according to the file information of the solving files of the plurality of simulation working conditions, a batch processing file and a command driving file are constructed; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute; and starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files, and outputting simulation analysis results.
Optionally, the generating the file header of the simulation working condition according to the basic information template, and generating the file body of the simulation working condition according to the working condition template include:
constructing a compensation function; the compensation function is used for generating a space character; generating a file header of the simulation working condition according to the compensation function and the basic information template; the compensation function is used for aligning the data length in the file header; generating a file body of the simulation working condition according to the compensation function and the working condition template; the compensation function is used to align the data length in the file body.
Optionally, the generating the file header of the simulation working condition according to the compensation function and the basic information template includes:
acquiring a file header template; replacing variables in the file header template with first target variables corresponding to the simulation working condition according to the basic information template and the simulation working condition; and using the compensation function to fill up the data length of the first target variable to obtain the file header of the simulation working condition.
Optionally, the generating the file body of the simulation working condition according to the compensation function and the working condition template includes:
acquiring a file body template; replacing variables in the file body template with second target variables corresponding to the simulation working conditions according to the working condition template and the simulation working conditions; and using the compensation function to fill up the data length of the second target variable to obtain a file body of the simulation working condition.
Optionally, the command driver file includes: solving a scheduling file and an output definition file; the step of starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files and outputting simulation analysis results comprises the following steps:
starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the solving scheduling files to obtain working condition simulation data; the solving scheduling file is used for scheduling the solving file to execute simulation analysis; outputting a simulation analysis result according to the output definition file and the working condition simulation data; the output definition file is used for defining parameters in the output simulation analysis result, the definition of the parameters and the format of the parameters.
Optionally, the output simulation analysis result is in an xlsx format; after the ADAMS software is started to perform batch simulation calculation on the solving files of the plurality of simulation conditions according to the batch processing files and the command driver files and a simulation analysis result is output, the method further includes:
constructing a coordinate system to be assigned; the coordinate system to be assigned is an x-y coordinate system; determining an x coordinate parameter, a y coordinate parameter, a maximum value and a minimum value corresponding to the x coordinate parameter and a maximum value and a minimum value corresponding to the y coordinate parameter from the simulation analysis result; respectively determining a plurality of coordinate data with equal time step in the column of the x coordinate parameter and the column of the y coordinate parameter; assigning the maximum value and the minimum value corresponding to the x coordinate parameter, the maximum value and the minimum value corresponding to the y coordinate parameter and the plurality of coordinate data to the coordinate system to be assigned, and obtaining the visual image of the simulation analysis result.
In a second aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment:
a vehicle suspension K & C simulation analysis device, comprising:
the acquisition module is used for acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition; the first construction module is used for generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition; the second construction module is used for generating a solving file of the simulation working condition according to the file header and the file body; the third construction module is used for constructing batch processing files and command driving files according to the file information of the solving files of the plurality of simulation working conditions; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute; and the simulation solving module is used for starting the ADAMS software to carry out batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files and outputting simulation analysis results.
Optionally, the first building module is further specifically configured to:
constructing a compensation function; the compensation function is used for generating a space character; generating a file header of the simulation working condition according to the compensation function and the basic information template; the compensation function is used for aligning the data length in the file header; generating a file body of the simulation working condition according to the compensation function and the working condition template; the compensation function is used to align the data length in the file body.
Optionally, the first building module is further specifically configured to:
acquiring a file header template; replacing variables in the file header template with first target variables corresponding to the simulation working condition according to the basic information template and the simulation working condition; and using the compensation function to fill up the data length of the first target variable to obtain the file header of the simulation working condition.
In a third aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment:
an electronic device comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of the first aspects above.
According to the method and the device for the K & C simulation analysis of the automobile suspension, the batch automatic manufacturing of the solution files is realized by setting the basic information template and the working condition template; then, based on the prepared solving file, generating a corresponding batch processing file and a command driving file to realize automatic starting of ADAMS software, and scheduling the solving file to perform batch simulation analysis; and because the command driving file is adopted, the simulation analysis result required by the user can be further output in a customized manner. Therefore, the method of the embodiment does not need manual adjustment and simulation in the whole simulation process, can realize batch simulation calculation and customized output, greatly improves the efficiency and reliability of a large amount of simulation calculation in the field of vehicle engineering, and reduces simulation errors.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart illustrating a simulation analysis method for a suspension K & C according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating parameter and document processing of a simulation analysis method for a vehicle suspension K & C according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the structure of a simulation interface design according to an embodiment of the present invention;
FIG. 4 is a diagram showing a partial code structure of a file header in the embodiment of the present invention;
FIG. 5 is a diagram illustrating a partial code structure of a file body according to an embodiment of the present invention;
FIG. 6 is a partial code structure diagram illustrating solving a dispatch file in an embodiment of the invention;
FIG. 7 is a diagram illustrating a partial code structure of an output definition file according to an embodiment of the present invention;
FIG. 8 is a schematic diagram showing simulated output wheel angle versus Ackerman percent in an embodiment of the present invention;
FIG. 9 is a schematic diagram showing lateral roll displacement output after simulation in an embodiment of the present invention;
FIG. 10 shows a schematic representation of simulated and experimental values of front overhang vertical stiffness in an embodiment of the present invention;
FIG. 11 is a diagram illustrating comparison between the effect of the existing simulation method and the effect of the method of the present invention in the embodiment of the present invention;
fig. 12 is a functional module structure diagram of a simulation analysis apparatus for vehicle suspension K & C according to yet another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the embodiment of the invention, an ADAMS software can be used for application, an external interface program can be developed based on a C # language, parameters of a related working condition control file can be modified based on the external interface program, and a bat script command and a cmd command file are used for driving an ADAMS/CAR solver to perform related calculation, so that the steps of the method for analyzing the K & C simulation of the automobile suspension in the embodiment of the invention are realized. The method and apparatus of the present invention are described in detail and illustrated by a specific example below.
Referring to fig. 1, in an embodiment of the present invention, a method for simulation analysis of a suspension K & C of a vehicle is provided, the method including:
step S10: acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition;
step S20: generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition;
step S30: generating a solving file of the simulation working condition according to the file header and the file body;
step S40: according to the file information of the solving files of the plurality of simulation working conditions, a batch processing file and a command driving file are constructed; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute;
step S50: and starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files, and outputting simulation analysis results.
According to the method for the simulation analysis of the automobile suspension K & C, through the steps S10-S50, the solution file can be generated through the preset basic information template and the preset working condition template, and then the corresponding batch processing file and the command driving file are constructed according to the solution file, so that the automatic scheduling and solution analysis of the solution file are achieved; and finally, executing the batch processing files to finish batch solving of the solving files under different working conditions. Referring to fig. 2, fig. 2 is a flow chart illustrating parameter and file processing of the method according to the embodiment; the implementation of each step is explained in detail below.
Step S10: acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition.
Step S20: and generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition.
In steps S10 and S20, Excel may be used as a background database, so as to construct a preset basic information template and a preset condition template. When the basic information template and the working condition template are constructed, construction can be carried out according to different vehicle basic parameters, for example, vehicle types and suspension K & C parameter definitions; the vehicle types are divided into suspension types (front suspension and rear suspension) and driving types (front driving, rear driving and four-wheel driving), and suspension K & C parameters include but are not limited to front suspension axle load, rear suspension axle load, steering wheel maximum rotation angle, front suspension wheel bounce jump limit, rear suspension wheel bounce jump limit, front suspension wheel bounce limit, rear suspension wheel bounce limit, axle base, front suspension wheel base, rear suspension wheel base, front suspension side inclination minimum, rear suspension side inclination minimum, front suspension side inclination maximum, rear suspension side inclination minimum, and the like. Corresponding basic information templates and square working condition templates can be constructed through the whole vehicle types and parameters.
In addition, the selection and storage path of the model also needs to be determined. Specifically, a selection entry of an ADAMS model of a given automobile suspension K & C simulation; a storage path of a K & C simulation result of the automobile suspension is given; and giving a file prefix of a K & C simulation result of the automobile suspension.
The various simulated conditions in the basic information template include, but are not limited to, a homodromous moment, a counter-homodromous moment, a braking force, a biased lateral force, a homodromous lateral force, a counter-lateral force, a vertical homodromous wheel slip, a roll, a steering, a driving force, and the like. Description information of the simulation working condition comprises a plurality of variable quantities under the simulation working condition; when a file header needs to be constructed, according to the basic information template and the simulation working condition, replacing the variable in the preset file header template with the first target variable corresponding to the simulation working condition. The file header is a basic information description line of the solved file, so the line number is fixed, but the content and the line number of the file header of the solved file under different working conditions are different; the content structures of the file headers corresponding to different working conditions are basically the same. Therefore, when the file header is constructed, only the amount which needs to be changed is replaced, and other parts are consistent with the corresponding parts of the file header of the source template.
The working condition template is provided with data variables corresponding to the variables in the file header and specific settings thereof; that is, the condition template stores: specific working condition data comprises working condition parameters and working condition rule definitions; specific performance indexes comprise performance indexes and calculation rules corresponding to working conditions; and the curve data of the working conditions comprises various curves corresponding to the working conditions and drawing rules of each curve. The working condition template is an EXCEL template.
For example, three sheet pages of condition data, performance indicators, and curve data for the conditions may be set in an EXCEL template.
For the sheet page where the working condition data is located, the following steps may be included:
working condition table: sequence number, simulation condition, input form, left minimum, left maximum, right minimum, right maximum, step length field.
Simulation working conditions are as follows: different driving types and suspension types have different working conditions, and the working conditions are clearly defined in the table, such as the simulation working conditions of the front suspension including vertical equidirectional wheel jump, roll, steering, driving force, braking force, equidirectional return-positive moment, reverse return-positive moment, equidirectional lateral force, reverse lateral force and offset lateral force
Left min, left max, right min, right max: a certain data relation exists between the four field data and the basic parameters of the automobile, and can be set in a cell of the sheet, for example, the 'left minimum' of the braking force of the front suspension simulation working condition is 0.5 × 9.8 × 0.5 × C15 × 1, wherein the C15 cell is the front suspension load;
step length of vertical equidirectional wheel jump working condition: 160;
step length of other working conditions: 100.
for the output performance index sheet, it may include:
a performance index sheet describes performance index templates required to be output under all working conditions; the performance index extracted from the simulation output result file indirectly gives the value range, the corresponding x and y coordinates, the corresponding simulation result variable and the included calculation formula from the result file. The performance index template of the front suspension equidirectional jumping working condition (vertical equidirectional wheel jumping of the front suspension) is shown in the following table 1:
TABLE 1 front overhang equidirectional jump working condition performance index template
Figure BDA0003366325590000081
For a curve data sheet page, outputting a curve sheet page to describe specific curves which need to be output under all working conditions; the template of the curve data sheet page aims to search a curve to be drawn according to working conditions in the automatic curve drawing process, and give a variable and a unit of a simulation output result corresponding to an x coordinate of the curve and variable and unit information of the simulation output result corresponding to a y coordinate of the curve. The curve data gives corresponding working conditions, curve names, x coordinates, units, Y coordinates, units and remark information; the output curve template of the same-direction jump (vertical same-direction wheel jump) working condition is shown in the following table 2:
TABLE 2 vertical equidirectional wheel jump curve data template
Figure BDA0003366325590000082
It should be noted that, in order to adapt to the construction of the template and the solution file in the present embodiment, an operation interface may be redesigned, as shown in fig. 3. The following interfaces or keys are defined:
and (3) type selection: vehicle type (passenger car, military vehicle, off-road vehicle); suspension types (front suspension, rear suspension);
type definition: suspension type (front suspension, rear suspension), drive type (front drive, rear drive, four-wheel drive);
suspension K & C parameter definition: the suspension device comprises a front suspension axle load, a rear suspension axle load, a steering wheel maximum rotation angle, a front suspension wheel jump-up limit, a rear suspension wheel jump-up limit, a front suspension wheel jump-down limit, a rear suspension wheel jump-down limit, an axle base, a front suspension wheel base, a rear suspension wheel base, a front suspension side inclination angle minimum value, a rear suspension side inclination angle minimum value, a front suspension side inclination angle maximum value and a rear suspension side inclination angle maximum value; the maintenance of the parameters provides two modes of manual entry and automatic import;
model selection entry: an ADAMS model selection inlet of suspension K & C simulation;
calculating a working condition selection path: storing position entry definitions of all output result files of suspension K & C simulation;
prefix definition of a simulation result file: file prefixes of all output results of suspension K & C simulation;
importing basic parameters: (automobile suspension K & C simulation analysis working condition template) EXCEL template selection inlet;
function button: the four function buttons comprise generating a solution file, submitting calculation, (performance) index output and outputting a report.
Further, taking vertical equidirectional jump (denoted as try _ pp.lcf in this embodiment) as an example, the file header variation (i.e. the first target variable) of the vertical equidirectional jump condition includes: setting a total step length (nsteps), setting a vertical wheel jump (bump _ disp) and setting a horizontal rebound wheel jump (bound _ disp); wherein:
nsteps: the total step length is derived from the setting of the step length in the working condition template file EXCEL. sheet1 (taking the record in EXCEL. sheet1 as an example);
bump _ disp: vertical wheel jump, if the wheel jump is front overhang, the value is from the setting of the maximum value (pp _ Lmax) of the left wheel vertical jump in the working condition template file EXCEL. sheet 1; if the rear overhang is achieved, the value of the rear overhang is derived from the setting of the maximum vertical runout value (pp _ Rmax) of the right wheel in the working condition template file EXCEL. sheet 1;
bound _ disp: vertical rebound wheel jump, if the wheel jump is front overhang, the value is from the setting of the minimum value (pp _ Lmin) of the left wheel vertical jump in the working condition template file EXCEL. sheet 1; and if the rear overhang is achieved, the value is derived from the setting of the minimum vertical runout value (pp _ Rmix) of the right wheel in the working condition template file EXCEL.
Furthermore, after the replacement of the variable in the file header is completed, a preset compensation function can be adopted to complement the data length of the first target variable, and the data length can be complemented in a mode of adding space marks, so that the file header of the simulated working condition is obtained. The data length is preset, and the alignment of the replacement data is constrained to meet the alignment requirement of ADAMS software on a solution file by corresponding the data length, so that errors in the simulation process are avoided. The compensation function can be implemented as follows:
Figure BDA0003366325590000101
the file header of the completed construction can be referred to fig. 4.
The file body is a data part of the solved file, namely the body of the solved file. The time step increment is determined by the total step length set value and the initial line set value together, and the time step increments of solving files under different working conditions are different and need to be calculated according to the total step length set value and the initial line set value; and the specific data is obtained by calculation according to specific parameters related to different working conditions.
Similarly, when a file body is constructed, a preset file body template is adopted for variable replacement; specifically, according to the working condition template and the simulation working condition, the variable in the file body template is replaced by a second target variable corresponding to the simulation working condition, and other parts of the template are kept unchanged. Taking the file body of the vertical equidirectional wheel jump as an example, the data variables (i.e. the second target variables) of the file body may include: left wheel hop (whl _ z _ l), and right wheel hop (whl _ z _ r). Further, the file volume data is a series of data in which left and right wheel jumps change with the increment of the time step. Wherein:
total file step size: the total step length is obtained from the setting of the step length in the working condition template file EXCEL.
Time step increment: intstep/D _ step; wherein, intstep is the initial line set value; d step is the overall step setting.
whl _ z _ l, whl _ z _ R: left wheel jump and right wheel jump.
For the vertical equidirectional wheel jump condition: whl _ z _ l whl _ z _ R.
If the front overhang is achieved, whl _ z _ l is whl _ z _ R is D _ pp _ Lmin + tmpstep; the D _ pp _ Lmin is derived from a minimum value of a vertical equidirectional wheel jump and a left wheel jump set correspondingly by a front overhang in a working condition template file EXCEL. sheet 1; tmpstep is the time step increment; j current cycle count.
If the rear overhang condition is adopted, whl _ z _ l is whl _ z _ R is D _ pp _ Rmin + tmpstep; the D _ pp _ rmin is derived from the setting of the minimum value of the vertical equidirectional wheel jump and the right wheel jump corresponding to the front overhang in the working condition template file EXCEL. sheet 1; the construction and generation of other data variables can refer to the above process, and are not described in detail in this embodiment.
Furthermore, after the replacement of the variables in the file body template is completed, the data length of the second target variable is filled up by adopting a compensation function, so that the file body of the simulation working condition is obtained. The data length is supplemented through the compensation function, so that the ADAMS software can be guaranteed to effectively identify the second target variable, and error reporting in the simulation process is avoided.
The completed constructed file body can be seen in fig. 5.
After the construction of the file header and the file body is completed, step S30 is then performed.
Step S30: and generating a solving file of the simulation working condition according to the file header and the file body.
In step S30, the constructed file header and file body may be merged into a new file x. lcf; in this embodiment, the calculation file may be prefix _ try _ pp.lcf, that is, a solution file for vertical equidirectional wheel jump.
Through the steps S10-S30, the automatic construction of the solution file can be realized according to different simulation working conditions, variable replacement is carried out based on a preset template during the construction process, and the construction efficiency is high and the construction speed is high. And a specific data completion mode is also provided, automatic data completion is realized in the construction process, and errors caused by manual input are avoided, so that the simulation process and the simulation result are prevented from being influenced.
Step S40: according to the file information of the solving files of the plurality of simulation working conditions, a batch processing file and a command driving file are constructed; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute.
In step S40, after the construction of the solution file is completed, the solution file needs to be automatically processed, and a corresponding batch file and a command driver file need to be built. After the solving file is obtained, file information corresponding to the solving file, such as a storage path, a file name, a file format and the like, is generated; thus, the construction of batch processing files and command driven files can be done based on this. In this embodiment, the batch file may be a bat batch file, and the batch file includes a background start command of the ADAMS software, and a file name and a file position of the command-driven file. When the batch files are executed, the ADAMS software can be started through the background starting command, and the command driving file is called to execute so as to drive the ADAMS software to respectively solve the solving files corresponding to different simulation working conditions. Part of the codes are as follows: d \ MSC. software \ Adams _ x64\2008r1\ common \ mdi. bat acar ru-acar b try _ kc. cmd e; step S50 is then performed. In addition, the Command driver file may be a Command file, in which the scheduling rules for the solution file are included, and specifically, the file contains all solution files to be submitted for computation.
In the embodiment, the ADAMS software is driven by the batch file and the command driver file to perform batch solution file simulation, so that different scheduling modes and different output modes can be configured by flexibly configuring the batch file and the command driver file. Specifically, further explanation is made in step S50.
Step S50: and starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files, and outputting simulation analysis results.
In step S50, the batch file may be executed first, the background starts the ADAMS software, and the command driver file is called to execute the batch file. The command driven file may specifically include a solution schedule file and an output definition file. For example, try _ kc.cmd (solving scheduling file) and results.cmd (output definition file) included for the Command file in the present embodiment. the try _ kc.cmd is used for scheduling the solving file to execute simulation analysis; specifically, try _ kc.cmd includes scheduling of a solution file and condition output according to a specific format of ADAMS software, and also includes scheduling of a definition file of results output by results, and part of codes are shown in fig. 6. Cmd is used for defining parameters in the output simulation analysis result, the definition of the parameters and the format of the parameters, and part of codes are shown in fig. 7.
Therefore, the specific implementation of step S50 is: firstly, starting ADAMS software to carry out batch simulation calculation on solving files of a plurality of simulation working conditions according to batch processing files and solving scheduling files to obtain working condition simulation data; and then, outputting a simulation analysis result according to the output definition file and the working condition simulation data. The working condition simulation data can be a total result of simulation analysis and can be stored as a result file; since the ADAMS software driver is executed by the command driver file in the present embodiment, the required result can be output by configuring the output definition file in the command driver file. For example, the specified parameters are output in a specified format. The output form of the simulation analysis result can be flexibly limited by outputting the definition file, so that the subsequent reprocessing efficiency is improved; the reprocessing of the simulation analysis result comprises graph drawing, report output and the like. The simulation analysis result may be output for specified data provided in the working condition simulation data, or output some data according to a preset format, without limitation.
Specifically, direct performance index variables (performance indexes that can be extracted directly from the result file): can be directly extracted from the result file of the suspension K & C simulation; indirect performance index variable (performance index not directly extractable from the result file): according to a method for calculating the specified indirect performance index variable in a performance index sheet of a working condition template (EXCEL) of suspension K & C simulation analysis, extracting the corresponding variable from a suspension K & C simulation result file, and calculating and acquiring the corresponding variable.
For example, the front suspension anti-braking point head angle change rate performance index calculation formula of the front suspension same-direction jumping working condition is as follows: atan (wheel _ travel _ base/wheel _ travel) × 180/pi (); wherein: 2 variables in the result file output by the wheel _ travel _ base and wheel _ travel simulation.
Continuing with the previous suspension same-direction wheel jump working condition as an example, the performance indexes required to be output under the working condition comprise 15 items in total: the front suspension wheel comprises a front suspension vertical (wheel center) rigidity, a front suspension wheel jump (wheel center) steering, a front wheel corner @ (wheel center) compression of 50mm, a front wheel corner @ (wheel center) stretching of 50mm, a front suspension wheel jump (wheel center) camber angle, a front wheel camber angle @ (wheel center) compression of 50mm, a front wheel camber angle @ (wheel center) stretching of 50mm, a front suspension wheel jump (wheel center) rolling angle, a front suspension wheel jump (wheel center) transverse displacement, a front suspension wheel jump (wheel center) longitudinal displacement, a front suspension vertical (ground) rigidity, a front suspension anti-braking point angle @0mm, a front suspension anti-braking point angle variation rate, a front suspension roll center height of 0mm and a front suspension roll center height variation rate. The corresponding simulation analysis results are: tab, result _ pp.
Further, in this embodiment, the output simulation analysis result may be converted into an xlsx format through an output definition file, so as to facilitate subsequent visual output. In this embodiment, the conversion from result _ pp.tab to result _ pp.xlsx is specifically as follows:
front overhang vertical (wheel center) stiffness INDEX (LINEST (result _ pp! C48: C68, result _ pp! A928: A948),1)
Front overhang wheel jump (hub) steering INDEX (LINEST (result _ pp! A708: A728, result _ pp! A928: A948),1) × 100 front wheel angle @ (hub) compression 50mm ═ result _ pp! A668-result _ pp! A718
Front wheel turning angle @ (wheel center) stretching 50mm ═ result _ pp! A768-result _ pp! A718
Camber angle of front suspension wheel jump (wheel center)
=INDEX(LINEST(result_pp!A488:A508,result_pp!A928:A948),1)*100
Camber angle @ (wheel center) compression 50mm ═ result _ pp! A448-result _ pp! A498
Camber angle @ (wheel center) stretch 50mm ═ result _ pp! A548-result _ pp! A498
Front suspension wheel jump (wheel center) rolling angle
=INDEX(LINEST(result_pp!A598:A618,result_pp!A928:A948),1)*100
Transverse displacement of front suspension wheel
=INDEX(LINEST(result_pp!A1148:A1168,result_pp!A928:A948),1)*10
Longitudinal displacement of front suspension wheel
=INDEX(LINEST(result_pp!A1038:A1058,result_pp!A928:A948),1)*10
Front overhang vertical (ground) stiffness result pp! A828
Front overhang resistance braking point head angle @0mm ═ result _ pp! E1048
Front overhang resistance braking point angle rate of change
=INDEX(LINEST(result_pp!E1038:E1058,result_pp!A928:A948),1)*100
Front suspension center height @0mm ═ result _ pp! B278
Rate of change of height of front overhang roll center
=INDEX(LINEST(result_pp!B268:B288,result_pp!A928:A948),1)
Finally, the 15 performance index data obtained are shown in table 3 below.
Table 3 result _ pp.xlsx middle front overhang vertical same direction wheel jump performance index data
Figure BDA0003366325590000141
It should be noted that: after result _ pp.tab is converted to result _ pp.xlsx, the 15 performance indicators can be calculated from the result _ pp.xlsx data. Wherein: C48C 68 is data from row 48 to row 68, column C in result _ pp.xlsx; a928: A948 refers to the data from line 928 to line 948 and column A in result _ pp.xlsx; a Linest () linear regression function, which performs linear regression calculation on a series of scattered points; the above implementation is only an exemplary illustration, and the corresponding relationship of the rows and columns may be adjusted correspondingly in different situations. The performance indexes of other simulation working conditions can be analogized according to the implementation process.
Further, in this embodiment, for the simulation analysis result, a process of automatically drawing a graph and automatically outputting a report is also provided. Therefore, the automatic processing of the whole simulation flow is realized, and the processing efficiency is improved; the manual participation in the processing process is avoided, and the accuracy of processing the simulation analysis result is ensured.
Specifically, the output simulation analysis result in this embodiment can be converted into an xlsx format through an output definition file. The performance indexes in the working condition template comprise output performance indexes, units, x coordinates, y coordinates, slope fitting intervals and the like corresponding to different working conditions. Therefore, the output definition file can be configured to further output the visualized result, and the principle is as follows:
firstly, constructing a coordinate system to be assigned; the coordinate system to be assigned is an x-y coordinate system;
then, determining an x coordinate parameter, a y coordinate parameter, a maximum value and a minimum value corresponding to the x coordinate parameter, and a maximum value and a minimum value corresponding to the y coordinate parameter from the simulation analysis result;
secondly, respectively determining a plurality of coordinate data with equal time step in a column of the x coordinate parameter and a column of the y coordinate parameter;
and finally, assigning the maximum value and the minimum value corresponding to the x coordinate parameter, the maximum value and the minimum value corresponding to the y coordinate parameter and a plurality of coordinate data to a coordinate system to be assigned to obtain a visual image of a simulation analysis result. During assignment, the maximum value and the minimum value corresponding to the x coordinate parameter and the maximum value and the minimum value corresponding to the y coordinate parameter can be respectively used as visual coordinate intervals; and then, assigning values to the plurality of coordinate data, and fitting straight lines or curves according to a preset rule to obtain a visual image. By the method, curve generation of different performance indexes and comparison of the same performance index of different times of simulation can be realized for the same working condition.
Continuing with the vertical co-directional wheel jump of the front suspension as an example, the vertical (wheel center) stiffness curve of the front suspension is generated as follows:
in result _ pp.xlsx, extracting x coordinate (wheel _ travel: round trip), y coordinate (hub _ force: vertical), slope and slope fitting interval (+ -10 mm); defining an X-axis distance (interval _ X) as 20 and a y-axis distance (interval _ y) as 1000; according to the parameters corresponding to the curve x coordinate and the y coordinate of the working condition template, the x coordinate is wheel _ travel and the y coordinate is hub _ force; positioning the line of hub _ force, where _ travel in result _ pp.xlsx, and finding out the corresponding values of the two equal time step lengths; calculating the maximum value and the minimum value of the x axis and the y axis; defining an axis starting value of the curve X, Y; defining a curve name; assigning the positioned hub _ force value to a Y-axis column value; assigning the located wheel _ travel value to an x axis column value; finally, visualizing the curve; and automatically generating a jpg format picture for saving the generated curve chart object so as to be pasted into the simulation report automatically.
Other curves, such as front suspension wheel jump (wheel center) steering (as shown in fig. 8), front suspension wheel jump (wheel center) camber angle, front suspension wheel jump (wheel center) roll angle, front suspension wheel jump (wheel center) lateral displacement (as shown in fig. 9), front suspension wheel jump (wheel center) longitudinal displacement, front suspension anti-braking point angle change rate, and front suspension roll center height change rate, are drawn in the same way as above.
Furthermore, after the simulation analysis result is obtained by adopting the method of the embodiment, the benchmarking optimization of simulation and experiment on the simulation analysis result can be realized. The method comprises the following steps:
first, the performance index and the curve are normalized.
In a simulation report PPT, setting a performance index simulation and test benchmarking control form of different working conditions, wherein the performance index simulation and test benchmarking control form comprises a working condition, a performance index, a unit, a target value, a simulation value, a test value, a benchmarking threshold and whether the benchmarking control form passes or not; setting the control form as a variable; the simulation value of the performance index is derived from a simulation analysis result; the test value of the performance index is derived from a performance index real test value corresponding to the target test value; the calibration threshold is artificially given according to experience and is a threshold value for judging the error between the simulation value and the test value; when in use
Figure BDA0003366325590000151
Figure BDA0003366325590000153
The simulation is passed after reaching the standard, otherwise, the simulation is failed. And the results can be automatically filled into corresponding positions in the simulation report PPT, so that the benchmarking of the performance indexes is completed. The simulation value and the test value of the performance index of the front suspension same-direction wheel-jump working condition are normalized and simulated by a simulation report PPT form, which can be referred to as the following table 4:
table 4 benchmarking simulation report form
Figure BDA0003366325590000152
Figure BDA0003366325590000161
And (5) performing calibration of the curve. Re-drawing the simulation value and test value curves in the same excel chart; the simulation curve corresponding to the simulation value can be represented by red, and the test curve corresponding to the experimental value can be represented by blue, so that the simulation curve can be distinguished; finally, excel chart can be converted into a jpg format image; and pasting the image file in the jpg format of the contrast curve to the corresponding position of the curve target of the simulation report. A visual contrast review can be implemented as shown in fig. 10.
Then, the benchmarking optimization is performed.
The comparison of the simulation value and the test value aims at verifying the simulation precision, and when the simulation is consistent with the test alignment height, the simulation is determined to be credible, so that the frequency or the round of the test can be reduced or cancelled to a certain extent; if the simulation and the test have larger difference, on the premise of confirming that the test has no problem, the reason is searched in the simulation. Establishing a simulation model and judging whether a simulation method is reasonable or not; simulating the standard whether the test is consistent with the simulation; a benchmarking threshold may be artificially set, which represents a differential acceptance threshold for simulation and testing. For example, 5% means that when the fluctuation range of the simulation and test errors is controlled within ± 5%, the simulation precision is possibly acceptable, namely the simulation passes the verification; when the fluctuation range of simulation and test errors is larger than 5%, the simulation precision is not high, namely the simulation fails the verification; on the premise of determining reasonable test, the simulation precision is increased, and the search of an optimized lifting space from the aspects of simulation modeling and simulation methods can be considered. Specifically, the method comprises the following steps:
extracting the benchmarking result of the automatic simulation value and the test value, and acquiring the failed simulation performance index; according to the performance index which fails in the benchmarking verification, the source tracing simulation has problems. For example, simulation modeling, simulation related parameters, a performance index calculation method, performance index fitting interval setting, a fitting filtering method, empirical parameter value setting and the like; the source tracing simulation has the problems, meanwhile, the optimization work can be carried out through joint simulation with Isight software, parameters of a K & C simulation interface of the automobile suspension are modified according to an evaluation result, a new round of solving file construction, simulation calculation and report output can be carried out, and an optimized effect is obtained.
And finally, automatically generating a simulation report.
1. And (5) formulating a simulation report template. And formulating a simulation report template according to the output requirement of the simulation report.
Simulation report home page: compiling and date; description of the analysis: task sources, analysis descriptions, analysis contents and analysis summaries; description of the model: a front suspension picture, a rear suspension picture; inputting a model: hard point input, wheel positioning angle input, finished vehicle parameters and bushing/spring/limiting block attribute input; and (3) working condition input: front suspension working condition name, code, fluctuation range; and (3) simulation results: working condition, performance index, unit, target value, simulation value, test value and whether the test value passes or not; and (4) analyzing and concluding: risk points and improvement recommendations; analysis of the graph: and displaying images on the PPT page.
2. And the automatic reading information in the PPT template is quantized, and the unique identification of the control is appointed. The unique control identification in the PPT template is defined as follows:
and (3) compiling a home page: TextBox _ edge; date of the home page: TextBox _ date; hard point input: table _ hardPoint; inputting a wheel positioning angle: table _ baseline; vehicle parameters: table _ Vehparms; performance indexes of vertical equidirectional wheel jump are as follows: table _ pp; the roll performance index is as follows: table _ roll; the steering performance index is as follows: table _ Steer; driving force performance index: table _ extraction; braking force performance index: table _ shake; performance indexes of homodromous aligning torque are as follows: table _ act; performance indexes of reverse aligning torque are as follows: table _ atom; performance indexes of equidirectional lateral force are as follows: table _ lacvgt; performance index of reverse lateral force: table _ locvgt; performance indexes of equidirectional lateral force are as follows: table _ lacvgt; performance index of reverse lateral force: table _ locvgt; bias lateral force performance index: table _ lactapt; vertical equidirectional wheel jump curve: picture _ pp1, Picture _ pp2,.., Picture _ pp8(8 curves); roll curve: picture _ roll1, Picture _ roll2, · Picture _ roll9(9 curves); turning curve: picture _ steer1, Picture _ steer2,. and Picture _ steer6(6 curves); driving force curve: picture _ extraction 1, Picture _ extraction 2,., Picture _ extraction 6(6 curves); braking force curve: picture _ break 1, Picture _ break 2,. and Picture _ break 6(6 curves); homodromous aligning torque curve: picture _ act1, Picture _ act2(2 curves); reverse aligning torque curve: picture _ action1, Picture _ action 2(2 curves); equidirectional lateral force curve: picture _ lacvgt1, Picture _ lacvgt2,. and Picture _ lacvgt5(5 curves); reverse lateral force curve: picture _ locvgt1, Picture _ locvgt2,.., Picture _ locvgt4(4 curves); bias lateral force curve: picture _ lack 1, Picture _ lack 2,. and Picture _ lack 5(5 curves); unique identification definitions of various PowerPoint picture controls for calibration curves; other controls requiring automated assignment are similarly named by unique identification.
3. Create simulation report creation function createppt (). Adding a reference Microsoft PowerPoint 14.0Object Library in the project; class space calls using microsoft, office, inter, powerpoint; the automatic extraction results of the performance indexes under different working conditions are respectively put into corresponding control IDs of the PPT (Power Point) of a predefined simulation report; respectively putting the performance index test results of different working conditions into corresponding control IDs of the PPT (Power Point) of a predefined simulation report; pasting jpg files generated by curve drawing results into picture controls of a pre-defined simulation report PPT respectively; the generated jpg curve file comprises two parts: self curves corresponding to different working conditions and calibration curves corresponding to different working conditions.
4. And (4) newly naming the simulation report PPT file and saving. Creating a PPT executable button; create a "report generation" button; in the button event, the simulation report creation function createppt () is called; clicking the "report generation" button automatically generates the simulation report.
The simulation report can be automatically generated through the process, and compiling processing of the report is not required to be manually carried out again. Comparing and analyzing the method in the embodiment with the existing processing method, wherein the comparison items are as follows: the simulation takes man-hours, the simulation data input method, the result output method and the error rate. The alignment results are shown in table 5 below:
TABLE 5 comparison of automatic simulation with the present manual simulation for the present method
Figure BDA0003366325590000181
As can be seen from table 5 above, before the method of the present embodiment is applied, all the input, solution, and result data post-processing are manually performed; after the application, the above work is automatically completed by a plurality of buttons provided by the system, which not only improves the efficiency and reduces the error probability, but also breaks away from manual intervention of human to execute the task, and is automatically completed by the system, as shown in fig. 11.
In summary, according to the method for the simulation analysis of the automobile suspension K & C, the batch automatic production of the solution files is realized by setting the basic information template and the working condition template; then, based on the prepared solving file, generating a corresponding batch processing file and a command driving file to realize automatic starting of ADAMS software, and scheduling the solving file to perform batch simulation analysis; and because the command driving file is adopted, the simulation analysis result required by the user can be further output in a customized manner. Therefore, the method of the embodiment does not need manual adjustment and simulation in the whole simulation process, can realize batch simulation calculation and customized output, greatly improves the efficiency and reliability of a large amount of simulation calculation in the field of vehicle engineering, and reduces simulation errors.
Referring to fig. 12, based on the same inventive concept, in another embodiment of the present invention, a suspension K & C simulation analysis device 300 is further provided, where the suspension K & C simulation analysis device 300 includes:
an obtaining module 301, configured to obtain a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition;
a first building module 302, configured to generate, for each simulation condition, a file header of the simulation condition according to the basic information template, and generate a file body of the simulation condition according to the condition template;
a second constructing module 303, configured to generate a solution file of the simulation condition according to the file header and the file body;
a third constructing module 304, configured to construct a batch file and a command driver file according to file information of the solution file of the multiple simulation conditions; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute;
and the simulation solving module 305 is configured to start the ADAMS software to perform batch simulation calculation on the solution files of the multiple simulation conditions according to the batch processing file and the command driver file, and output a simulation analysis result.
As an optional implementation manner, the first building module 302 is further specifically configured to:
constructing a compensation function; the compensation function is used for generating a space character; generating a file header of the simulation working condition according to the compensation function and the basic information template; the compensation function is used for aligning the data length in the file header; generating a file body of the simulation working condition according to the compensation function and the working condition template; the compensation function is used to align the data length in the file body.
As an optional implementation manner, the first building module 302 is further specifically configured to:
acquiring a file header template; replacing variables in the file header template with first target variables corresponding to the simulation working condition according to the basic information template and the simulation working condition; and using the compensation function to fill up the data length of the first target variable to obtain the file header of the simulation working condition.
It should be noted that the present invention provides a device 300 for simulating and analyzing suspension K & C, which is implemented and produces the same technical effects as the foregoing method embodiments, and for the sake of brevity, reference may be made to the corresponding contents in the foregoing method embodiments for the portions of the device embodiments that are not mentioned.
Based on the same inventive concept, there is also provided in yet another embodiment an electronic device, comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of the above method embodiments. It should be noted that, in the electronic device provided in the embodiment of the present invention, when the instructions are executed by the processor, the specific implementation of each step and the generated technical effect are the same as those of the foregoing method embodiment, and for the sake of brief description, for the sake of brevity, reference may be made to the corresponding contents in the foregoing method embodiment for the non-mentioned points of the embodiment.
The term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; the word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A K & C simulation analysis method for an automobile suspension is characterized by comprising the following steps:
acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition;
generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition;
generating a solving file of the simulation working condition according to the file header and the file body;
according to the file information of the solving files of the plurality of simulation working conditions, a batch processing file and a command driving file are constructed; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute;
and starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files, and outputting simulation analysis results.
2. The method according to claim 1, wherein the generating the file header of the simulation working condition according to the basic information template and the file body of the simulation working condition according to the working condition template comprises:
constructing a compensation function; the compensation function is used for generating a space character;
generating a file header of the simulation working condition according to the compensation function and the basic information template; the compensation function is used for aligning the data length in the file header;
generating a file body of the simulation working condition according to the compensation function and the working condition template; the compensation function is used to align the data length in the file body.
3. The method of claim 2, wherein generating the file header of the simulated operating condition according to the compensation function and the basic information template comprises:
acquiring a file header template;
replacing variables in the file header template with first target variables corresponding to the simulation working condition according to the basic information template and the simulation working condition;
and using the compensation function to fill up the data length of the first target variable to obtain the file header of the simulation working condition.
4. The method of claim 2, wherein generating the file body of simulated conditions from the compensation function and the condition template comprises:
acquiring a file body template;
replacing variables in the file body template with second target variables corresponding to the simulation working conditions according to the working condition template and the simulation working conditions;
and using the compensation function to fill up the data length of the second target variable to obtain a file body of the simulation working condition.
5. The method of claim 1, wherein the command driver file comprises: solving a scheduling file and an output definition file; the step of starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files and outputting simulation analysis results comprises the following steps:
starting the ADAMS software to perform batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the solving scheduling files to obtain working condition simulation data; the solving scheduling file is used for scheduling the solving file to execute simulation analysis;
outputting a simulation analysis result according to the output definition file and the working condition simulation data; the output definition file is used for defining parameters in the output simulation analysis result, the definition of the parameters and the format of the parameters.
6. The method of claim 1, wherein the output simulation analysis results are in xlsx format; after the ADAMS software is started to perform batch simulation calculation on the solving files of the plurality of simulation conditions according to the batch processing files and the command driver files and a simulation analysis result is output, the method further includes:
constructing a coordinate system to be assigned; the coordinate system to be assigned is an x-y coordinate system;
determining an x coordinate parameter, a y coordinate parameter, a maximum value and a minimum value corresponding to the x coordinate parameter and a maximum value and a minimum value corresponding to the y coordinate parameter from the simulation analysis result;
respectively determining a plurality of coordinate data with equal time step in the column of the x coordinate parameter and the column of the y coordinate parameter;
assigning the maximum value and the minimum value corresponding to the x coordinate parameter, the maximum value and the minimum value corresponding to the y coordinate parameter and the plurality of coordinate data to the coordinate system to be assigned, and obtaining the visual image of the simulation analysis result.
7. An automotive suspension K & C simulation analysis device is characterized by comprising:
the acquisition module is used for acquiring a preset basic information template and a preset working condition template; the basic information template comprises description information of various simulation working conditions in the K & C simulation of the automobile suspension, and the working condition template comprises working condition data, performance indexes and curve data of each simulation working condition;
the first construction module is used for generating a file header of the simulation working condition according to the basic information template and generating a file body of the simulation working condition according to the working condition template aiming at each simulation working condition;
the second construction module is used for generating a solving file of the simulation working condition according to the file header and the file body;
the third construction module is used for constructing batch processing files and command driving files according to the file information of the solving files of the plurality of simulation working conditions; the command driving file is used for scheduling the solving file to execute simulation analysis and outputting a simulation analysis result; the batch processing file is used for executing a background starting command of ADAMS software and calling the command driving file to execute;
and the simulation solving module is used for starting the ADAMS software to carry out batch simulation calculation on the solving files of the plurality of simulation working conditions according to the batch processing files and the command driving files and outputting simulation analysis results.
8. The apparatus of claim 6, wherein the first building block is further configured to:
constructing a compensation function; the compensation function is used for generating a space character;
generating a file header of the simulation working condition according to the compensation function and the basic information template; the compensation function is used for aligning the data length in the file header;
generating a file body of the simulation working condition according to the compensation function and the working condition template; the compensation function is used to align the data length in the file body.
9. The method of claim 8, wherein the first building block is further specifically configured to:
acquiring a file header template;
replacing variables in the file header template with first target variables corresponding to the simulation working condition according to the basic information template and the simulation working condition;
and using the compensation function to fill up the data length of the first target variable to obtain the file header of the simulation working condition.
10. An electronic device comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of claims 1-6.
CN202111383066.XA 2021-11-22 2021-11-22 K & C simulation analysis method and device for automobile suspension Pending CN114282301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111383066.XA CN114282301A (en) 2021-11-22 2021-11-22 K & C simulation analysis method and device for automobile suspension

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111383066.XA CN114282301A (en) 2021-11-22 2021-11-22 K & C simulation analysis method and device for automobile suspension

Publications (1)

Publication Number Publication Date
CN114282301A true CN114282301A (en) 2022-04-05

Family

ID=80869521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111383066.XA Pending CN114282301A (en) 2021-11-22 2021-11-22 K & C simulation analysis method and device for automobile suspension

Country Status (1)

Country Link
CN (1) CN114282301A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354319A (en) * 2008-09-10 2009-01-28 奇瑞汽车股份有限公司 Simple tool for measuring automobile suspension elastic characteristic and measuring method thereof
US20120041987A1 (en) * 2010-08-10 2012-02-16 Nigel James Brock System and method for analyzing data
CN109543253A (en) * 2018-11-07 2019-03-29 江苏敏安电动汽车有限公司 A kind of processing method of automotive suspension K&C performance data
CN110781558A (en) * 2019-10-24 2020-02-11 重庆长安汽车股份有限公司 Automobile stabilizer bar multidisciplinary optimization design method based on fatigue and roll performance
CN111639388A (en) * 2020-04-28 2020-09-08 东风汽车集团有限公司 Method and system for simulating parameters of elastic element of automobile
CN112231784A (en) * 2019-06-28 2021-01-15 广州汽车集团股份有限公司 Suspension bushing rigidity analysis method and system and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354319A (en) * 2008-09-10 2009-01-28 奇瑞汽车股份有限公司 Simple tool for measuring automobile suspension elastic characteristic and measuring method thereof
US20120041987A1 (en) * 2010-08-10 2012-02-16 Nigel James Brock System and method for analyzing data
CN109543253A (en) * 2018-11-07 2019-03-29 江苏敏安电动汽车有限公司 A kind of processing method of automotive suspension K&C performance data
CN112231784A (en) * 2019-06-28 2021-01-15 广州汽车集团股份有限公司 Suspension bushing rigidity analysis method and system and computer-readable storage medium
CN110781558A (en) * 2019-10-24 2020-02-11 重庆长安汽车股份有限公司 Automobile stabilizer bar multidisciplinary optimization design method based on fatigue and roll performance
CN111639388A (en) * 2020-04-28 2020-09-08 东风汽车集团有限公司 Method and system for simulating parameters of elastic element of automobile

Similar Documents

Publication Publication Date Title
CN109543253B (en) Method for processing K & C characteristic data of automobile suspension
EP0508308A2 (en) Automatic manufacturability evaluation method and system
US20100156936A1 (en) Deformation method of analysis model and computer
CN109658415B (en) Drawing segmentation method, electronic device and storage medium
CN111859571B (en) Stacker safety evaluation method and system based on parameterized design
CN107562808B (en) Method for verifying heterogeneous double-chain automatic data
CN114282301A (en) K & C simulation analysis method and device for automobile suspension
CN110908978B (en) Database data structure verification method and device
CN112950299A (en) Scheme design method, device, computer equipment and storage medium
CN102136013A (en) Manufacturing step information generating system and generating method thereof
JP2007304846A (en) Specification creation support method and specification creation support apparatus
JP5168099B2 (en) Renovation work range division program, refurbishment work range division device, and refurbishment work range division method
CN113001538B (en) Command analysis method and system
CN103177064A (en) Method for admitting appointed content of electronic document automatically
JP2009301410A (en) Design support system and computer program
JP3099614B2 (en) Design method and design support system
CN107817761A (en) Method of processing parts and system based on error iterative learning
CN112380204B (en) Data quality evaluation method and device
CN111310433B (en) Lock line binding makeup method, readable storage medium and computer equipment
Lu et al. Requirement Mining from Closed-Loop Control Models via Human-Computer Collaboration
Barić et al. Testing Environment for ADAS Software Solutions
JP4016437B2 (en) Assemblyability evaluation system
WO2019224983A1 (en) Design assistance device and design assistance method
CN117331717A (en) Multidisciplinary simulation data transfer method, multidisciplinary simulation data transfer device, data interface and storage medium
CN116383256A (en) Manufacturing method of operation guide file and production method of PCBA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination