Abstract
4D printing is a technology that combines the capabilities of 3D printing with materials that can transform its geometry after being produced (e.g. Shape Memory Polymers). These advanced materials allow shape change by applying different stimulus such as heating. A 4D printed part will usually have 2 different shapes: a programmed shape (before the stimulus is applied), and the original shape (which is recovered once the stimulus has been applied). Lightweight parametric optimization techniques are used to find the best combination of design variables to reduce weight and lower manufacturing costs. However, current optimization techniques available in commercial 3D CAD software are not prepared for optimization of multiple shapes. The fundamental research question is how to optimize a design that will have different shapes with different boundary conditions and requirements. This paper presents a new lightweight parametric optimization method to solve this limitation. The method combines the Latin Hypercube design of experiments, Kriging metamodel and specifically designed genetic algorithms. The optimization strategy was implemented and automated using a CAD software. This method recognizes both shapes of the part as a single design and allows the lightweight parametric optimization to retain the minimum mechanical properties for both shapes.
Keywords
Introduction and problem definition
Introduction
Smart materials are defined as materials that can either change their shape or properties between different physical domains under the influence of certain stimuli from the environment [17]. Particularly, Shape Memory Materials (SMMs) have the ability to recover their original shape from a deformation when a particular stimulus is applied. This is known as the shape memory effect (SME). SMMs are either inorganic (Shape Memory Alloys, SMAs) or organic (Shape Memory Polymers, SMPs) [10]. The shape recovery is usually activated by the surrounding temperature (both in SMAs and SMPs), and other stimuli that have been used include an electric field, magnetic field, pH, UV light, or specific chemicals, etc. [13].
Additive Manufacturing (AM) is defined as a process of fusing materials layer upon layer to produce a three-dimensional object from CAD data [15]. The continuous evolution of these technologies and materials is expected to revolutionize the manufacturing industry. As conventional 3D printing technology matures, creeping up in the background is Four-Dimensional (4D) Printing [7]. The fourth dimension in 4D printing refers to the ability of material objects to transform its geometry after being produced, thereby providing additional capabilities and offering potential for performance-driven applications [8]. The technology “4D printing” can be summarized as the combination of using the AM process and Shape Memory Polymer (SMP) materials which provides far-reaching opportunities that go beyond the potential application of conventional AM parts.
However, the design and optimization of 4D printed parts has not been studied in detail and some advances are needed to boost their use in different applications. Most of the research related to 4D printing has been focused on discovering new materials and suggesting specific applications, but there are no references associated with design optimization tools. In fact, only a few authors have considered the design, most of them focusing on design of alloy-based actuators [29], self-folding sheets with SMAs for origami engineering [12, 37] and design optimization for deformation of SMAs [23, 24].
Current optimization techniques available in the commercial 3D CAD software with Finite Element Analysis (FEA) tools are not prepared for the new concept of optimization for multiple shapes. For example, a specific 4D printed part may require a certain stiffness to hold a weight in its programmed shape, and releasing the weight when the stimulus is applied to recover its original shape, and finally supporting another load in its original shape that may require another minimum value of stiffness for its correct function. The key research question is how to optimize a design that will have different shapes with different boundary conditions and requirements.
The aim of a lightweight parametric optimization is to minimize the weight and thus reduce time and manufacturing costs. To achieve this, the optimization process must take both shapes into consideration to fulfill the mechanical requirements needed in both shapes. However, this option is not possible with the current commercial CAD-FEA optimization methods.
Problem definition (general approach)
The objective is to find the best combination of design variables of a parametric design to minimize the weight of a shape memory part produced by AM. The designer must first propose the design variables (parameters) that will change during the optimization process. These design variables are mostly associated with the geometric dimensions or CAD features such as wall thicknesses, bar dimensions, angles, etc. Since any type of CAD feature can be used as a design variable, these will depend on the specific geometry that is required for optimization. On the other hand, the optimal design must fulfill certain mechanical requirements for the boundary conditions related to the programmed shape (before the stimulus is applied), and other mechanical requirements associated with the original shape (once the recovery is completed). These mechanical requirements can be related to different properties such as the maximum stress that the material can withstand in different directions or different failure criteria such as Von Mises, Tresca, etc., the maximum displacement/strain allowed under certain conditions, maximum displacement of a specific point of the part and so on. Therefore, the optimization problem can be summarized as follows:
The optimal design will reduce the weight but keeping the minimum properties required according to the constraints desired in both shapes of the part.
Methodology
This section presents the methodology developed to solve the problem described in the previous section. Section 2.1. explains the overall optimization concept., Section 2.2. details how the methodology works with both shapes of the part during the optimization process to fulfill the mechanical requirements needed for each state, Section 2.3. presents the strategies of the algorithm implemented to carry out the optimization process, and Section 2.4. presents the software description in terms of automation of the methodology and workflow between the different tools used in the optimization process.
Overall concept
The overall optimization concept is illustrated in Fig. 1. A commercial CAD-FEA software (SolidWorks) was used to evaluate the constraints of the optimization process and the weight of the part. The data provided by the CAD-FEA software are stored and used by the optimization algorithm to drive the optimization process.
Overall optimization concept.
The first step is to create a parametric design in the CAD software. The designer must define the geometry and the desired design variables to parameterize the model. Once the parameterization is completed, the next step is to set out the appropriate mechanical analysis (FEA) and the outputs of control (mechanical constraints and weight) according to the conditions that the part must withstand.
The next step is to run the optimization algorithm. The algorithm will prompt some input data to carry out the optimization process which is explained further in Section 2.5. During the process of the optimization, the algorithm will define the values of the design variables and the design to be simulated. The geometry is updated in the CAD software and subsequently the simulations are carried out using the FEA tool. The results such as the weight and mechanical constraints are stored by the optimization algorithm and used internally to define the subsequent design. This is repeated as a continuous iterative process until an optimal solution is reached. The optimization strategies are explained in Section 2.3.
In order to evaluate the multiple shapes as different states, the method processes different ‘configurations’ in the CAD model.
Each part has a list of features that define the final geometry, but these features can be activated or suppressed in an independent manner for each of the configurations, which means that the same part may have different shapes depending on the configuration. The use of ‘configurations’ allows better management of different shapes for the same design. The software associates each finite element analysis with only one configuration, and the algorithm assumes that each constraint is related only to one analysis (Fig. 2).
Relation between different configurations, analysis and constraints in one design.
As 4D printed parts usually have 2 different shapes, configuration 1 is associated with the programmed shape and configuration 2 is associated with the original shape that will be recovered once a stimulus is applied. For each shape, the design must fulfill different constraints that may be related to different boundary conditions (analysis 1, analysis 2, etc.). For each design, the optimization process computes every single finite element analysis that is produced in terms of the programmed and original shape.
Within 3D-CAD modeling, the flex feature is available in the CAD software to differentiate the programmed and original shapes (configurations 1 and 2). This feature allows bending, twisting, tapering or stretching of the shape. For example, if the programmed shape has a ‘L’ profile (configuration 1) and the original shape a straight profile (configuration 2) (Fig. 3), a bending feature could be used so that configuration 1 would be activated to achieve the ‘L’ shape, and suppressed in configuration 2 to obtain the straight shape, but always keeping the same values of the design variables.
Flex feature to define configuration 1 (left) and 2 (right).
The optimization algorithm implemented in this paper is based on genetic algorithms (GAs) and FEA. There are several metaheuristic methods that are usually applied in optimization problems such as GAs [3, 27], Differential Evolution (DE) [41], Particle Swarm Optimization (PSO) [40], Gene Expression Programming (GEP) [38] or Ant Colony Optimization (ACO). These techniques have been applied in different fields, such as shape and topology optimization for structures [1, 14, 19, 20]. On the other hand, although GAs and FEA are widely used for optimization purposes [39], they are commonly combined with metamodels to estimate the results of the FEA and then reducing the optimization time [28, 34].
There are several parametric optimization tools available in commercial CAD-FEA software based on this concept, such as Catia (conjugate gradients or simulated annealing) [21], SolidWorks (Box-Behnken Design of Experiments and the response surface method) [6, 18], or ANSYS. This latter software includes different strategies for Design of Experiments (DOE) such as a central composite or a Box-Behnken design, and also different metamodels such as the response surface method, Kriging [5] or Neural Networks. Among these, only the Kriging metamodel includes the refinement option, which is an interesting tool to enhance the accuracy of the estimations throughout the evolution of the algorithm.
Although none of these tools are capable of processing the optimization of multi-shape designs, the optimization strategies were analyzed to find the best strategies for this application. In this sense, the idea of the metamodel refinement (similar to ANSYS) was considered a key factor to improve the performance of the final methodology. On the other hand, Kriging is commonly used in optimization [22, 30, 33, 42, 44] as it is able to provide the best linear unbiased predictions. For these reasons, the Kriging metamodel was selected for this methodology. However, the refinement criterion applied in the optimization algorithm developed in this research was different from the one used in ANSYS). Section 2.3.2. explains these details.
In general terms, the optimization algorithm implemented can be divided into three clear stages: DOE, feasible/unfeasible border approximation, and final optimization.
The aim of the DOE is to simulate several designs of the search space to gather information about the behavior of the part such as the constraints and objective depending on the design variables. According to the tests carried out, the modified version of Latin Hypercube presented in this work was the best DOE as it was the one that allowed the metamodel creation with less sampling points. Section 2.3.1. explains these details.
The second stage (feasible/unfeasible border approximation) is an approach to add more sampling points and to improve the accuracy of the metamodel, focusing on the feasible/unfeasible border to carry out the refinement of the metamodel in an efficient manner. This second stage uses the Kriging method to predict the results and it is driven by specifically designed GAs (proximity penalty concept) to explore new zones along the feasible/unfeasible border. Moreover, the Kriging metamodel is always generated with the highest order possible of the regression model according to the available data to improve the accuracy of the metamodel.
The final stage of optimization uses the data gathered in the previous stages to accomplish an optimization based on the trained Kriging and GAs. Section 2.3.3. explains this stage.
Design of experiments (DOE)
The DOE is a stage in which different designs are simulated by FEA to gather data that will be useful for the metamodel generation. In previous studies [35], a more specific DOE was implemented to focus the sampling on specific areas close to the optimum, thus improving the performance of the metamodel. This DOE was driven by a GA with binary and ternary encoding. This coding was used to provide 2 and 3 level values respectively so that all the designs generated during this DOE had their design values in the minimum, maximum or middle values according to the limits selected. However, the coding of the GAs of other stages of the algorithm was with real numbers as the domain is continuous. This flexibility in terms of encoding was one of the reasons why GAs were used. To successfully create the metamodel with 1-order polynomial regression models, the sampling needed in the DOE is too high for this application where each sampling needed more computational time due to the simulation of both shapes (configurations 1 and 2). Moreover, the accuracy of the metamodel can be improved by using a higher order in the regression model, but this would result in more sampling (more computational time) or using a different DOE with a similar sampling effort but enhanced distribution of sampling points.
For this reason, a different DOE using the Latin Hypercube was implemented. This DOE is commonly combined with Kriging [26, 32] because the distribution of data is appropriate for Kriging and consequently the sampling needed to define the metamodel can be reduced. It divides the domain search into different equal spaces and allocates randomly sampling points so that there is only one sampling point in each row and column of the search domain. In an n-dimensional problem, each sample would be the only one in each axis-aligned hyperplane containing it. Figure 4 represents this in a 2D example. If the number of sampling points is 4, then each dimension is divided into 4 equal parts. The Latin Hypercube will first add one random point and then the following 3 sampling points will also be randomly placed but keeping only one sample in each row and column, which guarantees an appropriate distribution of the sampling points all over the search domain.
Latin Hypercube DOE.
Further some modifications were implemented in the DOE of the methodology to improve its performance. First of all, the DOE consists of 2 steps.
Firstly, the minimum, central and maximum points of the search domain are added. This means that all the design variables will have the minimum value, then the middle value, and finally the maximum value. This first stage provides an initial database of the search domain.
Secondly, a Latin Hypercube DOE is applied using a Matlab function [25]. The number of sampling points added is ‘n’, being ‘n’ the number of design variables of the parametric design. Therefore, the sampling effort is proportional to the number of design variables. On the other hand, the Latin Hypercube is applied following the criterion of maximizing the minimum distance between points. After several tests, it was observed that the closer the points were to the border of the search domain, the more successful the Kriging generation and the more accurate the results (because interpolation is more accurate than extrapolation). In this sense, the minimum and maximum points added in the first step are important to reduce the use of extrapolations in favor of interpolations. To take this into account, the Latin Hypercube was modified to move the sampling points to the borders of the search domain. The optimization algorithm identifies the points of the standard Latin Hypercube DOE that are aligned to the border, and modifies the correspondent variables to their maximum or minimum values to place them on the border. Figure 5 shows the modified Latin Hypercube in the same problem depicted in Fig. 4. The black points are the final sampling points according to the modified Latin Hypercube. The grey points are the points from the standard Latin Hypercube where the location was modified. For example, the point located in the last row and column was moved to the corner. In this process, only the points placed in ‘squares’ adjacent to the border are modified, and only within the constraints of the corresponding variables. Section 2.3.4. summarizes the improvements of this concept.
Modified Latin Hypercube DOE.
The next step in the optimization algorithm is to add more sampling points next to the feasible/unfeasible border. Since the objective (minimum weight) is always opposite to the mechanical constraints (stiffness, stress, etc.) the optimum solution will always be in the feasible/unfeasible border. This stage of the algorithm, through the use of the Kriging metamodel combined with a specific strategy based on genetic algorithms, allows the addition of new sampling points along the feasible/unfeasible border, improving the accuracy of the metamodel in the zones where the optimum points will be located. Taking a step further, we also include a refinement loop that follows a similar idea to the ANSYS metamodel. However, in this case the refinement is focused on the zones close to the location of the optimum (feasible/unfeasible border) and not in the zones with the highest estimation error. This allows the operator to improve the metamodel accuracy only in the zones of interest, thus reducing the sampling and the optimization time.
The first task consists of creating the Kriging metamodel from the data gathered in the previous stage. A Matlab subroutine process is used to create the metamodel [31]. Among the available correlation models (exponential, generalized exponential, Gaussian, linear, spherical and cubic spline), the generalized exponential model was selected as it is the most flexible in terms of shape of the function and commonly used when the spatial correlation between data is unknown (as it happens in this application). Regarding the regression model, the function will be always polynomial. However, there are several orders available (2, 1 and 0-order).
The 2-order regression model can achieve better estimations but requires more sampling or better distribution of the data to be able to create the metamodel. As the order of the regression model lowers, the metamodel can be created more easily (without so many data and poorer distribution) but the accuracy is reduced. For this reason, the optimization algorithm includes a loop that makes an attempt to generate a 2-order regression model. If this fails, then the 1-order regression model is used automatically, and finally the 0-order. This system enables a simpler regression model when the data is minimal and consequently, more complex regression models are produced when there are enough data.
Once the metamodel is created, a genetic algorithm (GA) drives the optimization. The genetic algorithm uses 100 generations with a 100 individual population size. The first population is randomly created. The estimations of the metamodel are used to calculate the fitness value of each individual being proposed during the GA evolution. In this case, the fitness function (‘F’) includes the weight (‘w’) of the design and different penalty factors that increase the value to penalize the individual when one or more constraints are not fulfilled (according to the metamodel predictions). This penalty factor (‘PF’) is calculated as the absolute error between the estimated value of the constraint (‘EC’) and its limit value (‘LV’). This error is multiplied by 10E99 to amplify the penalization and it must be applied in all the constraints that are not fulfilled.
Once the fitness function of each individual is known, the GA applies a tournament selection of 2 individuals, an arithmetic crossover with 50% probability, mutation with 60% probability and 50% of maximum mutation amplitude, reparation and elitism. The arithmetic crossover is applied according to the following expression:
The mutation is applied by randomly selecting a gene or the design variable (‘DV’) of the individual that will suffer a “mutation”. Its initial value of the gene or design variable (‘DV
When the GA finishes its evolution, the best design is simulated by FEA and the results of weight and constraints are stored to update the metamodel using all the available data. Subsequently, the GA that has been produced earlier is applied again using the updated Kriging. This is repeated in a loop until ‘n
In the first ‘n’ iterations, the GA uses another penalty factor in the fitness function (proximity penalty factor, ‘PPF’). The aim of this penalty factor is to penalize those individuals close to points already simulated. If the individual is close to a previously simulated point, then the fitness function will be penalized and consequently, the individual will not survive in the tournament selection. To apply this, the algorithm internally calculates a niche radius or ‘radius of influence’ (‘Ri’) that depends on the dimensions of the search domain (equivalent radius, ‘Req’) and on the number of ‘niches’ desired in the domain, which was established in ‘2n’.
Once the radius of influence is defined, the algorithm calculates the distance between each individual proposed by the GA and the sampling points that have been added. If the distance between the individual of the GA and any of the sampling points (‘Di’) is lower than the radius of influence, then the proximity penalty factor is applied according to the following expression:
This strategy forces the algorithm to explore new zones of the domain along the feasible/unfeasible border. The inspiration of this idea comes from the resource sharing method used in multimodal optimization [4, 9]. Once ‘n’ points have been added in this stage, the exploration is considered enough and the optimization algorithm stops the application of the proximity penalty to enable more freedom for the optimum search.
In the iteration ‘n
Final optimization
In this final stage, the same GA is run again but using the metamodel updated with all the available data and without applying proximity penalty. This GA allows the new optimal solution to be generated according to the metamodel created with all the data gathered so far. The optimal design obtained according to the GA is simulated by FEA, and if it is the best design simulated so far, then it will be the final design. Otherwise, the metamodel is updated with this new point and the GA is run again. This is repeated until the algorithm achieves a design better than the existing solution obtained from the previous stages of the algorithm. However, if more than ‘5
Figure 6 summarizes the structure of the optimization algorithm. It is noted that stage 2 (Feasible/ unfeasible border approximation) and stage 3 (Final optimization) use GAs to select the design that will be simulated by FEA. In the first ‘n’ iterations of stage 2, proximity penalty is applied to explore the feasible/unfeasible border. Therefore, the optimization algorithm draws on GAs applied in different iterative processes and with different purposes.
Structure of the optimization algorithm.
This section has presented a short summary of the comparison between the proposed algorithm and the previous versions. The final algorithm is the result of several versions that were improved step by step by testing them in different applications. The sampling strategy, refinement and metamodels used were modified according to the conclusions obtained from the results of the tests. On the other hand, although there are many different metaheuristic techniques to optimize, the preliminary tests carried out with GAs found that there were several configuration that obtained similar results and very close to the theoretical optimum. These tests depicted that the configuration of parameters of the GA was not crucial for the performance of the methodology, which meant that some parameters such as the number of generations may be high (conservative values) and the performance of the methodology will not be affected. This is because the time needed by the GA to evolve is not relevant compared with the sampling or metamodel refinement strategy. Therefore, the use of GAs provided enough accuracy and speed, apart from flexibility and robustness to accomplish different ideas to drive the optimization process according to the requirements for each step. The tuning of the GA was carried out by changing several parameters such as the type of penalty factor, the number of generations, the crossover and mutation probability and the mutation amplitude. After multiple tests, although several configurations obtained similar results, the parameters presented in Section 2.3.2. were the ones selected.
Although this algorithm is the result of more than 15 versions, only the last ones are presented in this section, starting from a version already tested in previous work [35]. The first modification carried out was to implement a loop to use the highest order of regression model possible in the Kriging metamodel. This idea improved the results in terms of the quality of the optimal solution. The resulting version was selected as a reference to compare with the new versions developed. All the versions were tested in five different case studies with 5, 10, 15, 20 and 25 design variables respectively. Each version was run 15 times to obtain an average value of optimization time and weight of the optimum. We also applied the Mann-Whitney U-test between each version and version 1 to assess if the weight of the optimal solutions were statistically different. The overall purpose was to reduce the sampling to cut down the optimization time and to maintain the quality of the optimal solution.
The first modification that was applied was to reduce the number of sampling points of the DOE. As version 1 used a ‘3
In order to avoid this, in version 3, the proximity penalty in stage 2 was applied to all the sampling points added before instead of just being applied to the points added in stage 2. The sampling was the same used in the previous version.
In version 4, the radius of influence (niche radius) to apply the proximity penalty was reduced for the sampling points added in the DOE, while the proximity penalty used for the points added in stage 2 was kept. This approach aims to allow more freedom of exploration in stage 2 but avoiding the repetition of sampling points of the DOE.
In version 5, the DOE strategy was changed to use Latin Hypercube. Moreover, the number of sampling points was increased to keep the same number as version 1, which means 3 points and 2n points of the Latin Hypercube DOE (3
In version 6 the number of sampling points was further reduced to establish the same sampling effort used by versions 2–4. Therefore, in the first stage, the sampling was ‘3
In version 7, the number of sampling points of the DOE was again set to ‘3
Finally, in version 8, the previous approach was applied again but reducing the number of sampling points of the initial stage to ‘3
Comparison between the different versions of optimization algorithm developed
Comparison between the different versions of optimization algorithm developed
Table 1 summarizes the results for each version. The columns show the version, the number of sampling points used in the DOE, percentage increase of optimization time compared with the results obtained with version 1 and the percentage increase of optimum’s weight compared with the results of version 1. The values presented are the average values of the 15 runs of each version for the 5 different case studies (15
Version 1: DOE based on binary and ternary encoding (‘3 Version 2: ‘3 Version 3: Proximity penalty applied in all the sampling points added before. Version 4: Radius of influence reduced in the proximity penalty of sampling points added in the DOE. Version 5: DOE based on Latin Hypercube (‘3 Version 6: DOE based on Latin Hypercube (‘3 Version 7: DOE based on Latin Hypercube (‘3
Version 8 (algorithm presented in Section 2.3.) achieves an average reduction of 40.2% on the optimization time compared with version 1, while the quality of the optimum is worsened by 1.5%. It can be observed that the use of Latin Hypercube improved the results compared with version 1. The modification proposed to the Latin Hypercube significantly enhanced the results in terms of the optimization time compared to the standard Latin Hypercube (around 25 points). However, the quality of the solution is worsened by 1.6 points.
The optimization algorithm with the strategies described before was implemented in the Application Programming Interface (API) of the CAD-FEA software using Visual Basic. Through this tool, the optimization is driven in a completely automated manner, which means that the multiple geometry updating and FEA simulations needed for the optimization process are automatically generated once the code is run and the input data is established.
Some specific tasks that are carried out by the Matlab Windows Application are automatically activated during the optimization process. The API sends the available data to Matlab such as the design variables, constraints and weight of all the points simulated to create the Kriging metamodel and to calculate the predictions. These results are sent back to the API and used for the fitness function evaluation in the GAs. Apart from the creation of the metamodel and calculation of the predictions, Matlab is also used to sort the data in the GAs as well as to save the final results and create some graphics that summarize the evolution of the optimization process. Figure 7 represents the overall workflow.
Workflow of the optimization process.
Sequence to apply the optimization method.
The sequence to apply the optimization method is as follows (Fig. 8):
Parameterization of the geometry: Definition of the geometry in the CAD software, including the design variables. The design variables must be linked to the global variables with the right nomenclature (‘VAR1’, ‘VAR2’, etc.). The global variables must be defined in the equation manager of the CAD software in the right order and before the rest of equations. The API will access the equation manager to change the value of the variables, which are linked to the corresponding dimensions of the part. Definition of the 2 configurations of the geometry: The programmed and original shapes must be defined using two different configurations that must be named with integers. One configuration will have the flex feature ‘suppressed’ and the other being ‘activated’. Definition of the mechanical analysis related to each configuration: Definition of the boundary conditions (loads, constraints, contacts, materials, etc.) of the analysis associated with each configuration. The name of the analysis must follow a certain convention (Analysis 1, Analysis 2, etc.) to guarantee the workflow between the API and the FEA tool. Definition of sensors to get the relevant data from the FEA results: Definition of the sensors to store the FEA data is needed for the optimization process (constraints and objective). The sensors must be named also following certain conventions (Constraint 1, Constraint 2…and Mass). Running of the optimization program: Once the optimization is run, the program prompts some input data such as the number of design variables, the lower and upper limit values of each variable, the number of FEAs, the number of constraints, limit values, feasible zones and associated analysis of each constraint, the maximum element size for the mesh of each analysis and finally the configuration number related to each analysis. Final result: The optimization algorithm automatically changes the geometry, accomplishes the FEA simulations and manages the dataflow between the CAD, FEA and API tools and Matlab. Once the optimization is finished, the CAD shows the optimal design on the screen.
This section presents a simple case study in which the new optimization algorithm was applied.
Geometry and design variables
The geometry of this case study is a simple parallelepiped (a prism whose external faces are all parallelograms) that will have a programmed ‘L’ shape (configuration 1) and then will be stimulated to recover its original straight shape (configuration 2). The part will have a hollow geometry with an internal longitudinal wall (Fig. 9). The geometry will be longitudinally symmetrical. The thickness of the external walls will be homogenous (the same thickness in all the points), while the thickness of the central wall will change linearly. A total of 8 design variables (parameters) were defined to control the dimensions of the part, the external walls of the part (5 variables) and the dimensions of the internal wall (3 design variables). These dimensions will be the parameters to be modified during the optimization process. The global dimensions were fixed (90
Geometry to be optimized (internal wall and 4 hollows).
The design variables and limits must be set out according to the manufacturing capabilities, so that any design of the search domain can be manufactured. This is a main advantage of the parametric optimization. The designer can adapt the limits of the parameters according to the manufacturing limitations.
In this case, the design variables and limits (in mm) were defined as follows:
VAR1: upper thickness [0.8–3.5] VAR2: lower thickness [0.8–3.5] VAR3: lateral thickness [1.5–2.5] VAR4: thickness in the fixed end [1.5–5] VAR5: thickness in the end of the load [1.5–5] VAR6: half of the thickness of the reinforcing wall in the fixed end [0.75–2] (symmetry applied) VAR7: half of the thickness of the reinforcing wall in the middle of the part [0.75–2] (symmetry applied) VAR8: half of the thickness of the reinforcing wall in the end of the load [0.75–2] (symmetry applied)
The parameterization is carried out by first defining VAR1, VAR2, etc. as global variables in the equation manager (and in the correct order), and then link the dimensions we want to parameterize with the associated global variable.
The material used was Polylactic Acid (PLA) for 3D printing, which has shape memory properties. The material was characterized using standard flexural tests applied in 3D printed samples. These samples were produced with the same manufacturing parameters described in Section 3.5. Therefore, imperfections related to manufacturing are considered through the appropriate definition of the flexural modulus. According to the experimental results, the flexural modulus was 2950.83 MPa. The Poisson’s ratio was 0.36 [16]. The density of PLA was established according to measurement of several 3D printed samples (1.176 g/cm
Objective and constraints
The part must support a load of 160 N (applied at 2.5 mm from the border) in its L-shape state (configuration 1) with a maximum deflection of 8.5 mm (constraint 1). Once the original shape (configuration 2) is recovered, the part must support a maximum load of 40 N keeping the deflection under 6.5 mm (constraint 2). Symmetry was applied in order to simplify the FEA simulations. No penetration contact was established between the punch and the part. Figure 10 shows the boundary conditions of configuration 1 (programmed shape). Figure 11 depicts the analysis of configuration 2 (shape recovered after the stimulus application). The mesh was defined by using a curvature-based mesher with parabolic tetrahedral solid elements. The maximum and minimum element size was 2 mm and 0.4 mm respectively.
FEA of configuration 1 (‘L’ shape).
FEA of configuration 2 (original shape).
The optimization problem of this case study can be summarized as follows:
As the mathematical formulas of the objective and constraints are not known, the weight and constraints of each design are obtained from the CAD model and FEA results respectively. This can lead to high CPU time. However, the proposed methodology takes advantage of the Kriging metamodel to evaluate the values of the weight and constraints from the available data without changing the geometry or accomplishing the FEA simulations.
The optimization was run on a Dell Precision T3500 CPU model with an Intel(R) Xeon(R) W3530-2.80 GHz processor and 6 GB RAM. The optimum solution was obtained in 102 minutes with a total number of 23 designs evaluated. The computational time needed in the DOE was 48 minutes (11 sampling points). In the second stage (feasible/unfeasible border approximation), the time needed was 41 minutes, with 9 sampling points. Finally, the last stage took 13 minutes, with 3 new sampling points. The optimal design was the last one, with a total mass of 3.448 g (real weight of 2
Values of the constraints and mass of the designs evaluated during the optimization process
Values of the constraints and mass of the designs evaluated during the optimization process
The design variables of the optimum are shown in Table 3.
Values of the design variables of the optimum design
Figure 12 shows the relative value of the constraints and mass of the designs evaluated in the last 2 stages of the algorithm (points 12–23). The relative values of the constraints were calculated dividing the value obtained by the associated limit value. Therefore, the values of constraint 1 were divided by 8.5 and the values of constraint 2 by 6.5. In the case of the mass, the reference value is the mass of the optimum. Consequently, the mass values were divided by 3.448.
Relative values of the designs 12–23.
From Fig. 12, it can be observed that constraint 1, which was the most restrictive, tends to show values close to 1 as the algorithm evolves. At the same time, constraint 2 tends to show values lower than 1. Therefore, the algorithm evolves to the design with the lower mass that fulfills the constraints.
Figure 13 shows the results (displacements) of the FEA simulation of the optimum design in its programmed shape (configuration 1). Figure 14 shows the displacement results of the optimum in its original shape (configuration 2).
Displacements of the optimum (configuration 1).
Displacements of the optimum (configuration 2).
The optimum design was manufactured in a BQ Prusa i3 extrusion-based 3D printer. The filament diameter was 1.75 mm, the nozzle diameter 0.4 mm, the temperature for the layer deposition was 220
Experimental tests
The part was heated at 65
Mechanical test of configuration 1.
Results of the test of configuration 1.
The deflection obtained for 160 N load was 10.92 mm. However, the result according to the FEA simulations was 8.5 mm. This difference was due to a loss of the material property of the PLA component during the programming of the ‘L’ shape when it encountered a large deformation.
Next, the part was heated again to recover its original straight shape (configuration 2) and it was tested (Fig. 17). The results of this test are shown in Fig. 18.
Mechanical test of configuration 2.
Results of the test of configuration 2.
The deflection obtained for 40 N load was 8.04 mm, while the result according to the FEA simulations was 5.94 mm. After several subsequent tests with standard flexural samples, it was observed that the main cause of this difference was the loss of material property during the programming stage. The large displacements and strains applied in the L-shape programming led to delamination process (Fig. 19), reducing the properties of the sample. Further, tests revealed that the loss of stiffness was around 20% after the shape programming was applied. On the other hand, it was observed that the ratio between the displacement in configuration 1 and 2 was 1.4, for both simulations and experimental results, which confirmed that the difference between the experimental and simulation results is related to this loss of property. Therefore, if the material definition is properly fitted according to the real properties of the programmed material, the proposed optimization algorithm can be successfully applied to optimize the weight of the 4D part.
Sample delaminated in the deformed zone during the programming stage.
The design methodology proposes a novel light- weight parametric optimization of shape memory parts taking into account both shapes of the design (programmed and original shapes). This tool, which was implemented in a commercial 3D CAD and FEA software, can be effectively used to optimize the weight and consequentially reduce material and manufacturing costs, but yet ensuring that the minimal mechanical requirements is maintained for both states of the shape memory part (programmed and original shapes). Through the use of this algorithm, users will be able to optimize a design that has different shapes with different boundary conditions and requirements to fulfill the mechanical requirements needed in both instances. This approach of optimization was developed further by automating the work flow which would encourage and promoted the uptake of 4D printing.
While this paper focuses on 2 different configurations, the algorithm is capable of handling many more configurations as desired. This tool can be very powerful to model several situations involved in the shape recovery. For example, a third configuration could be defined with an appropriate configuration and associated Finite Element Analysis conducted to examine whether the part is able to recover under certain boundary conditions. Therefore, this optimization algorithm optimizes the design variables according to the mechanical requirements needed in the programmed and original shapes, and also optimizes the design variables to achieve the shape recovery force needed during the recovery process. If the recovery process is to be analyzed in detail, it can be discretized in different steps related to different configurations, each of which represents a different situation/shape during the recovery. On the other hand, some shape memory materials can retain 3 different shapes and a third configuration could also be very useful. Further research will be carried out to investigate more complex geometries and bending methods. In the case of very complex 4D products, the computer processing time may be too high. As multi-core CPUs and GPUs become more available with higher performance and lower cost, this methodology could be accelerated [2, 11, 43]. Although SolidWorks was used due to the availability of the flex feature and the configurations module, more advanced FEA software such as Abaqus could also be investigated to allow the simulation of more complex parts and include acceleration techniques.
This proposed methodology can be applied in many different sectors such as medical, automotive, toy, furniture, interior design, textile or telecommunications. The capabilities of 4D printing combined with this methodology have the potential to become useful in areas of high-value engineering [36].
