A parametric powertrain envelope model making method, device and storage medium
Through a fully parametric powertrain layout envelope model production method, general 3D design software and EXCEL are used to automatically obtain and update motion parameters, which solves the problem of low efficiency caused by frequent changes to the powertrain envelope model and achieves efficient automated updates. , avoiding manual operation and reliance on professional software, and improving design efficiency and safety.
Patent Information
- Application Number
- CN202111583508.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-22
AI Technical Summary
During the automotive design process, frequent changes in powertrain and motion parameters result in the need for repeated production of envelope models. Existing technology is inefficient and error-prone, and relies on professional software, which has compatibility and cost issues.
Adopt a fully parameterized and automatically updated powertrain layout envelope model production method, and use general 3D design software (such as CATIA) and EXCEL to automatically obtain and update motion parameters, generate and update the envelope 3D digital model, and avoid manual operations. and dependence on professional software.
It realizes the efficient automated production and update of the powertrain envelope model, improves design efficiency, reduces the risk of manual operation errors, has no impact on software environment changes, and is safe and portable.
Smart Images

Figure CN114357613B_ABST
Abstract
Description
Technical Field
[0001] The present invention is used for the overall layout of vehicle development, and more specifically relates to the production of a layout envelope model for a powertrain. Background Art
[0002] With the development of the automobile industry, especially since the beginning of the 21st century, as competition in the automobile market has become increasingly fierce, the launch of new models has accelerated.
[0003] During the automobile design process, the general layout requires the production of an envelope model of the powertrain and accessories. Because the powertrain and motion parameters often change at various stages of vehicle development, it is necessary to repeatedly produce the latest envelope. Manually produce the envelope in general 3D design software (such as CATIA). Due to the large number of powertrain motion conditions, there are problems such as low efficiency leading to a long time consumption, many links that are prone to errors, and difficulties in finding errors. Use professional motion analysis software to produce the envelope and then manually import it into general 3D design software. Because this method is not designed in the same software, the powertrain 3D digital model and the powertrain envelope 3D digital model need to be manually imported and exported in different software, and the efficiency is still low; professional motion analysis software is expensive and there is a potential risk of the software being "stuck". The traditional method of envelope production of the powertrain and its accessories generally uses two methods: manual and professional software:
[0004] Patent application number 201510514250.1, entitled CN Automobile Powertrain Vibration Envelope Production and Verification Method, discloses a method for producing and verifying an envelope. The patent requires manual operation in the process of producing the envelope. Because there are dozens of powertrain working conditions involving hundreds or thousands of parameters, there are too many manual operation steps, which are prone to errors and difficult to find after errors; after the manual operation related input changes, all operations need to be repeated manually again.
[0005] Patent application number CN201610603130.3, named "Method and Device for Automatic Generation of Engine Envelope", discloses the use of CATIA secondary development. The software part is binary code with unknown security. Changes in the software environment may cause errors in operation and cannot be transplanted, resulting in poor compatibility. Some user inputs (such as point coordinates) need to be entered manually, with poor reliability. The software operation needs to generate garbage data such as points / lines / coordinate systems that are not needed by the user but are required by the software for the translation and rotation positioning of the powertrain. After the input changes, the software needs to be repeatedly run and the parameters need to be manually entered to update the powertrain envelope model, which is inefficient. Summary of the invention
[0006] In view of the above problems existing in the prior art, the present invention provides a fully parameterized and automatically updateable powertrain layout envelope model making method to solve the problems of low efficiency of independent research and development and / or reliance on professional software.
[0007] The technical solution of the present invention to solve the above technical problems is to provide a method for producing a powertrain layout envelope parameterized model in general 3D design, which has a high degree of automation in production and updating and conforms to the trend of independent research and development in automobile design.
[0008] The envelope parameterization model disclosed in the present invention includes: obtaining motion parameters: parameter input required for the full parameterized envelope model, and the parameter update model is also automatically updated; the envelope model is automatically generated, and the components that move with the powertrain are added or removed in the envelope model using general 3D design tools (such as CATIA), and the envelope 3D digital model is automatically generated in real time; the source code is in VB format and can be run in a general 3D system (such as CATIA) or MS-OFFICE's EXCEL to automatically realize parameterization.
[0009] Specifically, a method for making a parametric envelope model of an automobile powertrain is provided, wherein the coordinate value of the initial position of the powertrain is obtained, and a motion parameter table DESIGN TABLE under different working conditions of the powertrain is established; a new assembly file format document CATPRODUCT is created and named as envelope envelope; the saving location of the motion parameter table is read, and the document envelope is linked to the motion parameter table DESIGN TABLE; a component inserting function unit AddNewProduct is called to insert a component, and the parameters in the DESIGN TABLE table are read line by line until the last line, and an instance INSTANCE of a component is inserted, and a fixed position FIX constraint is newly created for this instance; for the parameters of the FIX constraint, the parameters under each working condition in the motion parameter table are respectively converted into FIX constraint parameters, and the links between the FIX constraint parameters and the DESIGN TABLE are respectively established; the link between the INSTANCE name and the DESIGN TABLE is established by the assignment method; and the envelope document envelope is saved to the same location where the motion parameters are saved.
[0010] Furthermore, the establishment of the motion parameter table DESIGN TABLE under different working conditions of the powertrain is specifically as follows: collecting the translational motion of the powertrain in the x, y, and z directions relative to the initial position under different working conditions (T x , T y , T z ), the Euler angle of the powertrain rotation around the center of mass coordinate system (R x , R y , R z ), establish the motion parameter table under different working conditions of the powertrain, each row of the parameter table contains a parameter under one working condition (T x , T y , T z , R x , R y, R z ).
[0011] Furthermore, the link between FIX constraint parameters and DESIGN TABLE includes: establishing a link between FIX constraint parameters and DESIGNTABLE parameters (Tx, Ty, Tz, Rx, Ry, Rz) and center of mass coordinates (X0, Y0, Z0); the link between the INSTANCE name and DESIGN TABLE is to establish a link between the INSTANCE name and the first column in each row in the motion parameter table.
[0012] Furthermore, the newly created FIX constraint is specifically: the rotational motion sequence under each working condition in the motion parameter table is Euler angle (R z , R y , R x ) is converted into the rotational motion sequence of Euler angle (R x , R y , R z )’s FIX constraint parameters.
[0013] Further, calling the formula:
[0014] pos_x=-X0×cos(R z )×cos(R y )+Y0×sin(R z )×cos(R y )-Z0×sin(R y )+T x +X0pos_y=-X0×sin(R z )×cos(R x )-X0×cos(R z )×sin(R y )×sin(R x )-Y0×cos(R z )×cos(R x )+Y0×sin(R z )×sin(R y )×sin(R x )+Z0×cos(R y )×sin(R x )+T y +Y0
[0015] pos_z=-X0×sin(R z )×sin(R x )+X0×cos(R z )×sin(R y )×cos(R x)-Y0×cos(R z )×sin(R x )-Y0×sin(R z )×sin(R y )×cos(R x )-Z0×cos(R y )×cos(R x )+T z +Z0
[0016]
[0017] Convert the parameters in the motion parameter table into FIX constraint parameters.
[0018] The present invention uses source code to run, without security issues, and the model can be easily modified and transplanted when the software environment changes. It runs the translation and rotation positioning of the powertrain, adopts a one-step positioning method such as coordinate transformation, without any garbage data, and the envelope is automatically updated after the input changes (without having to run the software again), with the highest efficiency. The result of the software operation of the present invention is a parameterized model; after the relevant input changes, there is no need for manual operation, and the powertrain envelope model is automatically updated.
[0019] High efficiency, no manual operation is required for model update; good generalization, only the input parameters and powertrain digital model need to be updated to complete the update; good security and strong portability. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Powertrain envelope model design flow chart. DETAILED DESCRIPTION
[0021] The implementation of the present invention is further described in detail below with reference to the accompanying drawings and specific examples.
[0022] First, establish a motion parameter table, obtain the (x, y, z) coordinate values of the initial position of the powertrain, collect the translational motion (Tx, Ty, Tz) of the powertrain relative to the initial position in the (x, y, z) direction under different working conditions, where Tx is the translational motion in the x direction, Ty is the translational motion in the y direction, and Tz is the translational motion in the z direction, and the Euler angles (Rx, Ry, Rz) of the rotation angle of the powertrain around the center of mass coordinate system, where Rx is the Euler angle in the x direction, Ry is the Euler angle in the y direction, and Rz is the Euler angle in the z direction. Establish a DESIGN TABLE of powertrain motion parameters under different working conditions.
[0023] Powertrain envelope model building, such as Figure 1The flow chart of the envelope model design of the present invention is shown, which includes: calling the new document function unit CATIA.Documents.Add to create a new assembly file format document CATPRODUCT and naming it envelope;
[0024] Read the save location of the motion parameter EXCEL (spreadsheet) file shown in Table 1, call the new design function table CreateDesignTable, and link to the powertrain motion parameter table DESIGN TABLE;
[0025] Call the component inserting function unit AddNewProduct, insert a component COMPONENT, name it "InsertExistingComponentHere", and prompt the user to insert the powertrain digital model here.
[0026] Start the loop, starting from the first row of DESIGN TABLE, read each row of DESIGN TABLE one by one until the last row, and determine whether the row number is greater than the total number of rows. If it is less than the total number of rows, call the function unit AddComponent of the newly created existing component link, and insert an instance INSTANCE of the component COMPONENT command "InsertExistingComponentHere" ("Insert an existing component here"). The function is to establish a link instead of inserting a digital model, which has two advantages for users. First, there is no need to manually insert a digital model for each working condition, and second, inserting a link is more efficient than inserting a digital model, especially for large digital models such as powertrains.
[0027] Call the function unit CreateReferenceFromName that establishes a reference association by name, and create a new fixed position FIX constraint for this instance INSTANCE;
[0028] Call the association function unit Connections, and for the parameters of the FIX constraint, convert the parameters under each working condition in the motion parameter table into FIX constraint parameters respectively, and establish a link between the FIX constraint parameters and the parameters (Tx, Ty, Tz, Rx, Ry, Rz) of the DESIGN TABLE and the center of mass coordinates (X0, Y0, Z0);
[0029] Use the assignment method to establish a link between this INSTANCE name and the first column of this row in the DESIGN TABLE;
[0030] After the loop ends (the last row of DESIGN TABLE has been read), the refresh function unit Update is called to update the envelope document envelope to make all FIX constraints effective;
[0031] The document saving function unit Saveas is called to save the envelope document envelope to the same location where the motion parameters are saved, thus completing the envelope model.
[0032] At this point, the blank envelope model is built. The user only needs to update the parameters in the parameter table and insert the powertrain digital model under the structure tree branch of "Insert existing parts here" to automatically generate the envelope. If the user updates the parameters and / or digital model again, the envelope will be automatically updated without having to run the envelope model generation again.
[0033] Table 1 below shows a parameter table in EXCEL format, which can be updated at will according to different working condition parameters. The column "Working Condition" indicates the name of the working condition, the columns Tx, Ty, and Tz indicate the translational motion of the powertrain, and the columns Rx, Ry, and Rz indicate the rotation angle of the powertrain around the center of mass coordinate system (the rotation order is the Euler angle Rz, Ry, and Rx); each row indicates a motion working condition, and the number of rows is unlimited.
[0034] Table 1: Motion parameter table of powertrain under different working conditions (EXCEL file)
[0035] All working conditions are relative to the initial position
[0036] The rotational motion sequence of each working condition in the motion parameter table is expressed as the Euler angle (R z , R y , R x ) is converted into the rotational motion sequence of Euler angle (R x , R y , R z ) is a FIX constraint parameter. Specifically, the following formula is used for conversion:
[0037] pos_x=-X0×cos(R z )×cos(R y )+Y0×sin(R z )×cos(R y )-z0×sin(R y )+T x +X0pos_y=-X0×sin(R z )×cos(R x )-X0×cos(R z )×sin(R y)×sin(R x )-Y0×cos(R z )×cos(R x )+Y0×sin(R z )×sin(R y )×sin(R x )+z0×cos(R y )×sin(R x )+T y +Y0
[0038] pos_z=-X0×sin(R z )×sin(R x )+X0×cos(R z )×sin(R y )×cos(R x )-Y0×cos(R z )×sin(R x )-Y0×sin(R z )×sin(R y )×cos(R x )-z0×cos(R y )×cos(R x )+T z +z0
[0039]
[0040] Among them, pos_x, pos_y, pos_z, pos_rotx, pos_roty, pos_rotz are the default names of FIX constraint parameters, pos_x represents movement in the x-axis direction, pos_y represents movement in the y-axis direction, pos_z represents movement in the z-axis direction, pos_rotx represents the rotation angle around the x-axis, pos_roty represents the rotation angle around the y-axis, and pos_rotz represents the rotation angle around the z-axis; Tx, Ty, Tz, Rx, Ry, and Rz represent the displacement parameters of the powertrain under each working condition in the motion parameter table DESIGN TABLE, Tx represents movement in the x-axis direction, Ty represents movement in the y-axis direction, Tz represents movement in the z-axis direction, Rx represents the rotation angle around the x-axis, Ry represents the rotation angle around the y-axis, and Rz represents the rotation angle around the z-axis; X0, Y0, and Z0 represent the initial position coordinate values in DESIGNTABLE (the coordinate values of the center of mass of the powertrain in the vehicle coordinate system). sin represents the sine function in trigonometric function; cos represents the cosine function in trigonometric function; atan represents the inverse tangent function in trigonometric function, and asin represents the inverse sine function in trigonometric function.
Claims
1. A method for making a parametric envelope model of an automobile powertrain, characterized in that: Get the initial position coordinate value of the powertrain, and establish the motion parameter table DESIGN TABLE under different working conditions of the powertrain; create a new assembly file format document CATPRODUCT and name it envelope; read the save location of the motion parameter table, and link the document envelope to the motion parameter table DESIGN TABLE; call the insert component function unit AddNewProduct to insert a component, read the parameters in the DESIGN TABLE table line by line until the last line, insert a component instance INSTANCE, and create a fixed position FIX constraint for this instance; for the parameters of the FIX constraint, convert the parameters under each working condition in the motion parameter table into FIX constraint parameters, and establish the link between the FIX constraint parameters and the DESIGN TABLE respectively; use the assignment method to establish the link between this INSTANCE name and the DESIGN TABLE; after the loop ends, update the envelope document envelope, and save the envelope document envelope to the same location where the motion parameters are saved; The specific steps of creating a new FIX constraint are as follows: convert the translational motion and rotational Euler angles of each working condition in the motion parameter table whose rotational motion sequence is Euler angles (Rz, Ry, Rx) into FIX constraint parameters whose rotational motion sequence is Euler angles (Rx, Ry, Rz); the conversion calls the following formula: pos_x=-X0×cos(R z )×cos(R y )+Y0×sin(R z )×cos(R y )-Z0×sin(R y )+T x +X0 pos_y=-X0×sin(R z )×cos(R x )-X0×cos(R z )×sin(R y )×sin(R x )-Y0×cos(R z )×cos(R x ) +Y0×sin(R z )×sin(R y )×sin(R x )+Z0×cos(R y )×sin(R x )+T y +Y0 pos_z=-X0×sin(R z )×sin(R x )+X0×cos(R z )×sin(R y )×cos(R x )-Y0×cos(R z )×sin(R x )-Y0×sin(R z )×sin(R y )×cos(R x )-Z0×cos(R y )×cos(R x )+T z +Z0 pos_broken(-sin(R z )×sin(R x )+cos(R z )×sin(R y )×cos(R x )) Convert the parameters in the motion parameter table to FIX constraint parameters, where pos_x, pos_y, pos_z, pos_rotx, pos_roty, pos_rotz are the x-axis movement, y-axis movement, z-axis movement, x-axis rotation angle, y-axis rotation angle, z-axis rotation angle in the FIX constraint parameters, X0, Y0, Z0 are the center of mass coordinates, T x is the translational motion in the x direction, T y is the translational motion in the y direction, Tz is the translational motion in the z direction, R x is the Euler angle in the x direction, R y is the Euler angle in the y direction, R z is the Euler angle in the z direction.
2. The method according to claim 1, characterized in that: The DESIGN TABLE for establishing the motion parameter table of the powertrain under different working conditions is specifically as follows: collecting the translational motion (Tx, Ty, Tz) of the powertrain in the x, y, and z directions relative to the initial position under different working conditions, and the Euler angles (Rx, Ry, Rz) of the powertrain rotation around the center of mass coordinate system, and establishing the motion parameter table of the powertrain under different working conditions, wherein each row of the parameter table contains parameters (Tx, Ty, Tz, Rx, Ry, Rz) under one working condition.
3. The method according to claim 1 or 2, characterized in that: The link between FIX constraint parameters and DESIGN TABLE includes: establishing a link between FIX constraint parameters and DESIGN TABLE parameters (Tx, Ty, Tz, Rx, Ry, Rz) and center of mass coordinates (X0, Y0, Z0).
4. The method according to claim 1 or 2, characterized in that: The link between the INSTANCE name and the DESIGN TABLE is as follows: a link is established between the INSTANCE name and the first column in each row of the motion parameter table.
5. A computer device, characterized in that: include: A processor and a memory; wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the method for making a parametric envelope model of an automobile powertrain as described in any one of claims 1-4.
6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the program can be loaded and run by a processor to execute the method for making a parameterized envelope model of an automobile powertrain according to any one of claims 1 to 4.
