Application of Basis Functions for Hull Form Surface Modiﬁcation

: Basis functions are key in constructing interpolation equations in hull surface modiﬁcation based on radial basis functions (RBF) interpolation. However, few have studied the selection of basis functions in depth. By comparing several typical basis functions through a theoretical analysis and two-dimensional modiﬁcation examples, the Wendland ψ 3,1 (W) function is selected. The advantages of hull form surface modiﬁcation based on W function interpolation are further validated through a case study. Finally, the modiﬁcation method is used to optimize a trimaran model. An optimal hull form with fair lines is obtained, and its wave-making resistance coefﬁcient and total resistance are reduced by 8.3% and 3.8%, respectively, compared to those of the original model. These ﬁndings not only further illustrate that the W function is relatively suitable for hull form surface modiﬁcation, but also validate the feasibility and value of the RBF interpolation-based surface modiﬁcation method in engineering practice.

To complete the fine optimization of hull lines, Xu et al. [18] tracked the development of a classified optimization program, which consisted of five layers and illustrated that CFD codes are suitable for optimizing hull lines in order to improve drag performance. Harries et al. [19] proposed a parameterization method, constructed a model using the Friendship software, and performed hydrodynamic calculations using SHIPFLOW software. Peri et al. [20,21] studied a variable fidelity method and accelerated the optimization process for a multi-objective design problem using the free-surface Reynolds-averaged Navier-Stokes (RANS) method. Tahara et al. [22] optimized the stern and the combined bulbous bow and sonar dome of a ship based on finite difference gradients. Peri et al. [23] introduced a simulation-based design optimization technique to solve engineering optimization problems involving objective functions and nonlinear constraints that are complex and have a high computational cost. By combining the Rankine source method and nonlinear programming (NLP), Zhang et al. [24] optimized hull lines with the minimum wave-making resistance RW based on CFD. Peri [4] proposed a method that can optimize the robustness of the conceptual design of a bulk cargo ship based on uncertain operating and environmental conditions, and applied the particle swarm optimization (PSO) algorithm in the global minimization process, thereby maximally reducing the expected value and standard deviation of the per unit transportation cost. Since then, the feasibility of robust design optimization (RDO) based on actual operating ship data has been demonstrated. Grigoropoulos et al. [25] proposed an improved hull line optimization method without considering calm water resistance and its sea-keeping ability. Yang et al. [9] developed an efficient and effective hull surface modification technique for CFD-based hull line optimization in order to modify the local and overall hull lines. Guerrero et al. [26] present a shape optimization workflow entirely based on open-source tools; it is fault tolerant and software agnostic, allows for asynchronous simulations, and has a high degree of automation.
The hull surface modification method plays an important role in a hull form optimization framework. There are currently two main types of hull surface modification methods for hull form optimization. The first type modifies the surface of a certain ship area by changing the coordinates of the control vertices of the non-uniform rational basis spline (NURBS) and the basis spline (B-spline) of this area or by directly modifying the coordinates of the hull offsets based on the mathematical expressions (NURBS and B-spline) of the hull surface. The second type is composed of hull form parameter-based parameterization methods. These methods change the hull form by extracting the typical characteristic parameters for the geometric shape of the hull and changing them through functions.
Form modification methods that directly use offsets or grid control vertices as variables can generate complex hull forms. However, these methods require a large number of control points to modify a certain hull surface area, which can result in an increase in the optimization time. If there are a relatively large number of variables, these methods may be unable to ensure fair local hull lines. In light of this, researchers have developed an integration method, a Bezier patch method and a free form modification method. These methods essentially change the coordinates of the control points, but have significantly fewer optimization variables and are also able to ensure fair hull lines. The shortcoming of the integration method is that it requires a certain number of parent ships, otherwise it cannot obtain the maximum amount of hull forms by integration. The Bezier patch method is mainly applicable to local form modification. An increase in the number of design variables can result in a significant increase in the computational time. The free form modification method is applicable to the overall form modification but involves a relatively large number of design variables.
The advantages of the parametric modeling method lie in the fact that each control parameter has a definite geometric meaning and can be flexibly defined manually, and that the control parameters can be directly used as design variables for overall and local ship optimization problems. However, it has the following main shortcoming. The parametric design method constructs a geometric model of the ship in a fully constrained environment. All the information required by the hull model is defined by parameters or constraints, and the designer can only design with the already defined parameters. Each parametric model can only be used to design a certain specific problem, and a new model requires the construction of a new parametric model. Due to its limitation, parameterization cannot meet the requirements of the conceptual design of ships, thus restricting the development and application of the parameterization technique in ship design [27]. Feng et al. [12] proposed an improved fairness criterion and calculation method based on Harries's parameterization approach, and applied them in the parametric modeling of ships.
In recent years, surface modification methods based on Radial Basis Function (RBF) interpolation have been developed. Radial basis function interpolation is an effective tool in approximation theory, and it is also a method in the interpolation of scattered data. It has the advantages of simple calculation method, less time, flexible node configuration and high precision. At present, radial basis function interpolation technology has been widely used as a tool for interpolating or approximating scattered data, and has been widely used in mesh deformation, large dataset interpolation, pattern registration, and geology. C. Groth et al. [28] applied RBF mesh deformation to structural optimization; Vaclav Skala [29] used tightly supported radial basis functions in large dataset interpolation and analyzed interpolation properties; Deng [30] combined global deformation and local deformation, based on compactly supported radial basis functions' complete cranial registration; Haiyang et al. [31] performed terrain interpolation based on region decomposition and Schwarz parallel principle, constructed a global interpolation matrix based on all terrain sampling data with compactly supported radial basis functions, and adaptively solved the sub-region interpolation node tight support radius. Kim et al. [32,33] used the RBF interpolation method to modify hull surfaces and optimize the drag performance of the KRISO container ship (KCS) and Series 60 hull forms, obtaining high-performance hull form schemes. Fuxin Huang et al. [34] developed a hydrodynamic optimization tool based on computational fluid dynamics to generate bulbous by surface deformation based on radial basis function interpolation. Shen et al. [35] studied the application of the RBF interpolation method in hull form optimization and used a hull form optimization platform to achieve an automatic modification of the bow and stern surfaces of the KCS hull form. Buhmann [36], Biancolini [37] and other scholars have also conducted in-depth research on the theoretical and engineering applications of radial basis functions. All of the above have laid a good foundation for the research in this paper.
In the RBF interpolation method, the key to the interpolation equation lies in the selection of the basis function. The basis function determines how the equation passes through each sample point. The relevant studies focus on explaining the basic principle of the RBF interpolation technique and the process by which it is applied in hull surface modification. Based on several typical basis functions, this study focuses on thoroughly investigating the selection of the basis function from the perspectives of theory and application. By comparing several typical basis functions through a theoretical analysis and two-dimensional modification examples, the Wendland ψ3,1 (W) is effective in local contraction, compression, and distortion, and can result in a relatively gentle transition to the boundaries and preserve the geometric relations in the original graph to a relatively satisfactory level. Additionally, by adjusting the support radius, the W RBF can have the properties of both local and global basis functions within a certain range, and can thus be used flexibly. Furthermore, the W function is compactly supported and solvable, and is also advantageous in terms of computational time. Therefore, it is suitable to use the W function as a basis function to modify hull surfaces.
This article is organized as follows. Section 1 introduces the basic theory of the RBFbased hull surface interpolation method and the establishment of a surface modification interpolation equation. Section 2 introduces several typical basis functions. Section 3 presents the application of typical basis functions in two-dimensional (2D) surface and grid point modification problems. Section 4 presents the application of the Wendland ψ3,1 (W) RBF interpolation-based surface modification method in hull surface modification. Section 5 presents the application of the W RBF interpolation-based surface modification method in hull form optimization and analyzes the optimization results. Section 6 summarizes this study, and provides an outlook for future research.

RBF-Based Hull Surface Interpolation
The RBF interpolation method is a precise interpolation method. The surface generated by the RBF interpolation method passes through each known sample point.

Basic Theory
An RBF uses the Euclidean distance x − x i between an arbitrary point x i and a certain center x in the space as an independent variable. Each RBF has the following form: A multi-variable interpolation problem is fundamentally described as a problem of making a given set of discrete data {x i , f i }, i = 1, 2, . . . , n meet the following interpolation conditions: This problem can be solved using the RBF interpolation equation in the following form.
where the function φ( x − x i ) is an RBF and λ i is the weight coefficient. By substituting the known sample points into Equations (2) and (3), the following system of linear equations with respect to λ i are obtained: Thus, the above equation can be simplified as follows: If A is nonsingular, then Equation (5) can be simplified as follows: or an arbitrary data point set {x i , f i } ∈ R d ⊗ R(i = 1, · · · , n), the necessary and sufficient condition for the above interpolation problem to have a unique solution is that for any two different {x i }, the symmetric matrix A is definitely positive when x i , i = 1, · · · , n are different from one another.

Construction of a Surface Modification Interpolation Equation
When this interpolation method is used to modify a hull surface, the following form is used in the interpolation equation: It can be proven that Equation (7) is an interpolation equation. In Equation (7), S(X) is the displacement of a certain control point X = (x, y, z) on the hull surface; n is the number of control points; X − X i is the Euclidean distance between any arbitrary point X i and the control point X; φ is the selected RBF; and p(X) is a low-order polynomial of the following form: The degree of wrinkling of the surface reflects the amount of energy of the surface. To make the surface as smooth as possible, the surface energy should be as low as possible.
Equation (7) can minimize the energy of the surface [38], that is, the smoothness of the surface is guaranteed. Additionally, it can be determined that the interpolation equation consists of two parts. The first part, which consists of a linear superposition of an n number of radial interactions, characterizes the essential difference in the shape between the original point set and the modification target point set. The second part is a linear polynomial, which ensures surface continuity and corresponds to affine transformations between the two point sets, including rotation and translation. The following shows the second part in detail: In the geometric transformation, A represents a composite transformation involving rotation, scaling, and shear transformation, and T represents the translation variable. The interpolation equation in this form accurately describes the modification of the original point set to the modified target point set.
The coefficients λ i and c i in the equation are obtained by changing the coordinates of the control points: where f i represents the change in the coordinates of the control points. The changes in the coordinates before and after the movement of n control points are substituted into the above equation. After adding a polynomial p(x) to ensure that the equation has a solution, the orthogonal constraints of the weight coefficients are also considered: Based on the above, a matrix of the following form is obtained: Let x n y n z n 1 Thus, Equation (12) can be simplified as follows: By expanding Equation (12), an independent equation in each direction (x, y and z) is obtained: A matrix equation in the same form as Equation (13) can be obtained in each direction (x, y, and z). The RBF interpolation ultimately boils down to solving the system of linear equations shown in Equation (13); i.e., the inversion of a high-dimensional matrix. In this study, the lower-upper (LU) decomposition method is employed to rapidly solve this system of equations. In hull surface modification, two types of points are needed. One type is variable points, whose coordinates are used as design variables. The hull surface is modified through the variable points. The other type is fixed points, whose coordinates are fixed.

Typical Basis Functions
Based on Section 2, the key to the construction of the interpolation equation in Equation (7) lies in the selection of the basis function. The basis function determines how the equation passes through each sample point. A number of basis functions are suitable for multi-variable data interpolation and can be categorized into three types, namely, global basis functions, local basis functions, and compactly supported basis functions (CSRFs). The value of a global basis function increases as the Euclidean distance increases and is non-zero at any point. The value of a local basis function decreases as the Euclidean distance increases and is also non-zero at any point. The value of a CSRF decreases as the Euclidean distance increases and is always zero after the Euclidean distance reaches a certain specific value (Table 1) [39]. The following introduces several common basis functions.

Name Function Form
Thin-plate spline (TPS) (1) TPS The coefficient matrix established using the TPS is conditionally positively defined, and the elastic thin plate represented by the interpolation function has the minimum deformation energy. The TPS RBF is suitable for elastic image registration in the biological and medical fields. Extensive research has been conducted in this area, and excellent results have been achieved [40].
(2) MQ The MQ is also a conditionally positively defined global RBF, which is suitable for the interpolation of irregularly distributed data in a high-dimensional space, and has been extensively used in such fields as hydrographic surveying, geographical mapping, geology, and mining.
(3) G The G is a characteristic function of the Fourier transform and is also a positively defined local RBF. Even if there is a lack of prior knowledge on the sample data, the G still has exceptional learning and generalization abilities and is suitable for fields such as machine learning, filtering, and neural network construction.
(4) W Wendland et al. constructed a basis function with a compact support in 1995 [41], which has the following uniform form: The RBF in the above form has the following three characteristics: (a) Compact support Figure 1 shows the changes in the value of the W basis function with the Euclidean distance. Within the support radius, the impact of the central point and the gradient of the function both gradually decrease as the Euclidean distance increases; outside the support radius, the value of the function is always zero. (c) Complexity The calculation complexity includes three aspects: (1) the time complexity of constructing Equation (13); (2) the time complexity of solving Equation (13); and (3) the time complexity of calculating the function value using Equation (7). For a global basis function, the time complexity of constructing a coefficient matrix A is O(n 2 ). As all the elements on the diagonal lines in the coefficient matrix are zero, and all other elements are non-zero, the spatial complexity is O(n 2 ). When solving Equation (13), some iterative algorithms with limited steps can be used to reduce the complexity to O(n 2 ). The complexity of calculating the interpolation function value is O(n). When a CSRF is used, the coefficient matrix is distributed in a sparse banded pattern, which can significantly reduce the computational complexity. Thus, CSRFs are more suitable for large-scale matrix problems. The TPS RBF and a CSRF are compared in Table 2.

Application of Basis Functions to 2D Modification Problems
In this section, the G, MQ, TPS, and W functions are selected as basis functions, and their properties are compared through some typical 2D modification problems.

Curve Modification
(1) Sinusoidal function modification Five control points (solid circles) are selected from the full cycle of a sinusoidal function from 0 to 4 in the X-axis.
The points at X = 0, 2, and 4 are constrained points. The points at X = 1 and 3 are variable points, whose Y-coordinates change to 0. Additionally, when the Y-coordinate of each point is 0, the graph is considered to be the standard after modification, i.e., the straight line represented by triangles in Figure 2. The four basis functions are used to modify the sinusoidal function. The average error (Table 3) in the distance between the post-modification graph and the standard graph for each basis function is determined, whose expression is as follows: (2) Semicircle expansion Five variable points (solid circles) are selected from a semicircle with a radius of 1 and a center at (0, 0). The coordinates of each variable point expand outwardly by 1 in the radial direction. The semicircle with a radius of 2, represented by triangles in Figure 3, is considered to be the standard graph after modification. The four basis functions are used to modify the semicircle. The average errors are compared in Table 4.    The smaller the average error is, the closer the post-modification graph is to the standard graph. The modification results for the above two examples demonstrate that the average errors for the W basis function are the smallest, followed by those for the G and MQ basis functions, and finally by those for the TPS basis function. This indicates that the modified graphs obtained using the W basis function are closer to the respective standard graphs, and that the W basis function can preserve the geometric relations in the original graphs to a relatively satisfactory level.

Grid Point Modification
In this section, the basis functions are compared through grid point modification. The following metrics are introduced to evaluate the modification results [42].
MaxD: This variable represents the maximum distance between the adjacent points of all the grid points, and indicates the increase in the inter-point distance.
MinD: This variable represents the minimum distance between the adjacent points of all the grid points, and indicates the decrease in the inter-point distance.
Max∆P: This variable represents the maximum displacement of the grid points after modification, and indicates the maximum displacement of a single grid point.
Max∆D: This variable represents the maximum change in the distances from a grid point to its adjacent points before and after modification, and is used to evaluate the smoothness of the modification.
>0.7Max∆P: This represents the percentage of the number of grid points that undergo a displacement greater than 70% of Max∆P after modification to the total number of grid points.
0.3Max∆P-0.7Max∆P: This represents the percentage of the number of grid points that undergo a displacement greater than 30% of Max∆P but less than 70% of Max∆P after modification to the total number of grid points.
<0.3Max∆P: This represents the percentage of the number of grid points that undergo a displacement less than 30% of Max∆P after modification to the total number of grid points.
(1) Grid translation Four variable points located in the center are selected from 21 × 21 evenly arranged coordinate points and translated over a certain distance along the 45 • direction. Four constrained points are selected from the four boundary corners, i.e., their coordinates undergo no change. Figure    (2) Grid rotation Four variable points in the center are selected, and their coordinates are rotated counterclockwise by 45 • . Additionally, the displacements of the four points at the boundary corners are constrained. Figure 5 shows the modification of all the coordinate points obtained by the interpolation. Comparison of the modification results as shown in Table 6.   (3) Grid expansion Four variables in the center are selected, and their coordinates are expanded outward by a certain distance. Additionally, the displacements of the four points at the boundary corners are constrained. Figure 6 shows the modification of all the coordinate points obtained by the interpolation. Comparison of the modification results as shown in Table 7.  (4) Arbitrary grid modification Six variable points in the center are selected, and their coordinates are changed arbitrarily. Additionally, the displacements of the four points at the boundary corners are constrained. Figure 7 shows the modification of all the coordinate points obtained by the  (4) Arbitrary grid modification Six variable points in the center are selected, and their coordinates are changed arbitrarily. Additionally, the displacements of the four points at the boundary corners are constrained. Figure 7 shows the modification of all the coordinate points obtained by the interpolation. Comparison of the modification results as shown in Table 8.
The above four modification examples demonstrate that the G's MaxD has a relatively high value, its MinD has a relatively low value, and the changes in the coordinates of the majority of the points are less than 0.3Max∆P. This suggests that the G RBF modifies a relatively small area relatively intensively (as clearly evidenced in Figure 7b) and fails to achieve a sufficiently smooth outward transition, which is in agreement with the properties of local basis functions.
When the MQ is used, Max∆P is extremely small and the changes in the coordinates of more than half of the points are between 0.3Max∆P and 0.7Max∆P, indicating a relatively large modification-affected area and relatively gentle modification results.  Compared to the other three basis functions, when the TPS is used, the changes in the coordinates of the majority of the points are greater than 0.3Max∆P, indicating the largest modification area. In addition, there is a relatively small change in the inter-point distance (Max∆D is relatively small), i.e., the movements of all the points exhibit a relatively uniform trend. When the MQ and TPS are used, the modification area is relatively large. As shown in the relevant figures, the entire graph, including the points on the boundaries, exhibits a consistent modification trend as the control points. This is in agreement with the properties of the global functions.
In this section, the modification results obtained using two W functions with different support radii are compared. When the W6 is used, the modification area is relatively small and concentrated in the center and all the points on the outermost boundaries undergo no displacement. Compared to the local and G, when the W6 is used, Max∆D becomes smaller, and the number of points with modification over 30% of the maximum value increases, suggesting that the W function results in a gentler transition to the periphery. When the W20 is used, the modification area covers the entire area. Its modification results are similar to those obtained using the TPS, except that Max∆P is relatively large. See Cheng et al. (2018) for a detailed introduction of support radius.
In summary, the W function is effective in local contraction, compression, and distortion, and can result in a relatively gentle transition to the boundaries and preserve the geometric relations in the original graph to a relatively satisfactory level. Additionally, by adjusting the support radius, the W RBF can have the properties of both local and global basis functions within a certain range and can thus be used flexibly. Furthermore, the W function is compactly supported and solvable and is also advantageous in terms of computational time. Therefore, it is suitable to use the W function as a basis function to modify hull surfaces.

Case Study of Hull Surface Modification Based on the W Basis Function
Based on the aforementioned analysis, we developed a hull surface modification module and used it to modify the surface of a standard Series 60 ship model. Series 60 is a typical cargo ship form with no bow, and is recognized by the International Towing Tank Conference as a standard ship form. The ship model used in this study is the same as the model used by the Iowa Institute of Hydraulic Research (IIHR). The ship model has an inter-perpendicular length of 3.048 m and a block coefficient of 0.6. The main scale factors of Series 60 as shown in Table 9. Four variable points in the bow are selected and their coordinates are set anew. Additionally, points on the deck lines at the sides, base line, and design waterline are selected as fixed points, as shown in Figure 8. Before the solving process of the support radius using Delaunay triangulation method, these fixed points (on the deck line or on the design line, etc.), should be selected in advance. However, at this time, the size of the support radius is unknown. Therefore, whether these points are within the support radius or outside the support radius, that is, whether these points are affected, is unknown. In order to ensure those points are not affected, they must be selected as fixed points. Matrix F is constructed with the changes in the selected variable and fixed points. Then, matrix A is obtained after using each of the selected points as the interpolation center. By solving Equation (13) in three directions, all the unknown coefficients λ i and c i can be determined. Finally, by substituting the remaining points (unknown points) into Equation (7), the new coordinates of all the unknown points can be obtained, which form a new surface. Figure 8 shows the new ship form obtained by the RBF interpolation. As demonstrated in Figure 8, the lines at the waterline undergo no changes after modification; below the waterline, the bodylines at stations 1-8 are wider and fair after modification.  In the above examples, the bow of the ship is modified with four design variables alone. This suggests that if proper variable points are selected, the W basis function-based surface modification method can be used to rapidly modify a hull surface with a relatively small number of design variables. In the examples, the fixed points constrain the deck lines at the sides, design waterline, stations, and base line. After modification, there are no changes to the lines at the corresponding locations. This indicates that when it is used to modify a hull surface, the W basis function-based surface modification method can constrain specific locations by selecting fixed points to allow these locations to undergo no changes, which can consequently preserve the specific line form of the parent ship and facilitate the engineer in formulating a general arrangement design.

Application Examples
The theoretical explanation of Section 2 and the two-dimensional deformation example of Section 3 are used to select the radial basis function which is the most suitable for the deformation of the hull surface, and finally the W function is selected. Therefore, only the W function was used as the basis function in this section.
The hull surface modification module has been integrated into the multidisciplinary comprehensive optimization platform for the hydrodynamic performance of ships. Here, the trimaran is selected again as the study object. The original trimaran consisted of a slender body in the center and two side bodies symmetrically distributed on either side of the body. The profile of the side bodies was scaled from the main body line at 1:3. The size information of trimaran owners is shown in Table 10, and its 3D model is shown in Figure 10.

Application Examples
The theoretical explanation of Section 2 and the two-dimensional deformation example of Section 3 are used to select the radial basis function which is the most suitable for the deformation of the hull surface, and finally the W function is selected. Therefore, only the W function was used as the basis function in this section.
The hull surface modification module has been integrated into the multidisciplinary comprehensive optimization platform for the hydrodynamic performance of ships. Here, the trimaran is selected again as the study object. The original trimaran consisted of a slender body in the center and two side bodies symmetrically distributed on either side of the body. The profile of the side bodies was scaled from the main body line at 1:3. The size information of trimaran owners is shown in Table 10, and its 3D model is shown in Figure 10.

Description of the Optimization Problem
The optimization objective is defined as follows: (1) Variable selection In the main and side body line synchronous optimization, variable points are selected on the main body and the side body. As shown in Figure 11, 10 variation points in the main body, numbered 1 to 10, are chosen, with three variation points on the strip numbered 11-13. Point 1 is in the x direction and points 2-13 in the y-direction. The range of design variables is shown in Table 11. In the main body, X1 controls the length of water line. Y1-4 are arranged along the waterline to control the size of the inflow angle and shape of the inflow section on the waterline. Y5-7 can have a great effect on the bilge line. Y8-10 control the size of the outflow angle and shape of the outflow section on the waterline. At the side body, Y11-12 control the size of the inflow angle and shape of the inflow section on the waterline. Y13 controls the size of the outflow angle and shape of the outflow section on the waterline.

Description of the Optimization Problem
The optimization objective is defined as follows: (1) Variable selection In the main and side body line synchronous optimization, variable points are selected on the main body and the side body. As shown in Figure 11, 10 variation points in the main body, numbered 1 to 10, are chosen, with three variation points on the strip numbered 11-13. Point 1 is in the x direction and points 2-13 in the y-direction. The range of design variables is shown in Table 11. In the main body, X1 controls the length of water line. Y1-4 are arranged along the waterline to control the size of the inflow angle and shape of the inflow section on the waterline. Y5-7 can have a great effect on the bilge line. Y8-10 control the size of the outflow angle and shape of the outflow section on the waterline. At the side body, Y11-12 control the size of the inflow angle and shape of the inflow section on the waterline. Y13 controls the size of the outflow angle and shape of the outflow section on the waterline.  (2) Constraints Hydrostatic constraint is the displacement volume ∇ constraint ∇ opti −∇ ∇ ≥ 0. In the optimization of the resistance, in order to ensure other performance of the ship, traditionally, the constraint of the drainage volume is generally set to ±1%. However, in this paper, the constraint of the drainage volume is set to be greater than 0, in order to obtain an optimized ship hull with an increased drainage volume and a reduced total resistance.
Line constraint refers to each of the main scale factors (length, width, and draft). These remain unchanged; the outline of the bow and the base line remain essentially unchanged, and some hull stations remain unchanged. Figure 11 shows the fixed points.

Longitudinal position constraints of center of buoyancy is
The PSO algorithm is selected. The number of iterations is set to 90, with 30 particles in each iteration. Figure 12 shows the optimization results of 2700 groups. In Figure 12, the C W of the initial ship is marked. The hull form with the lowest C W is selected. Table 12 summarizes the hydrostatic and hydrodynamic data of the initial and optimized ship, respectively. To save time, the SHIPFLOW software wass used in the optimization process to calculate the C W of the hull. To validate the optimization results, FineMarine software is used to calculate R t values of the initial and optimized ship after optimization. Compared to the initial ship, the optimized ship has a 0.74% higher ∇, a 0.79% lower center of buoyancy L cb in the longitudinal direction, a 0.50% higher wet surface area S, an 8.3% lower C W , and a 3.8% lower R t .

Conclusions
The hull surface modification method plays an important role in the ship form optimization framework. The selection of the basis function is key in the RBF interpolationbased surface modification method. Therefore, this study focused on the selection of the basis function. Based on the theoretical explanations of several typical basis functions and their comparisons through examples, the W function was found to be advantageous. Additionally, the W function interpolation-based surface modification method was used to modify and optimize trimaran ship model. The conclusions are as follows: (1) The W function has characteristics of both local and global basis functions and is flexible. Additionally, the W function is compactly supported, solvable, and advantageous in terms of its computational time. Thus, the W function is suitable for hull surface modification.
(2) The W function interpolation-based surface modification method can rapidly modify a hull surface with a relatively small number of points, and can allow the lines at corresponding locations of the hull to undergo no changes by selecting fixed points, thereby preserving the special lines of the initial ship and facilitating the formulation of a general arrangement design.
(3) By integrating the W function interpolation-based surface modification method into an optimization platform, an optimized trimaran hull form with fair lines and an improved drag performance can be obtained, thereby validating the feasibility and value of the W function interpolation-based surface modification method for engineering practice.
The following outlook for future research is presented: (1) In this study, only a few common basis functions are selected, and their parameters are manually set. Additionally, these basis functions are compared based on specific modification problems. In the future, more basis functions, or scenarios in which different parameters are selected for one basis function, can be taken into consideration.
(2) Currently, this method primarily relies on design experience to select the locations of variable points and determine their ranges, which has certain limitations. Improvements are expected in the future.