Parametric modeling is an important technical means to solve engineering problems by using numerical calculation software. The special structural characteristics of wound pressure vessels complicate the process of parametric modeling [
17]. Chen Dan [
18] determined the winding tension value through the lining stability analysis, and gave the design of the winding layer by the grid theory. Combined with the linear design and simulation, the winding process of two yarns, five tangent points, and geodesics was determined. Based on this parameter, the accurate modeling of the winding pressure vessel was realized, and the strength analysis of the structure was completed by the finite element software ABAQUS. Using the designed winding parameters, through the four-axis CNC filament winding machine, using T800 carbon fiber and EW-6F epoxy resin, the winding process of two-strand yarn, five-tangent point, and geodesic line was used to complete the molding of a plastic liner carbon fiber fully wound type IV composite pressure vessel. During the winding process, the fibers are evenly and stably distributed on the surface of the inner liner. The number of complete cycles required for the spiral layer to be wrapped is consistent with the line shape simulation results, which confirms the accuracy of the design parameters. Zeng Wenlei [
19] determined the angle of the fiber winding layer of the pressure vessel according to the winding forming theory. The spiral winding angle is 19.38°, the circumferential winding angle is 89.14°, the thickness of the winding layer is 0.375 mm, the winding layer is three layers, and the fiber layer is six layers. By establishing the finite element model of the container on the basis of CADWIND, the line type, number of layers, angle, and thickness of the winding layer are designed and analyzed as the finite element model data, and compared with the subsequent experiments. In the hydraulic blasting experiment, after 8 h of curing, the finished product is glued and unglued at the head. The two groups of comparative experiments show that the sealing performance of the glue group is good, which is consistent with the finite element simulation results, and the error is 1.2%. The experimental process and the specific blasting experimental data show that the results of CADWIND and finite element simulation analysis are correct, and the parameters of analysis and design are feasible. From the above research status, it can be seen that the model data obtained by the finite element software to simulate the filament wound composite pressure vessel can be mutually verified with the experimental results, and the error is small. Therefore, it is feasible to simulate the filament wound composite pressure vessel by APDL in this paper.
2.2. OpenSees Program Analysis and Calculation
As an influential analysis program and development platform abroad, OpenSees also has the following outstanding features: easy to improve, easy to develop collaboratively and maintains international synchronization. OpenSees is mainly used for seismic response simulation of structure and rock [
22]. The analysis that can be realized includes simple static linear elastic analysis, static nonlinear analysis, section analysis, modal analysis, pushover pseudodynamic analysis, dynamic linear elastic analysis, and complex dynamic nonlinear analysis; it can also be used to analyze the reliability and sensitivity of structures and geotechnical systems under earthquake action. Since its launch in 1999, the software has been continuously upgraded and improved, adding many new materials and units, introducing many mature Fortran library files for its use (such as FEAP, and FEDEAS materials), updating efficient and practical algorithms and convergence criteria, allowing multi-point input seismic wave records, and continuously improving the memory management level and computational efficiency in the operation, allowing users to control the analysis at the script level.
Based on the existing MITC4 shell element in OpenSees, Lu et al. [
23] developed the layered shell section and the corresponding two-dimensional concrete constitutive and uniaxial reinforcement constitutive, and verified the reliability and versatility of the calculation model through a large number of shear wall tests. On this basis, Lu Xinzheng et al. used OpenSees software to establish a set of models suitable for high-rise and super high-rise structures, that is, the beam-column adopts the fiber cross-section model, and the shear wall and core tube adopt the layered shell model. The nonlinear elastic-plastic numerical simulation of several super high-rise buildings was carried out, and the conclusion was consistent with the numerical simulation results provided by the commercial software MSC.Marc, which confirmed the feasibility and reliability of the layered shell model applied to the seismic response study of super high-rise structures. This has certain guiding significance for simulating finite element model calculation with OpenSees.
OpenSees modeling calculation can be divided into the initial setting, node space position, constraint definition, interface attribute definition, shell element definition and composition, load definition, record output definition, static analysis definition, and calculation time definition.
When creating a finite element model, it is necessary to first determine the parameter values of the selected materials. The material parameters to be determined by the ShellMITC4 shell element model include the parameters of isotropic elastic material (nDMaterial ElasticIsotropic), uniaxial elastic material (uniaxialMaterial Elastic), material specification in the layered shell (nDMaterial PlateRebar), and section definition of the layered shell (section LayeredShell). The properties of uniaxial fiber materials are shown in
Table 3.
The composite material has a total of three fiber layers in the barrel section, and different fiber winding angles and fiber thicknesses are set respectively. The ply scheme is shown in
Table 4 and
Table 5.
The shell element used in this paper is the ShellMITC4 element, so the material command needs to be modified. The uniaxial elastic material is modified to a three-dimensional elastic material suitable for shell element analysis, that is, the elastic material considering Poisson’s ratio. The ShellMITC4 element improves the bending performance of the thin plate by using a bilinear isoparametric representation combined with modified shear field interpolation. The so-called shell element has in-plane stiffness (membrane element, plane stress element), and also has in-plane stiffness (plate element). ShellMITC4 element is a four-node rectangular isoparametric element, as shown in
Figure 6, the layered shell section model is shown in
Figure 7, and the same shape function is used to describe the element displacement and element coordinates [
24]. Although the element has a small number of nodes and a simple displacement mode, the discrete Mindlin technique is used to interpolate the transverse shear strain independently, so it can effectively eliminate the problems of shear locking and pseudo zero energy mode.
It is impossible to output stress-related data during output calculation. According to the literature, at present, the output mechanism of macroscopic force, displacement, and other information of elements or components (structures) in OpenSees is relatively mature, but the output mechanism of microscopic stress is still not perfect. From the code of OpenSees, it can be seen that the numerical model has no element stress output interface at the cross-section level, and no element stress output interface is found by viewing other groups of code. Therefore, the numerical model can only output the internal force and displacement of the element, but it cannot output specific stress information. Therefore, the form of directly recording stress information is adopted, and the corresponding order between the output data and the unit cannot be clearly defined in this form. In order to solve this problem, the output data need to be screened, and the screening process is shown in
Figure 8.
(1) The interface program is written in C + + language to output stress. According to the characteristics of OpenSees software and the layered shell model’s programming structure, the stress information’s position is determined. Then the interface program is added to the programming structure of OpenSees, and OpenSees is recompiled to obtain a new OpenSees execution program [
25].
(2) The composite pressure vessel is simulated to verify the program of the stress output interface. In this paper, the recompiled OpenSees program is used to simulate the existing tests, and the stress data of the composite pressure vessel are output and filtered. Firstly, according to the characteristics of the output data, the position of each displacement convergence step is determined in time. At the same time, the stress value of each element is determined by the order of elements in space and the order of output data.
The data filtering work includes two aspects: on the one hand, according to the characteristics of the output data, the position of the convergence step of each displacement step is determined in time; on the other hand, the corresponding relationship between the order of the unit and the order of the output data is determined in space, and the stress value of each unit is determined.
Combined with the above-mentioned design of the ply scheme, if APDL is used for calculation and analysis, only one data result of the scheme can be obtained at a time. For different scheme designs, it is necessary to repeatedly model and modify the parameters, and the output data file needs to be saved as many times as possible, otherwise, it cannot be retained for subsequent verification. That is, it uses the OpenSees parametric language to calculate, but also needs to write multiple running files, and undergo multiple runs to obtain the required data files. Based on these problems, a set of programs that can automatically analyze and process data is written. When writing the TCL file, for the same model, its node coordinates, unit information, constraint settings, load values, etc., are unchanged. What needs to be changed is only the material setting part and some parameters of the file output part. Therefore, only the material parameters of a specific row need to be modified, then multiple tcl files are output cyclically, and then the bat file (input OpenSees running environment variables, and the path of various library files) is written. It eliminates the process of compiling in the vs environment, and finally modifies the last line in the bat file so that multiple cmd windows can be opened simultaneously for parallel computing, greatly save computing time and improving efficiency.
After the completion of the calculation, the data are processed, and the output data file is extracted by Python, MATLAB, and other tools. The simulation results of composite pressure vessels with different ply modes are compared by different methods: the comparison of APDL simulation and OpenSees simulation results, as shown in
Figure 9; the comparison of node displacement diagrams obtained from different angles of ply under OpenSees is shown in
Figure 10; the comparison of node displacement diagrams obtained by different thickness layers are shown in
Figure 11.
It can be seen from
Figure 9 that the trend of node displacement simulated by different methods under the control variables is the same, and the numerical values are close. Therefore, the results of OpenSees simulating shellMITC4 can be trusted.
It can be seen from
Figure 10 that the changing trend of node displacement is not large. With the increase of different ply angles, the node displacement also increases, and the range of fluctuation also gradually increases. In this figure, the scheme with a ply angle of 20°, −20°, and 0° has the most stable displacement and small fluctuation range.
It can be seen from
Figure 11 that the displacement of the nodes in the previous schemes does not change much, and the fluctuation range is small. However, when the thickness gradually increases, the displacement of the nodes changes greatly, and the displacement of individual nodes increases sharply.
The stress that can be outputted by OpenSees is plane stress, while the output in APDL is the first, second, and third principal stresses. Therefore, it is necessary to solve the principal stress and the main plane direction of the point by six stress components at any point. The common methods are the algebraic method, the Mohr circle method, and the three-dimensional stress state [
26,
27,
28].
In this paper, the equilibrium equations and real symmetric matrices in three directions are listed through the three-dimensional stress state, and the eigenvalues are solved. The eigenvalue solution is the main stress, and the first, second, and third principal stresses are distinguished according to the absolute value [
29].
The listed real symmetric matrices:
Thus, the corresponding triple principal stress: the corresponding triple main direction: the process of solving is the process of A solving eigenvalues [
30].
The stress value comparison diagram of different schemes obtained by the processed data is as follows: the comparison diagrams of the stress values of different schemes obtained from the processed data are shown in
Figure 12 and
Figure 13.
When the ply angle is 45, −45, 0, the stress value decreases with the increase of the ply thickness, and the decreasing trend become smaller and smaller.
In the case of a thickness of 0.002 m, with the continuous change of the ply angle, the stress value decreases first and then increases, but the change range is not large.
It can be seen from the above that there is no problem with the output stress port and output stiffness matrix port when OpenSees calculates the finite element model, and the output file content is chaotic and will not be arranged in a regular format. Therefore, it is necessary to modify the source program and write the applicable Python or MATLAB program to solve these problems.