Method and device for generating dynamics simulation model file of whole vehicle
Through the vehicle dynamic simulation model file generation method, the assignment and writing operations of two-dimensional arrays and row variables are used to solve the problem of low efficiency in generating vehicle dynamic simulation model files in the existing technology, and more efficient model file generation is achieved.
Patent Information
- Application Number
- CN202310590796.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-05-24
AI Technical Summary
In the prior art, the generation of vehicle dynamic simulation model files is inefficient and requires manual maintenance of a large number of parameters.
By providing a vehicle dynamic simulation model file generation method, the line variable corresponding to the target line number is assigned using a preset two-dimensional array, and the line data of the line variables and fixed parameters are written into the new file in the order of line number.
It improves the efficiency of generating vehicle dynamic simulation model files, only a small number of variable parameters need to be maintained, reducing the workload of manual parameter maintenance.
Smart Images

Figure CN116756845B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile modeling, and in particular to a method and a device for generating a dynamics simulation model file of a whole vehicle. Background Art
[0002] The multi-body dynamics simulation analysis of the whole vehicle is an essential analysis content in the process of vehicle development and modification, which can solve the main problems in the whole vehicle design in the early stage of design. Establishing the dynamics simulation model of the whole vehicle is an important step in the multi-body dynamics simulation analysis of the whole vehicle. The current modeling method is to manually modify each parameter in the whole vehicle dynamics simulation modeling template in the simulation software Adams. After the parameter modification is completed, the whole vehicle dynamics simulation model file can be obtained. Since all parameters need to be manually maintained in the process of generating the whole vehicle dynamics simulation model file, the efficiency of generating the whole vehicle dynamics simulation model file is low. Summary of the invention
[0003] The present invention solves the technical problem of low efficiency in generating the dynamics simulation model file of the whole vehicle in the prior art by providing a method and a device for generating the dynamics simulation model file of the whole vehicle.
[0004] On the one hand, the present invention provides the following technical solutions:
[0005] A method for generating a dynamics simulation model file of a whole vehicle, comprising:
[0006] Assign values to the row variables corresponding to each target row number in the preset two-dimensional array;
[0007] Write each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers;
[0008] Among them, the two-dimensional array is composed of the target row number and the row variable, the target row number is the row number of the variable parameter in the vehicle dynamics simulation modeling template in the vehicle dynamics simulation modeling template, and the row variable is the description of the variable parameter.
[0009] Preferably, the variable parameters include any one or more of a front suspension subsystem dynamics simulation modeling template reference path, a rear suspension subsystem dynamics simulation modeling template reference path, a steering subsystem dynamics simulation modeling template reference path, a front wheel subsystem dynamics simulation modeling template reference path, a rear wheel subsystem dynamics simulation modeling template reference path, a body subsystem dynamics simulation modeling template reference path, a powertrain subsystem dynamics simulation modeling template reference path, a braking subsystem dynamics simulation modeling template reference path, a front stabilizer bar subsystem dynamics simulation modeling template reference path, a rear stabilizer bar subsystem dynamics simulation modeling template reference path, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a front wheel maximum braking torque, a steering gear ratio, a rear wheel maximum braking torque, a driver's preview time, a steering gear ratio, and a sensor type.
[0010] Preferably, before assigning a value to a row variable corresponding to each target row number in the preset two-dimensional array, the method further includes:
[0011] Defining the corresponding row variable based on the description of each variable parameter in the vehicle dynamics simulation modeling template;
[0012] The two-dimensional array consisting of the target row number and the row variable is created.
[0013] Preferably, the step of writing each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers includes:
[0014] Starting from the current row number being a first preset value, the preset process is executed cyclically until the current row number is a second preset value;
[0015] The preset process includes:
[0016] Get the current line number;
[0017] If the current row number is the target row number, writing the row variable corresponding to the current row number in the two-dimensional array into the new file;
[0018] If the current row number is not the target row number, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into the new file;
[0019] The current line number is incremented by one.
[0020] On the other hand, the present invention also provides the following technical solutions:
[0021] A device for generating a dynamics simulation model file of a whole vehicle, comprising:
[0022] An assignment module is used to assign a value to a row variable corresponding to each target row number in a preset two-dimensional array;
[0023] A writing module, used for writing each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers;
[0024] Among them, the two-dimensional array is composed of the target row number and the row variable, the target row number is the row number of the variable parameter in the vehicle dynamics simulation modeling template in the vehicle dynamics simulation modeling template, and the row variable is the description of the variable parameter.
[0025] Preferably, the variable parameters include any one or more of a front suspension subsystem dynamics simulation modeling template reference path, a rear suspension subsystem dynamics simulation modeling template reference path, a steering subsystem dynamics simulation modeling template reference path, a front wheel subsystem dynamics simulation modeling template reference path, a rear wheel subsystem dynamics simulation modeling template reference path, a body subsystem dynamics simulation modeling template reference path, a powertrain subsystem dynamics simulation modeling template reference path, a braking subsystem dynamics simulation modeling template reference path, a front stabilizer bar subsystem dynamics simulation modeling template reference path, a rear stabilizer bar subsystem dynamics simulation modeling template reference path, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a front wheel maximum braking torque, a steering gear ratio, a rear wheel maximum braking torque, a driver's preview time, a steering gear ratio, and a sensor type.
[0026] Preferably, the device for generating a dynamics simulation model file of a whole vehicle further comprises:
[0027] A definition module, used to define the corresponding row variable based on the description of each variable parameter in the vehicle dynamics simulation modeling template;
[0028] An array module is used to establish the two-dimensional array consisting of the target row number and the row variable.
[0029] Preferably, the writing module is further used for:
[0030] Starting from the current row number being a first preset value, the preset process is executed cyclically until the current row number is a second preset value;
[0031] The preset process includes:
[0032] Get the current line number;
[0033] If the current row number is the target row number, writing the row variable corresponding to the current row number in the two-dimensional array into the new file;
[0034] If the current row number is not the target row number, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into the new file;
[0035] The current line number is incremented by one.
[0036] On the other hand, the present invention also provides the following technical solutions:
[0037] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for generating a dynamics simulation model file of a whole vehicle is implemented.
[0038] On the other hand, the present invention also provides the following technical solutions:
[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements any of the above-mentioned methods for generating a dynamics simulation model file of a whole vehicle.
[0040] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:
[0041] The present invention assigns a value to a row variable corresponding to each target row number in a two-dimensional array, thereby realizing the maintenance of variable parameters, and writes each row variable in the two-dimensional array and the row data of each fixed parameter in a whole vehicle dynamics simulation modeling template into a preset new file in the order of row numbers. The obtained new file is the required whole vehicle dynamics simulation model file. In the process of generating the whole vehicle dynamics simulation model file, only a small number of variable parameters need to be maintained, thereby improving the efficiency of generating the whole vehicle dynamics simulation model file. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0043] Figure 1 It is a flow chart of a method for generating a dynamics simulation model file of a whole vehicle in an embodiment of the present invention;
[0044] Figure 2 Schematic diagram of the principle of a method for generating a dynamics simulation model file of a whole vehicle in an embodiment of the present invention;
[0045] Figure 3 Schematic diagram of a vehicle dynamics simulation model according to an embodiment of the present invention;
[0046] Figure 4 Schematic diagram of a device for generating a dynamics simulation model file of a whole vehicle in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The embodiment of the present invention solves the technical problem of low efficiency in generating the dynamics simulation model file of the whole vehicle in the prior art by providing a method and a device for generating the dynamics simulation model file of the whole vehicle.
[0048] In order to better understand the technical solution of the present invention, the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0049] This embodiment is described by taking the multi-body dynamics simulation software as Adams software as an example, but is not limited to Adams software. Adams software provides a whole vehicle dynamics simulation modeling template and a dynamics simulation modeling template for each subsystem. The dynamics simulation modeling template for each subsystem is required to establish a whole vehicle dynamics simulation model. The existing modeling method is to manually maintain each parameter in the whole vehicle dynamics simulation modeling template, including maintaining the reference path of each subsystem dynamics simulation modeling template and the parameter value of each parameter in the whole vehicle dynamics simulation modeling template. Since each parameter needs to be maintained, the efficiency of generating the whole vehicle dynamics simulation model file is low.
[0050] This embodiment finds that each time a whole vehicle dynamics simulation model file is generated, most of the parameters used for modeling in the whole vehicle dynamics simulation modeling template are fixed, and only a small number of parameters will change. Therefore, this embodiment can adopt a method of only maintaining variable parameters instead of fixed parameters when generating a whole vehicle dynamics simulation model file, thereby improving the efficiency of generating a whole vehicle dynamics simulation model file.
[0051] In the vehicle dynamics simulation modeling template, different parameters are in different rows. The premise of this embodiment is to analyze the description of all variable parameters in the template and the row where the variable parameters are located in the vehicle dynamics simulation modeling template. After analysis, this embodiment can obtain the description and row number of the variable parameters as shown in Table 1, Table 2 and Table 3. The parameters whose parameter values will change during modeling include the reference path of the front suspension subsystem dynamics simulation modeling template, the reference path of the rear suspension subsystem dynamics simulation modeling template, the reference path of the steering subsystem dynamics simulation modeling template, the reference path of the front wheel subsystem dynamics simulation modeling template, the reference path of the rear wheel subsystem dynamics simulation modeling template, the reference path of the body subsystem dynamics simulation modeling template, the reference path of the powertrain subsystem dynamics simulation modeling template, the reference path of the brake subsystem dynamics simulation modeling template, the reference path of the front lateral stabilizer bar subsystem dynamics simulation modeling template, the reference path of the rear lateral stabilizer bar subsystem dynamics simulation modeling template, and the path error reference (path_error_reference nce), vertical reference (upright_reference), initial engine speed (initial_engine_rpm), throttle lag brake demand (throttle_lag_brake_demand), brake ratio (brake_ratio), front wheel maximum brake torque (front_brake_max_torque), steering gear ratio (rack_ratio), rear wheel maximum brake torque (rear_brake_max_torque), driver preview time (smart_driver_preview_time), steering gear ratio (steering_ratio) and sensor type (vx_sensor_type), etc.
[0052] Table 1
[0053] Serial number Subsystem Line Number describe 1 Front suspension 33 USAGE=′ <asp> / subsystems.tbl / front_susp.sub′ < / asp> 2 Rear Suspension 41 USAGE=′ <asp> / subsystems.tbl / rear_susp.sub′ < / asp> 3 Steering 49 USAGE=′ <asp> / subsystems.tbl / rack_rinion_steering.sub′ < / asp> 4 Front wheel 57 USAGE=′ <asp> / subsystems.tbl / front_tire.sub′ < / asp> 5 rear wheel 65 USAGE=′ <asp> / subsystems.tbl / rear_tire.sub′ < / asp> 6 Body 73 USAGE=′ <asp> / subsystems.tbl / body.sub′ < / asp> 7 Powertrain 81 USAGE=′ <asp> / subsystems.tbl / powertrain.sub′ < / asp> 8 brake 89 USAGE=′ <asp> / subsystems.tbl / brake_arb.sub′ < / asp> 9 Front stabilizer bar 97 USAGE=′ <asp> / subsystems.tbl / front_arb.sub′ < / asp> 10 Rear stabilizer bar 105 USAGE=′ <asp> / subsystems.tbl / rear_arb.sub′ < / asp>
[0054] Table 2
[0055] Serial number Hard Point Line Number describe 1 path_error_reference 113 path_error_reference″single′0 0 0 2 upright_reference 114 upright_reference″left / right′0 0 0
[0056] Table 3
[0057] Serial number adams parameter Line Number describe 1 initial_engine_rpm 118 'initial_engine_rpm"single"real'2000 2 throttle_lag_brake_demand 119 ′throttle_lag_brake_demand″single″real′0.1 3 brake_ratio 121 ′brake_ratio″single″real′0.55 4 front_brake_max_torque 123 ′front_brake_max_torque″single″real′1700000 5 rack_ratio 125 ′rack_ratio″single″real′174.5 6 rear_brake_max_torque 127 ′rear_brake_max_torque″single″real′1000000 7 smart_driver_preview_time 129 ′smart_driver_preview_time″single″real′0.5 8 steering_ratio 131 ′steering_ratio″single″real′26.7 9 vx_sensor_type 133 'vx_sensor_type"single"integer'0
[0058] After obtaining the description and row of the variable parameters in Tables 1 to 3, you can start generating the dynamics simulation model file of the whole vehicle.
[0059] In this embodiment, when the dynamics simulation model file of the whole vehicle is generated for the first time, the method for generating the dynamics simulation model file of the whole vehicle includes:
[0060] Step S1, defining a row variable corresponding to each variable parameter based on the description of the variable parameter in the vehicle dynamics simulation modeling template in the simulation software;
[0061] Step S2, assigning a value to each row variable;
[0062] Step S3, establishing a two-dimensional array consisting of a target row number and a row variable, wherein the target row number is the row number of the variable parameter in the vehicle dynamics simulation modeling template;
[0063] Step S4, write each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers.
[0064] It can be understood that after the two-dimensional array is established for the first time, only steps S2 and S4 need to be executed when modeling again in the subsequent step, except that the subsequent step S2 needs to be changed to assign a value to the row variable corresponding to each target row number in the two-dimensional array, such as Figure 1 shown.
[0065] The variable parameters in this embodiment may include any one of a front suspension subsystem dynamics simulation modeling template reference path, a rear suspension subsystem dynamics simulation modeling template reference path, a steering subsystem dynamics simulation modeling template reference path, a front wheel subsystem dynamics simulation modeling template reference path, a rear wheel subsystem dynamics simulation modeling template reference path, a body subsystem dynamics simulation modeling template reference path, a powertrain subsystem dynamics simulation modeling template reference path, a braking subsystem dynamics simulation modeling template reference path, a front lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a rear lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a front wheel maximum braking torque, a steering gear ratio, a rear wheel maximum braking torque, a driver's preview time, a steering gear ratio, and a sensor type. or multiple, the following uses the variable parameters including the reference path of the front suspension subsystem dynamics simulation modeling template, the reference path of the rear suspension subsystem dynamics simulation modeling template, the reference path of the steering subsystem dynamics simulation modeling template, the reference path of the front wheel subsystem dynamics simulation modeling template, the reference path of the rear wheel subsystem dynamics simulation modeling template, the reference path of the body subsystem dynamics simulation modeling template, the reference path of the powertrain subsystem dynamics simulation modeling template, the reference path of the braking subsystem dynamics simulation modeling template, the reference path of the front lateral stabilizer bar subsystem dynamics simulation modeling template, the reference path of the rear lateral stabilizer bar subsystem dynamics simulation modeling template, path error reference, vertical reference, initial value of engine speed, throttle lag braking demand, braking ratio, maximum braking torque of the front wheels, steering gear ratio, maximum braking torque of the rear wheels, driver preview time, steering gear ratio and sensor type as examples for explanation.
[0066] The names of the row variables corresponding to the 10 variable parameters in Table 1 defined in step S1 are Line_frontsup, Line_rearsup, Line_steering, Line_fronttire, Line_reartire, Line_body, Line_powertrain, Line_brake, Line_frontarb, and Line_reararb. Taking Line_frontsup as an example, the assignment statement of Line_frontsup in step S2 is: Line_frontsup==' / USAGE='+full_path_name+front_sus_filename, and the reference path includes full_path_name (full path) and front_sus_filename (file name).
[0067] The names of the row variables corresponding to the two variable parameters in Table 2 defined in step S1 are Line_path_error_reference and Line_upright_reference, respectively. The statements for assigning values to the two row variables in step S2 are: Line_path_error_reference == 'path_error_reference' + 'single'
[0068] +x+”+y+”+z, Line_upright_reference=='upright_reference'+'left / right'+x+”+y+”+z. The description of the variable parameter path_error_reference includes the parameter name "path_error_reference", the data type "single" and the coordinate value "xyz", and the description of the variable parameter upright_reference includes the parameter name "upright_reference", the direction "left / right" and the coordinate value "xyz".
[0069] The names of the row variables corresponding to the 9 variable parameters in Table 3 defined in step S1 are Line_initial_engine_rpm, Line_throttle_lag_brake_demand, Line_brake_ratio, Line_front_brake_max_torque, Line_rack_ratio, Line_rear_brake_max_torque, Line_smart_driver_preview_time, Line_steering_ratio, and Line_vx_sensor_type, respectively. Taking Line_initial_engine_rpm as an example, the assignment statement of step S2 can be: Line_initial_engine_rpm=='initial_engine_rpm'+'single'+'real'+val. The description of the variable parameter initial_engine_rpm includes the parameter name "initial_engine_rpm", the data type "single" and the engine speed value "val".
[0070] As can be seen from Tables 1-3, the target row numbers of this embodiment include 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 114, 118, 119, 121, 123, 125, 127, 129, 131, and 133. After the assignment of each row variable is completed, the two-dimensional array constructed in step S3 is:
[0071] Arr==[(33,Line_frontsup),
[0072] (41,Line_rearsup),
[0073] (49,Line_steering),
[0074] (57,Line_fronttire),
[0075] (65,Line_reartire),
[0076] (73,Line_body),
[0077] (81,Line_powertrain),
[0078] (89,Line_brake),
[0079] (97,Line_frontarb),
[0080] (105,Line_reararb)]
[0081] (113,Line_path_error_reference),
[0082] (114,Line_upright_reference),
[0083] (118,Line_initial_engine_rpm),
[0084] (119,Line_throttle_lag_brake_demand),
[0085] (121,Line_brake_ratio),
[0086] (123,Line_front_brake_max_torque),
[0087] (125,Line_rack_ratio),
[0088] (127,Line_rear_brake_max_torque),
[0089] (129,Line_smart_driver_preview_time),
[0090] (131,Line_steering_ratio),
[0091] (133,Line_vx_sensor_type)]
[0092] Step S4 may include: starting from the current row number being the first preset value, looping through the preset process until the current row number is the second preset value; the preset process includes: obtaining the current row number; if the current row number is the target row number, writing the row variable corresponding to the current row number in the two-dimensional array into a new file; if the current row number is not the target row number, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into a new file; adding one to the current row number. All parameters except the variable parameters in the vehicle dynamics simulation modeling template are fixed parameters.
[0093] The vehicle dynamics simulation modeling template of this embodiment has a total of 139 rows, so the first preset value can be 1 and the second preset value can be 139. The principle of step S4 is as follows Figure 2 As shown, Figure 2The second element in the array Arr[] should all be row variables. The number "1" in the figure simply replaces the English name of the row variable. First, the current row number is 1, and row number 1 is not the target row number, so the row data of the first row in the vehicle dynamics simulation modeling template is written into the new file file_carmdl. In this embodiment, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into the new file can include: storing the vehicle dynamics simulation modeling template as a behavior string into the Numpy list class variable val_list, the statement expression is file_cartpl = open (full_path + car_filenametpl) (file_cartpl is the name of the vehicle dynamics simulation modeling template, full_path + car_filenametpl are the full path + file name opened respectively), val_list = file_cartpl.readlines(); write the row data corresponding to the current row number in the list class variable val_list into the new file file_carmdl. For the first row, the first row of data in val_list is written to the first row of the new file file_carmdl. Then add one to the current row number. The current row number is 2. Row number 2 is also not the target row number. Write the second row of data in val_list to the second row of the new file file_carmdl. Row numbers 3 to 32 are not the target row numbers. Write the third to third rows of data in val_list in sequence to the third to third rows of the new file file_carmdl. Row number 33 is the target row number. Write the row variable Line_frontsup corresponding to row number 33 in the two-dimensional array Arr[] to the 33rd row of the new file file_carmdl. And so on, until the 139th row of data in val_list is written to the 139th row of the new file file_carmdl. The resulting new file file_carmdl.asy is the required vehicle dynamics simulation model file. Open the file_carmdl.asy file in the Adams software, and you can get the following: Figure 3 The vehicle dynamics simulation model is shown.
[0094] As can be seen from the above, this embodiment assigns a value to the row variable corresponding to each target row number in the two-dimensional array, so as to realize the maintenance of variable parameters, and writes each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers. The obtained new file is the required vehicle dynamics simulation model file. In the process of generating the vehicle dynamics simulation model file, only a small number of variable parameters need to be maintained, thereby improving the efficiency of generating the vehicle dynamics simulation model file.
[0095] like Figure 4As shown, this embodiment also provides a device for generating a dynamics simulation model file of a whole vehicle, comprising:
[0096] An assignment module is used to assign a value to a row variable corresponding to each target row number in a preset two-dimensional array;
[0097] A writing module is used to write each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers;
[0098] The two-dimensional array is composed of a target row number and a row variable. The target row number is the row number of the row where the variable parameter in the vehicle dynamics simulation modeling template is located in the vehicle dynamics simulation modeling template, and the row variable is a description of the variable parameter.
[0099] Further, the variable parameters may include a reference path of a front suspension subsystem dynamics simulation modeling template, a reference path of a rear suspension subsystem dynamics simulation modeling template, a reference path of a steering subsystem dynamics simulation modeling template, a reference path of a front wheel subsystem dynamics simulation modeling template, a reference path of a rear wheel subsystem dynamics simulation modeling template, a reference path of a body subsystem dynamics simulation modeling template, a reference path of a powertrain subsystem dynamics simulation modeling template, a reference path of a braking subsystem dynamics simulation modeling template, a reference path of a front stabilizer bar subsystem dynamics simulation modeling template, a reference path of a rear stabilizer bar subsystem dynamics simulation modeling template, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a maximum braking torque of the front wheels, a steering gear ratio, a maximum braking torque of the rear wheels, a driver's preview time, a steering gear ratio, and a sensor type.
[0100] Furthermore, the whole vehicle dynamics simulation model file generating device may also include:
[0101] A definition module is used to define each row variable based on the vehicle dynamics simulation modeling template;
[0102] The array module is used to create a two-dimensional array consisting of target row numbers and row variables.
[0103] Furthermore, the write module can also be used to:
[0104] Starting from the current line number being the first preset value, the preset process is executed cyclically until the current line number is the second preset value;
[0105] The preset process includes:
[0106] Get the current line number;
[0107] If the current line number is the target line number, write the line variable corresponding to the current line number in the two-dimensional array into the new file;
[0108] If the current line number is not the target line number, the line data corresponding to the current line number in the vehicle dynamics simulation modeling template is written into a new file;
[0109] Increase the current line number by one.
[0110] Based on the same inventive concept as the method for generating a dynamics simulation model file for a whole vehicle described above, this embodiment also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods for generating a dynamics simulation model file for a whole vehicle described above are implemented.
[0111] Among them, the bus architecture (represented by the bus), the bus can include any number of interconnected buses and bridges, and the bus links various circuits including one or more processors represented by the processor and memory represented by the memory. The bus can also link various other circuits such as peripherals, voltage regulators, and power management circuits together, which are all well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter can be the same element, namely a transceiver, which provides a unit for communicating with various other devices on a transmission medium. The processor is responsible for managing the bus and general processing, while the memory can be used to store data used by the processor when performing operations.
[0112] Since the electronic device introduced in this embodiment is an electronic device used to implement the method for generating a dynamics simulation model file of a whole vehicle in the embodiment of the present invention, based on the method for generating a dynamics simulation model file of a whole vehicle introduced in the embodiment of the present invention, a person skilled in the art can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present invention is not described in detail here. As long as a person skilled in the art implements the electronic device used by the method for generating a dynamics simulation model file of a whole vehicle in the embodiment of the present invention, it belongs to the scope of protection of the present invention.
[0113] Based on the same inventive concept as the above-mentioned method for generating a dynamics simulation model file for a whole vehicle, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements any of the above-mentioned methods for generating a dynamics simulation model file for a whole vehicle.
[0114] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0118] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0119] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these 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 these modifications and variations.
Claims
1. A method for generating a dynamics simulation model file of a whole vehicle, characterized in that: include: Assign values to the row variables corresponding to each target row number in the preset two-dimensional array; Write each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers; The step of writing each row variable in the two-dimensional array and each row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers includes: Starting from the current row number being a first preset value, the preset process is executed cyclically until the current row number is a second preset value; The preset process includes: Get the current line number; If the current row number is the target row number, writing the row variable corresponding to the current row number in the two-dimensional array into the new file; If the current row number is not the target row number, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into the new file; Add one to the current line number; Among them, the two-dimensional array is composed of the target row number and the row variable, the target row number is the row number of the variable parameter in the whole vehicle dynamics simulation modeling template in the whole vehicle dynamics simulation modeling template, the row variable is the description of the variable parameter, and the fixed parameter is the parameter in the whole vehicle dynamics simulation modeling template other than the variable parameter.
2. The method for generating a dynamics simulation model file of a whole vehicle according to claim 1, characterized in that: The variable parameters include any one or more of a front suspension subsystem dynamics simulation modeling template reference path, a rear suspension subsystem dynamics simulation modeling template reference path, a steering subsystem dynamics simulation modeling template reference path, a front wheel subsystem dynamics simulation modeling template reference path, a rear wheel subsystem dynamics simulation modeling template reference path, a body subsystem dynamics simulation modeling template reference path, a powertrain subsystem dynamics simulation modeling template reference path, a braking subsystem dynamics simulation modeling template reference path, a front lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a rear lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a front wheel maximum braking torque, a steering gear ratio, a rear wheel maximum braking torque, a driver's preview time, a steering gear ratio, and a sensor type.
3. The method for generating a dynamics simulation model file of a whole vehicle according to claim 1, characterized in that: Before assigning a value to a row variable corresponding to each target row number in the preset two-dimensional array, the method further includes: Defining the corresponding row variable based on the description of each variable parameter in the vehicle dynamics simulation modeling template; The two-dimensional array consisting of the target row number and the row variable is created.
4. A device for generating a dynamics simulation model file of a whole vehicle, characterized in that: include: An assignment module is used to assign a value to a row variable corresponding to each target row number in a preset two-dimensional array; A writing module, used for writing each row variable in the two-dimensional array and the row data of each fixed parameter in the vehicle dynamics simulation modeling template into a preset new file in the order of row numbers; The writing module is further used for: Starting from the current row number being a first preset value, the preset process is executed cyclically until the current row number is a second preset value; The preset process includes: Get the current line number; If the current row number is the target row number, writing the row variable corresponding to the current row number in the two-dimensional array into the new file; If the current row number is not the target row number, writing the row data corresponding to the current row number in the vehicle dynamics simulation modeling template into the new file; Add one to the current line number; Among them, the two-dimensional array is composed of the target row number and the row variable, the target row number is the row number of the variable parameter in the whole vehicle dynamics simulation modeling template in the whole vehicle dynamics simulation modeling template, the row variable is the description of the variable parameter, and the fixed parameter is the parameter in the whole vehicle dynamics simulation modeling template other than the variable parameter.
5. The device for generating a dynamics simulation model file of a whole vehicle according to claim 4, characterized in that: The variable parameters include any one or more of a front suspension subsystem dynamics simulation modeling template reference path, a rear suspension subsystem dynamics simulation modeling template reference path, a steering subsystem dynamics simulation modeling template reference path, a front wheel subsystem dynamics simulation modeling template reference path, a rear wheel subsystem dynamics simulation modeling template reference path, a body subsystem dynamics simulation modeling template reference path, a powertrain subsystem dynamics simulation modeling template reference path, a braking subsystem dynamics simulation modeling template reference path, a front lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a rear lateral stabilizer bar subsystem dynamics simulation modeling template reference path, a path error reference, a vertical reference, an initial value of the engine speed, a throttle lag braking demand, a braking ratio, a front wheel maximum braking torque, a steering gear ratio, a rear wheel maximum braking torque, a driver's preview time, a steering gear ratio, and a sensor type.
6. The device for generating a dynamics simulation model file of a whole vehicle according to claim 4, characterized in that: Also includes: A definition module, used to define the corresponding row variable based on the description of each variable parameter in the vehicle dynamics simulation modeling template; An array module is used to establish the two-dimensional array consisting of the target row number and the row variable.
7. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a dynamic simulation model file of a whole vehicle as claimed in any one of claims 1 to 3 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating a dynamics simulation model file of a whole vehicle as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Vehicle test model establishing method, device and equipment and storage medium
CN110399644A