VB and CATIA-based modeling method and device for complex layering carbon fiber tubular beam
By using VB to write macro programs on the CATIA platform to perform three-dimensional modeling and smooth processing of complex laid carbon fiber tube beams, the problems of complex modeling and high error rates in the existing technology are solved, and the automatic modeling and assembly interface are accurately defined, which improves design efficiency and accuracy.
Patent Information
- Application Number
- CN202411926651.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-25
AI Technical Summary
When modeling complex laid carbon fiber pipe beams, the existing technology has problems such as unsmoothing, complex modeling and error-prone, which leads to the actual product inconsistent with the modeling results during the manufacturing process, which increases the workload and error rate, and brings difficulties to the assembly interface.
Using a method based on VB and CATIA, three-dimensional modeling is performed by writing macro programs, the outer surface of the tube beam is extracted, smoothed and enveloped surfaces are generated, which is used as an installation interface to guide the part design.
It realizes automatic reading of laying data and automatic modeling of pipe beams, improves work efficiency, avoids errors, standardizes design results, and provides an accurate appearance for the assembly interface, simplifying the design and manufacturing of parts and tooling.
Smart Images

Figure CN119885599A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of tubular beam modeling, and in particular to a modeling method and device for a complex-ply carbon fiber tubular beam based on VB and CATIA. Background Art
[0002] Thin-walled carbon fiber circular tube beam is a common structure. According to the actual load conditions, the designability of composite materials is used to locally thicken the ply in the main load-bearing direction, which is an efficient method to strengthen the tube beam. The tube beam designed in this way has a large number of steps in the length direction and at the circumferential ply disconnection, and the theoretical shape of the beam is complex and irregular. This brings three problems: 1. During the manufacturing process, processes such as BOPP wrapping are used to make the outer surface of the tube beam smooth, and the modeling does not match the actual product; 2. The workload and error rate of three-dimensional modeling of the tube beam are increased; 3. It brings difficulties to the output installation interface (the parts that have an assembly relationship with the tube beam require its outer surface).
[0003] Based on this technical background, the present invention studies a modeling method and device for a complex-ply carbon fiber tubular beam based on VB and CATIA. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a modeling method and device for a complex-ply carbon fiber tubular beam based on VB and CATIA, which realizes automatic reading of ply data and automatic modeling of the tubular beam, greatly improving work efficiency and avoiding errors; standardizing the ply design results, and only needing to update the table when the design is changed, avoiding re-modeling; generating the outer envelope surface of the beam as the installation interface of parts (such as ribs, brackets, etc.) that have an assembly relationship with the tubular beam, which is close to the actual product and also facilitates the design and manufacture of other parts, molds and products.
[0005] In order to achieve the above object, a first aspect of the present invention provides a modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA, comprising:
[0006] Use the macro program written in VB to carry out three-dimensional modeling of carbon fiber tubular beam;
[0007] Extracting the outer surface of the carbon fiber tubular beam from the result of the three-dimensional modeling;
[0008] Intersecting the outer surface with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and performing a smoothing process on the cross-sectional curve;
[0009] Based on the cross-sectional curve after smoothing, an envelope surface of the entire carbon fiber tubular beam is generated using a multi-section surface command;
[0010] The envelope surface is used as the outer shape surface and installation interface of the carbon fiber tubular beam to guide the design of related parts and assembly tooling.
[0011] A second aspect of the present invention provides a modeling device for a complex-ply carbon fiber tubular beam based on VB and CATIA, comprising:
[0012] Modeling module, used to perform three-dimensional modeling of carbon fiber tubular beams using a macro program written in VB;
[0013] An extraction module, used for extracting the outer surface of the carbon fiber tubular beam from the result of the three-dimensional modeling;
[0014] A smoothing module, used for intersecting the outer surface with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and performing a smoothing process on the cross-sectional curve;
[0015] An envelope surface generation module, used to generate the envelope surface of the entire carbon fiber tubular beam by using a multi-section surface command based on the cross-section curve after smoothing;
[0016] An assembly module is used to use the envelope surface as the outer shape surface and installation interface of the carbon fiber tubular beam to guide the design of related parts and assembly tooling.
[0017] A third aspect of the present invention provides an electronic device, the electronic device comprising:
[0018] A memory storing executable instructions;
[0019] A processor, wherein the processor runs the executable instructions in the memory to implement the modeling method of the complex-ply carbon fiber tubular beam based on VB and CATIA as described in the first aspect.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the modeling method of the complex-ply carbon fiber tubular beam based on VB and CATIA as described in the first aspect.
[0021] The beneficial effects of the present invention include:
[0022] The modeling method of the complex-laid carbon fiber tubular beam based on VB and CATIA proposed in the present invention realizes the automatic reading of the layup data and the automatic modeling of the tubular beam, greatly improves the work efficiency and avoids errors; standardizes the layup design results, and only needs to update the table when the design is changed, avoiding re-modeling; generates the outer envelope surface of the beam as the installation interface of the parts (such as ribs, brackets, etc.) that have an assembly relationship with the tubular beam, which is close to the actual product and also facilitates the design and manufacture of other parts, molds and products.
[0023] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings.
[0025] Figure 1 The figure is a flow chart of the modeling method of the complex-ply carbon fiber tubular beam based on VB and CATIA proposed in the present invention.
[0026] Figure 2 The present invention is a flowchart of a specific implementation of the method for modeling a complex-ply carbon fiber tubular beam based on VB and CATIA proposed in the present invention.
[0027] Figure 3 This is a schematic diagram of the envelope surface of a tubular beam in a specific implementation of the modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA proposed in the present invention. DETAILED DESCRIPTION
[0028] The preferred embodiments of the present invention will be described in more detail below. Although the preferred embodiments of the present invention are described below, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0029] The present invention provides a modeling method for a complex-ply carbon fiber tubular beam based on VB and CATIA, such as Figure 1 As shown, including:
[0030] Use the macro program written in VB to carry out three-dimensional modeling of carbon fiber tubular beam;
[0031] Extract the outer surface of the carbon fiber tubular beam from the results of three-dimensional modeling;
[0032] The outer surface is intersected with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and the cross-sectional curve is smoothed;
[0033] Based on the smoothed cross-sectional curve, the envelope surface of the entire carbon fiber tube beam is generated using the multi-section surface command;
[0034] The envelope surface is used as the appearance surface and installation interface of the carbon fiber tubular beam to guide the design of related components and assembly tooling.
[0035] In the present invention, automatic reading of layup data and automatic modeling of tubular beams are realized, which greatly improves work efficiency and avoids errors; the layup design results are standardized, and only the table needs to be updated when the design is changed, avoiding re-modeling; the outer envelope surface of the beam is generated as the installation interface of parts that have an assembly relationship with the tubular beam (such as ribs, brackets, etc.), which is close to the actual product and also facilitates the design and manufacture of other parts, molds and products.
[0036] According to the present invention, the principle of smoothing the cross-sectional curve is:
[0037] The distance between the envelope original curves of the carbon fiber tubular beam is as small as possible.
[0038] According to the present invention, before the three-dimensional modeling of the carbon fiber tubular beam is performed using the macro program written in VB, the following steps are also included:
[0039] The standard stiffness and strength design results are used as a fixed-form ply table to facilitate macro program reading;
[0040] The axis and inner surface of the carbon fiber tubular beam are used as the input of the macro program.
[0041] According to the present invention, the three-dimensional modeling of the carbon fiber tubular beam using a macro program written in VB includes:
[0042] Execute the macro program written in VB, sort and merge the ply data, segment the input line surface, and use the thickening surface command to perform three-dimensional modeling of the carbon fiber tubular beam.
[0043] According to the present invention, the outer surface has a stepped shape.
[0044] Preferably, smoothing the cross-sectional curve includes:
[0045] The cross-sectional curve is divided into irregular step-shaped segments and arc segments. The cusps of the step-shaped segments are selected to form splines. The G2 continuity at the connection point with the arc segment is used as the constraint of the spline. The step-shaped portion of the cross-sectional curve is replaced by the spline to obtain the smoothed cross-sectional curve.
[0046] According to the present invention, based on the cross-sectional curve after the smoothing process, the envelope surface of the entire carbon fiber tube beam is generated by using a multi-section surface command, including:
[0047] Splines are used to connect points with the same circumferential angle on different section curves to form guide lines, and the envelope surface of the entire carbon fiber tubular beam is generated using the multi-section surface command.
[0048] The present invention will be described in more detail below by way of examples.
[0049] Embodiment 1:
[0050] like Figure 2As shown, this embodiment proposes a modeling method for a complex-ply carbon fiber tubular beam based on VB and CATIA, including:
[0051] 1) The standard stiffness and strength design results are in the form of a fixed ply table, which is convenient for the program to read in;
[0052] 2) Give the beam axis and inner surface as input;
[0053] 3) Execute the VB program to sort and merge the ply data, segment the input line surface, and use the thickening surface command to perform three-dimensional modeling of the beam;
[0054] 4) Extract the stepped outer surface of the beam, intersect it with the plane family to obtain the cross-sectional curve, divide the curve into irregular step-shaped sections and arc segments, select the step-shaped cusps to form a spline, and ensure G2 continuity between the two ends of the spline and the arc. Use the spline to replace the step-shaped section of the curve to obtain the smoothed cross-sectional curve;
[0055] 5) Use splines to connect points with the same circumferential angle on different section curves as guide lines, and use the multi-section surface command to generate the envelope surface of the entire beam, such as Figure 3 As shown, this serves as the outer surface and installation interface of the beam.
[0056] In this embodiment, the line-surface segmentation code is as follows:
[0057]
[0058] In this embodiment, the curve smoothing code is as follows:
[0059]
[0060] Embodiment 2:
[0061] This embodiment provides a modeling method for a complex laminated carbon fiber tubular beam based on VB and CATIA. Figure 1 As shown, including:
[0062] Use the macro program written in VB to carry out three-dimensional modeling of carbon fiber tubular beam;
[0063] Extract the outer surface of the carbon fiber tubular beam from the results of three-dimensional modeling;
[0064] The outer surface is intersected with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and the cross-sectional curve is smoothed;
[0065] Based on the smoothed cross-sectional curve, the envelope surface of the entire carbon fiber tube beam is generated using the multi-section surface command;
[0066] Use the envelope surface as the outer surface and installation interface of the carbon fiber tube beam to guide the design of related parts and assembly tooling;
[0067] In this embodiment, the principle of smoothing the cross-sectional curve is:
[0068] The distance between the envelope original curves of the carbon fiber tube beam is as small as possible;
[0069] In this embodiment, before the 3D modeling of the carbon fiber tubular beam is performed using the macro program written in VB, the following steps are also included:
[0070] The standard stiffness and strength design results are used as a fixed-form ply table to facilitate macro program reading;
[0071] The axis and inner surface of the carbon fiber tubular beam are used as inputs to the macro program;
[0072] In this embodiment, the three-dimensional modeling of the carbon fiber tubular beam using a macro program written in VB includes:
[0073] Execute the macro program written in VB to sort and merge the ply data, segment the input line surface, and use the thickening surface command to perform 3D modeling of the carbon fiber tubular beam;
[0074] In this embodiment, the shape of the outer surface is stepped;
[0075] Smoothing of section curves includes:
[0076] The cross-sectional curve is divided into irregular step-shaped segments and circular arc segments, the cusp of the step-shaped segment is selected to form a spline, the G2 continuity at the connection point with the circular arc segment is used as the constraint of the spline, and the step-shaped portion of the cross-sectional curve is replaced by the spline to obtain the cross-sectional curve after smoothing.
[0077] In this embodiment, based on the cross-sectional curve after the smoothing process, the envelope surface of the entire carbon fiber tube beam is generated by using the multi-section surface command, including:
[0078] Splines are used to connect points with the same circumferential angle on different section curves to form guide lines, and the envelope surface of the entire carbon fiber tubular beam is generated using the multi-section surface command.
[0079] Embodiment three:
[0080] This embodiment provides a modeling device for a complex-ply carbon fiber tubular beam based on VB and CATIA, comprising:
[0081] Modeling module, used to perform three-dimensional modeling of carbon fiber tubular beams using a macro program written in VB;
[0082] An extraction module is used to extract the outer surface of the carbon fiber tubular beam from the results of 3D modeling;
[0083] The smoothing module is used to intersect the outer surface with the plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve and perform smoothing on the cross-sectional curve;
[0084] The envelope surface generation module is used to generate the envelope surface of the entire carbon fiber tube beam based on the cross-sectional curve after smoothing processing using the multi-section surface command;
[0085] Assembly module, used to use the envelope surface as the outer surface and installation interface of the carbon fiber tube beam to guide the design of related parts and assembly tooling;
[0086] In this embodiment, the principle of smoothing the cross-sectional curve is:
[0087] The distance between the envelope original curves of the carbon fiber tube beam is as small as possible;
[0088] In this embodiment, before the 3D modeling of the carbon fiber tubular beam is performed using the macro program written in VB, the following steps are also included:
[0089] The standard stiffness and strength design results are used as a fixed-form ply table to facilitate macro program reading;
[0090] The axis and inner surface of the carbon fiber tubular beam are used as inputs to the macro program;
[0091] In this embodiment, the three-dimensional modeling of the carbon fiber tubular beam using a macro program written in VB includes:
[0092] Execute the macro program written in VB to sort and merge the ply data, segment the input line surface, and use the thickening surface command to perform 3D modeling of the carbon fiber tubular beam;
[0093] In this embodiment, the shape of the outer surface is stepped;
[0094] Smoothing of section curves includes:
[0095] The cross-sectional curve is divided into irregular step-shaped segments and circular arc segments, the cusp of the step-shaped segment is selected to form a spline, the G2 continuity at the connection point with the circular arc segment is used as the constraint of the spline, and the step-shaped portion of the cross-sectional curve is replaced by the spline to obtain the cross-sectional curve after smoothing.
[0096] In this embodiment, based on the cross-sectional curve after the smoothing process, the envelope surface of the entire carbon fiber tube beam is generated by using the multi-section surface command, including:
[0097] Splines are used to connect points with the same circumferential angle on different section curves to form guide lines, and the envelope surface of the entire carbon fiber tubular beam is generated using the multi-section surface command.
[0098] Embodiment 4:
[0099] An embodiment of the present invention provides an electronic device including a memory and a processor, including:
[0100] A memory storing executable instructions;
[0101] The processor runs the executable instructions in the memory to implement a modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA.
[0102] The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc.
[0103] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present invention, the processor is used to run the computer-readable instructions stored in the memory.
[0104] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present invention.
[0105] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0106] Embodiment five:
[0107] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, a modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA is implemented.
[0108] The computer-readable storage medium according to the embodiment of the present invention stores non-transitory computer-readable instructions, and when the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the above-mentioned methods of the embodiments of the present invention are executed.
[0109] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).
[0110] The modeling method of the complex-laid carbon fiber tubular beam based on VB and CATIA proposed in the embodiment of the present invention realizes the automatic reading of the layup data and the automatic modeling of the tubular beam, greatly improves the work efficiency and avoids errors; standardizes the layup design results, and only needs to update the table when the design is changed, avoiding re-modeling; generates the outer envelope surface of the beam as the installation interface of the parts (such as ribs, brackets, etc.) that have an assembly relationship with the tubular beam, which is close to the actual product and also facilitates the design and manufacture of other parts, molds and products.
[0111] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A modeling method for a complex-ply carbon fiber tubular beam based on VB and CATIA, characterized in that: include: Use the macro program written in VB to carry out three-dimensional modeling of carbon fiber tubular beam; Extracting the outer surface of the carbon fiber tubular beam from the result of the three-dimensional modeling; Intersecting the outer surface with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and performing a smoothing process on the cross-sectional curve; Based on the cross-sectional curve after smoothing, an envelope surface of the entire carbon fiber tubular beam is generated using a multi-section surface command; The envelope surface is used as the outer shape surface and installation interface of the carbon fiber tubular beam to guide the design of related parts and assembly tooling.
2. The method according to claim 1, characterized in that: The principle of smoothing the cross-sectional curve is: The distance between the envelope original curves of the carbon fiber tubular beam is as small as possible.
3. The method according to claim 1, characterized in that Before using the macro program written in VB to perform 3D modeling of the carbon fiber tubular beam, the following steps are also included: The standard stiffness and strength design results are used as a fixed-form ply table to facilitate the reading of the macro program; The axis and inner surface of the carbon fiber tubular beam are used as inputs of the macro program.
4. The method according to claim 1, characterized in that: The 3D modeling of carbon fiber tubular beams using a macro program written in VB includes: Execute the macro program written in VB, sort and merge the ply data, segment the input line surface, and use the thickening surface command to perform three-dimensional modeling of the carbon fiber tubular beam.
5. The method according to claim 1, characterized in that The outer surface is in a stepped shape.
6. The method according to claim 5, characterized in that The smoothing process of the cross-section curve includes: The cross-sectional curve is divided into irregular step stages and arc segments, the cusp of the step stage is selected to form a spline, the G2 continuity at the connection point with the arc segment is used as a constraint of the spline, and the step stage part of the cross-sectional curve is replaced by the spline to obtain a smoothed cross-sectional curve.
7. The method according to claim 5, characterized in that Based on the cross-sectional curve after the smoothing process, the envelope surface of the entire carbon fiber tube beam is generated by using a multi-section surface command, including: The spline is used to connect points with the same circumferential angle on different cross-sectional curves to form a guide line, and the envelope surface of the entire carbon fiber tubular beam is generated using a multi-section surface command.
8. A modeling device for complex-ply carbon fiber tubular beam based on VB and CATIA, characterized in that: include: Modeling module, used to perform three-dimensional modeling of carbon fiber tubular beams using a macro program written in VB; An extraction module, used for extracting the outer surface of the carbon fiber tubular beam from the result of the three-dimensional modeling; A smoothing module, used for intersecting the outer surface with a plane family perpendicular to the length direction of the carbon fiber tube beam to obtain a cross-sectional curve, and performing a smoothing process on the cross-sectional curve; An envelope surface generation module, used to generate the envelope surface of the entire carbon fiber tubular beam by using a multi-section surface command based on the cross-section curve after smoothing; An assembly module is used to use the envelope surface as the outer shape surface and installation interface of the carbon fiber tubular beam to guide the design of related parts and assembly tooling.
9. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA according to any one of claims 1 to 7.
10. 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 modeling method of a complex-ply carbon fiber tubular beam based on VB and CATIA according to any one of claims 1 to 7 is implemented.