A Lisp-based program for calculating the weight and center of gravity of curved outer plating of a ship

Through the calculation program based on Lisp language, the weight center of gravity calculation of the outer plate of the hull surface is automatically processed, which solves the problems of inaccurate calculation and low efficiency in the prior art, and achieves efficient and accurate weight center of gravity output.

CN114091135BActive Publication Date: 2024-12-03CHINA SHIPPING IND JIANGSU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111412285.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-12-03
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

In the calculation of the weight center of gravity of the outer hull, the line type changes in the length direction are ignored, the calculation is inaccurate, and the graphics interactivity is poor, and a large amount of manual input and manual processing are required, resulting in inefficiency.

Method used

Using a calculation program based on Lisp language, the surface outer plate weight calculation program is called through AutoCAD, the rib position information and layer information are input, the line type is automatically detected and converted, three-dimensional data conversion and micro-unit calculation are performed, and the weight center of gravity data is output to the EXCEL table. .

Benefits of technology

The accurate calculation of the outer plate weight center of gravity is achieved, which reduces manual workload and improves calculation efficiency. The 2-3-day calculation time of the traditional method is reduced to 1-2 hours.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114091135B_ABST
    Figure CN114091135B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer program processing, and discloses a calculation program for the weight and gravity center of a curved outer plate of a hull based on the Lisp language. The program adopts the AutoLISP secondary development language in the AutoCAD software, and can quickly calculate the structural weight of the curved outer plate in the two-dimensional design stage of a ship; the drawings are preprocessed on a computer, and the two-dimensional data of the plate row boundary is automatically obtained, and the data is converted into three-dimensional plate row data according to the coordinate system relationship of the outer plate development diagram and the rib line diagram, so as to calculate the accurate weight of the curved outer plate; at the same time, an EXCEL function for outputting the weight and gravity center data of the outer plate row is provided, so as to facilitate the summary and statistics of the weight of the whole ship. The present invention realizes the calculation of the weight and gravity center of the space curved outer plate structure in the two-dimensional design stage by a computer, which reduces manual participation, and therefore has a very important significance for ship design units to improve the design efficiency and accuracy, and improve the modernization level of enterprise CAD computer-aided design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computer program processing, and in particular to a Lisp language-based calculation program for the weight center of a hull curved outer plate. Background Art

[0002] The calculation of the weight and center of gravity of a ship is related to the ship's buoyancy, anti-sinking, strength and speed. The calculation of the weight and center of gravity of the hull outer plate is an important part of it. In the early stage of design, accurate calculation of the weight and center of gravity of the outer plate lays the foundation for overall performance calculation and accurate quotation.

[0003] At present, most companies manually calculate the weight of the outer plate based on the outer plate development drawing. However, since the outer plate development drawing only considers the development in the rib direction and ignores the linear changes in the length direction, the weight calculation is inaccurate. In addition, since the shapes of individual outer plates are different, their areas and centroids can only be estimated. Some schools have also designed a program for calculating the weight and centroid of the outer plate, but the graphics interactivity is poor. It is necessary to input the boundary lines of each column of the outer plate, generate an intermediate file, and then input the plate thickness information of each column, and finally perform a cyclic calculation. Summary of the invention

[0004] The purpose of the present invention is to provide a calculation program of the weight center of gravity of the curved outer plate of a hull based on the Lisp language, which can calculate and output the weight center of gravity of the curved outer plate of the hull in the two-dimensional design stage of the hull, reduce manual participation, and improve calculation efficiency and accuracy.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A calculation program for the weight and gravity center of a hull curved outer plate based on Lisp language, the calculation program comprising the following steps:

[0007] 1) Call AutoCAD to enter the curved outer plate weight calculation program;

[0008] 2) Input ship position information and layer information;

[0009] 3) Call the drawing preprocessing program to detect the types of rib lines and plate column perimeter lines, automatically convert them into polylines, and detect whether there are gaps in the perimeter of the plate seams. If there are gaps, they will be automatically eliminated;

[0010] 4) Select the calculation range in the outer plate development drawing, identify the outer plate row by color-changing filling, and output the two-dimensional data of the plate row perimeter after verification;

[0011] 5) Calling a coordinate conversion program to convert the two-dimensional data of the plate array perimeter into three-dimensional data;

[0012] 6) Calling the plate array unit calculation program to divide the plate array into a number of micro units according to the three-dimensional data of the plate array, calculating the weight center of gravity of each micro unit and summing them up, and outputting the weight center of gravity of the plate array;

[0013] 7) Call the output EXCEL program to output the weight and center of gravity data of the curved outer plate column to the EXCEL table.

[0014] Compared with the prior art, the present invention has the following advantages:

[0015] The present invention can use a program to obtain three-dimensional information based on the shell plate development diagram and the rib line diagram, accurately calculate the weight center of gravity of the shell plate, and greatly reduce the manual workload. The program automatically calculates the weight center of gravity data of each plate row according to the plate thickness mark and outputs it to EXCEL, which greatly improves the efficiency of calculating the weight center of gravity of the shell plate. Taking the currently produced bulk carrier as an example, the traditional estimation method takes 2-3 days. Using this calculation program, the calculation time can be reduced to 1-2 hours. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is the overall framework diagram of the software;

[0017] Figure 2 This is the main interface of the curved outer plate weight center of gravity calculation program;

[0018] Figure 3 The program automatically draws the corresponding plate row diagram on the rib line diagram;

[0019] Figure 4 A schematic diagram of the plate array generated by the program with color-changing fills; DETAILED DESCRIPTION

[0020] The specific embodiments of the present invention are further explained below in conjunction with the drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, ordinary technicians in this field, without making any creative work, will make various equivalent modifications to the present invention that fall within the scope defined by the claims attached to this application.

[0021] like Figures 1 to 4 As shown in the figure, a calculation program for the weight and gravity center of the curved outer plate of a hull based on the Lisp language is compiled using the AutoLISP secondary development language in the AutoCAD software. The calculation program for the weight and gravity center of the curved outer plate is composed of the following files (the source program is omitted):

[0022] ssw.dcl function dialog box;

[0023] ssw.lsp master control program;

[0024] 2Dto3D.lsp coordinate conversion program;

[0025] Plate_cell_calc.lsp Plate cell calculation program;

[0026] Excel_export.lsp exports EXCEL program.

[0027] This program runs in the AutoCAD environment. First, copy ssw.dcl to the AutoCAD root directory:

[0028] (1) Run AutoCAD and enter the command: ssw in the command prompt area. The main interface of the curved outer plate weight and center of gravity calculation program will appear.

[0029] (2) In the "Basic Information" interface, enter the rib position number separated by commas; enter the corresponding rib distance separated by commas; enter the plate seam and rib line layer names, or click the "Rib Line Layer" button and the "Plate Seam Layer" button to select the entities in the AutoCAD interface to obtain the corresponding layer names. (3) In the "Drawing Preprocessing" interface, click the "Rib Line Standardization" button to automatically detect the current drawing and convert the rib line to a LWPOLY LINE type polyline to facilitate the program to identify the entity; click the "Rib Line Remove Redundant Vertices" button to automatically delete the vertices at the position where the slope changes the least, thereby improving the subsequent calculation efficiency; click the "Plate Seam Line Standardization" button to automatically detect the current drawing and convert the plate seam to a LWPOLY LINE type polyline; enter the "Maximum Gap" and click the "Eliminate Gap Between Plate Seams" button to automatically detect the gap between plate seams and eliminate the gap to facilitate the subsequent plate column filling generation.

[0030] (4) Click the "Rib Line Numbering" button in the "Coordinate System" interface, obtain the rib line element list through the bar selection, enter the starting rib position number and step length, generate a rib position number list, traverse the list, and add rib position mark extended data to each rib line element; click the "╬" button to select the origin of the rib line drawing, the bottom line of the mid-longitudinal ship, and the origin of the shell expansion drawing in the AutoCAD interface; click the "√" button to display the currently selected point or line in the AutoCAD interface for easy inspection.

[0031] (5) Click the "Select Statistical Range" button, select the statistical range of the shell plate development drawing in the AutoCAD interface, and the program will generate plate columns by color-changing filling. After checking and confirming the plate columns, the program will call the coordinate conversion subroutine to automatically draw the corresponding plate columns on the rib line diagram. The program will call the plate column unit calculation program to calculate the weight center of gravity of each plate column and output it to the "Shell Plate Weight Center of Gravity Result" interface. (6) If you continue to count other ranges, click the "Select Statistical Range" button and repeat the previous step.

[0032] (7) Click the "Output results to EXCEL" button to write the calculated data of the outer plate weight and center of gravity into EXCEL.

[0033] (8) Click the "Exit" button to close the program interface.

[0034] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A Lisp-based program for calculating the weight and center of gravity of the curved outer plate of a hull. It is characterized in that The calculation procedure comprises the following steps: 1) Call AutoCAD to enter the curved outer plate weight calculation program; 2) Input ship position information and layer information; 3) Call the drawing preprocessing program to detect the types of rib lines and plate column perimeter lines, automatically convert them into polylines, and detect whether there are gaps in the perimeter of the plate seams. If there are gaps, they will be automatically eliminated; 4) Select the calculation range in the outer plate development drawing, identify the outer plate row by color-changing filling, and output the two-dimensional data of the plate row perimeter after verification; 5) Calling a coordinate conversion program to convert the two-dimensional data of the plate array perimeter into three-dimensional data; 6) Calling the plate array unit calculation program to divide the plate array into micro units according to the three-dimensional data of the plate array, calculating the weight center of gravity of the micro units one by one and summing them up, and outputting the weight center of gravity of the plate array; 7) Call the output EXCEL program to output the weight and center of gravity data of the curved outer plate column to the EXCEL table.

Citation Information

Patent Citations

  • Live body livestock carrier deck resilient connection

    CN208069945U

  • Foundation-managed future agriculture, fishery and forestry integrated small to medium enterprise system

    JP2015167470A