1 Introduction

To prevent losing market share, manufacturers have to find a balance between environmental and technical efficiency in light of productivity [1]. The exponential progress in technology has led to the expansion of organization's environmental, social, and economic influences on humanity. Therefore, sustainable development goals (SDGs) are increasingly becoming fundamental components in the formulation of strategic plans and decision-making processes at the organizational level. In the year 2020, investors made additional contributions as remarkable sum of $51.1 billion had been allocated to sustainable funds, setting a new record whereas at the same time utilizing environmental, social, and governance (ESG) standards. In contrast to the fiscal year 2019, where the total amount reached $21 billion [2]. The expansion of the manufacturing sector has resulted in the consumption of approximately 30% of electrical resources and the production of approximately 40% of carbon emissions [3]. Consequently, this has contributed to the exacerbation of anthropogenic climate change, environmental degradation, and exorbitant energy consumption, posing a significant threat to human life. In several manufacturing industries, computer numerical control (CNC) machine tools have been employed extensively usage (which accounts for 60% of energy consumption) in the machine tool sector and inefficient energy use (15% or less) [4, 5]. Consequently, for energy-saving in CNC machines, one of the major concern of sustainable development is tools. Manufacturing optimized design holds importance in an effort to enhance the machining performance, including deformation, frequency, and vibration. In one such similar case, a specialized design system has been suggested for the optimization of noise and vibration in the spindle system. [6]. An integrated finite element method has been utilized to conduct a design sensitivity study involving structural factors in order to elucidate the speed impacts of the spindle [7]. The investigation focused on analyzing the spindle system error motion. This was achieved by developing a comprehensive dynamic model of the spindle system, with the aim of enhancing the bearing fit clearance [8]. Guo et al. [9] created a frequency domain dynamic response approach to enhance the spindle system's dynamic performance. A proposed methodology for optimizing the design of a spindle system, taking into account several machining performance targets, have been presented in the study [10]. There are several significant elements that contribute to the precision of machining. These factors include geometric errors [11,12,13], temperature errors [14, 15], control and servo errors [16, 17], deformation errors [18, 19], and vibration errors [19,20,21]. Additive manufacturing (AM) allows engineers and designers to create complex structures with diverse geometry. This benefit comes from layer-by-layer material addition during manufacture [22, 23]. The simple integration of topology optimization and additive manufacturing (AM) produces high-performance, optimized and engineered structures [24,25,26]. Additive manufacturing (AM) can also create distinct microarchitectures for structures made of different materials, including plastics [27] ceramic [28] or bi-materials and metallic [29,30,31,32]. Jung-Jae Won et al. [33] present a sustainable machining technique targeted at decreasing energy usage in metal cutting. Through comprehensive modeling and monitoring of power use, the study exhibits up to 18% energy efficiency using adaptive feed-control techniques. An effective basic strategy embraces sustainability beyond meeting current demands while protecting future possibilities. Adam et al. [34] stated, simple approach is based on economic, social, and environmental principles. Innovation in technology and society help create sustainable solutions that meet the tripartite criterion of sustainability. Figure 1 shows how these innovations evaluate industry 4.0 achievements. A proposed methodology for optimizing the design of a spindle system, taking into account several machining performance targets, was presented in the study.

Fig. 1
figure 1

Innovations evaluate industry 4.0 achievements

The primary focus of this field's research is on the spindle system's energy consumption characteristics and energy-saving techniques. These studies serve as valuable reference and basis for minimizing energy consumption during the design phase. However, there is a noticeable lack of investigation that specifically addresses the energy-saving design methodology for machine tools. The primary objective of the majority of research conducted on machine components’ optimization design is to enhance machining performance, encompassing both static and modal aspects. Energy efficiency in machine tools has progressively gained attention as a crucial metric. Nonetheless, there is a depth of study that specifically addresses energy consumption as the primary focus in the optimization design of machine tool spindle. With the aforementioned general observations serving as motivation, the objective of this work is to address the existing study gap and investigate the energy-efficient design approach for the spindle. Initially, the energy model is employed to analyze the frequency and mode shape of the machine tool component. Subsequently, a mathematical function is constructed to represent the energy consumption. Furthermore, the performance objectives pertaining to machining are elucidated, and the design factors are carefully chosen from the structure association. Eventually, the mathematical equations representing the optimization objectives are derived through the utilization of a data-driven methodology. These objectives are subsequently converted into a comprehensive step. We develop an approach that takes both energy efficiency and machining output into account thoroughly.

This study aims to improve the structural integrity and performance of a machine tool by implementing strategic engineering approaches. The foundation is subjected to strict limitations along six axes, ensuring its stability with limitation imposed on its movement. Additionally, individual components are equipped with fixed connections that enable accurate recording of vibrations. Two sequential tests are conducted to imitate practical operating conditions. The first test involves the use of self-weight to measure tiny deflections caused by gravity. The second test applies a force of 500 N to the center worktable, replicating the operational conditions experienced during work piece cutting. Following this, the process of lattice optimization is carried out on a particular machine component utilizing the mechanical APDL solver. The process involves distribution of lattice in accordance with the application of boundary conditions like external forces acting on the component. This phenomenon results to high lattice density distribution especially in an increased stress concentration region that experiences the greatest force, hence leading to a substantial reduction in weight and the provision of long-lasting components. Empirical evidence of these improvements is obtained by comparative analysis conducted between the original and improved components, approaches to validation in FEA and optimization milestones are shown in Fig. 2.

Fig. 2
figure 2

Strategic approaches to verification and validation in FEA and optimization milestones

1.1 Machine Tool Structure

Machine design investigations have been updated for 50 years to include modern technology and standards. Despite these changes, technology is not fully integrated into instruction [35]. Simplified models UG630 5-axis machine tool manufacturing is used to carry out simulations of the environmental behavior of the machine. CAD model and prototype model details of which are shown in Fig. 3. The basic action of cutting is accomplished by fastening a tool to the spindle of the machine. The secondary movements are either linear, rotational, or a combination of the two. With the use of specialized linear motion components, the device is able to perform linear motions along all five axes. Only once the work piece has been fastened to the rotary table that is positioned on the base of the machine will the rotating motion be initiated. The design specifications are detailed in Table 1, and these characteristics are in line with the industry requirements for milling machine tools that are intended for small to medium-scale production.

Fig. 3
figure 3

Machine CAD and prototype model

Table 1 Basic technical parameters of the 5 axis machine tool

It is imperative to recognize that, in numerous cases, the comprehensive CAD model becomes excessively intricate to be directly converted into a finite element (FE) model. The main reason is that a computational model should only include the components that are relevant to the study. The inclusion of extraneous components during the stages of preparation and calculation have the potential to considerably extend the duration of the analytical process. As a result, during the developmental phases of the FE model and throughout the computational procedure, extraneous elements within the given machine center model have been eliminated. Furthermore, specific components have been replaced with contact pairs, plane body, and spring links. This strategy enhances the efficiency and emphasis of the FEA for analysis.

2 Numerical Simulation

It is important to understand that the CAD model is usually too complicated to be turned into a FE model. Finite element method (FEM) study can be conducted on a CAD model of a complicated assembly, such as the assembly of a 5-axis machine tool. The main reason is that a computer model should only have the parts that are needed for the calculation. During the preparation stages of the FE model and later during the calculation, parts that aren't needed slow down the end analysis.

Finite element analysis (FEA) is a computational method used to solve problems in mathematical physics and engineering [36, 37]. It works well in cases with complicated loadings, elaborate geometries, and a wide range of material properties, especially when analytical solutions are not possible. The machine load's (9.81 \(\text{m}/{\text{s}}^{2}\)) impact on the ground is represented as a dispersed load in FEA shown in Fig. 4. To limit both translational and rotational movement, a fixed support is used. FEA measures the stress and deformation that the load causes in the structure. Numerical stability is ensured by proper meshing, independence test and validation with experiments so the results show areas of stress and deformation. For a realistic model run, material-specific characteristics like poisson's ratio and young's modulus are essential as shown in Table 2.

Fig. 4
figure 4

Boundary condition

Table 2 Material properties

2.1 Convergence Verification with Varied Mesh

A major factor in averting an unnecessary spread of fine grids and elements is the validation of their impact on numerical fidelity in a 3D finite-element model before meshing. The purpose of this precaution is to maintain the finite-element simulation's computational efficiency [38]. Utilization of a finite element mesh enables the accurate representation of a geometry's boundaries, hence increasing the number of data points available to accurately determine displacement and stress responses. In order to assess the independence of a mesh, grid-independence investigation to evaluate the degree to which the results are influenced by the density of the mesh is employed. One approach for achieving this objective is to use the methodology defined in the subsequent section. There exist alternative approaches to utilize grid quality measurements in the context of computational studies. A first-hand assessment of the mesh quality is conducted, as previously mentioned. Various unique instances are employed in the analysis of mesh-independence. The study examines a series of different levels of investigations ranging from coarse to fine. Upon conducting the investigations, it was determined that the utilization of a fine mesh resulted in the generation of highly accurate and precise outcomes. The results obtained were significant and demonstrated a high accuracy as presented in Fig. 5. A total of eight distinct grids were employed in the study. It is imperative to guarantee that the outcomes are not influenced by the grid. The indicators of the outcome encompass the overall deformation and equivalent stress.

Fig. 5
figure 5

Advanced mesh techniques

The selection of the 7th grid was based on two variables:

  1. (1)

    Deformation (mm)

  2. (2)

    Equivalent stress (MPa)

2.2 Eigen Frequency Analysis

The examination of the dynamic stiffness of the machine tool system starts with modal survey. A system of natural frequencies and vibration modes can be used to solve modal analysis, which can forecast the dynamic nature of machine structure and serve as the foundation for structural dynamic design and analysis. Undamped free vibration, the solution of structural natural frequencies and mode forms can be translated into eigenvalue and eigenvector problems. The differential equations of motion for an undamped free vibrational system are [39]:

$$\left[ m \right]\left\{ {x^{\prime \prime } \left( t \right)} \right\} + \left[ k \right]\left\{ {x\left( t \right)} \right\} = \left\{ 0 \right\}$$
(1)

The symbols [m] and [k] represent the mass and stiffness matrices, respectively. The vector {x(t)} denotes the displacement response. The phenomenon of elasticity in free vibration can be conceptualized as the superposition of simple harmonic vibrations. Hence, the generic solution of differential Eq. (1) is:

$$\{x(t)\}=\{u\}\text{cos}(\omega t-\varphi )$$
(2)

The symbol ω represents the frequency of harmonic vibrations, whereas φ is a constant. To substitute Eq. (2) into Eq. (1), the following operation can be performed:

$$[k]\{u\}-{\omega }^{2}[m]\{u\}=0$$
(3)

Using the finite element method, the machine tool's dynamic structural analysis is carried out, and modal analysis is used to clarify vibration mode shapes and natural frequencies [40]. The machine tool's dynamic structural analysis is carried out, and modal analysis has been used to clarify vibration modes and natural frequencies. Discrete natural frequencies and their accompanying mode shapes are obtained from the structure's modal analysis. The first mode, which can be recorded at 42.7 Hz, is primarily vertical and deforms in the Y direction. Lateral oscillation along the X-axis characterizes the structural response, which advances to the second mode at 53 Hz. The third mode, detected at 82 Hz, has a complicated mode form with torsional twisting along the Y-axis and vertical front bending. Fourth mode, which resonates at 86.1 Hz, exhibits a unique mode shape with a noticeable torsional moment along the Z-axis, all mode shapes and frequencies are shown in Fig. 6.

Fig. 6
figure 6

Mode shapes of the machine tool structure

The forms and frequencies of the primary vibration modes are determined via modal analysis. For this system, only the initial few natural frequencies and the corresponding vibration types is significant. Using the FE method, the machine tool's dynamic structure is examined at frequencies ranging from 0 to 1000 Hz. The precision machine tool structure's natural frequency under various modes is depicted in Fig. 7.

Fig. 7
figure 7

First three mode frequency

3 Physical Modeling

3.1 Structural Impact Testing Model

In order to assess a mechanical structure's dynamic properties, modal analysis testing usually entails artificially stimulating the structure and monitoring input forces and output responses. The impact hammer test is a common method for studying machine vibration characteristics [41, 42]. The goal of the experiment dictate the testing parameters. When a machine tool’s performance is below expectations in terms of quality and efficiency, further tests are carried out during pertinent operational stages. The purpose of general dynamic testing is to gather information for further development and machine modeling, which makes the selection of particular cutting conditions customized for the machine being tested necessary. The flexibility of transient inputs such as projectile impacts, explosives, and step relaxation in modal testing for various structures are highlighted by this study. Although hammer impacts provide rapid diagnostics, engineers can benefit from each technique's unique advantage. The process of calibration and validation against measurement data is crucial for the creation of precise and reliable simulation models. The present study presents the calibration and validation of a finite element model of a five-axis machine tool against data obtained from a machine tool's hammer impact measurement.

Experiments are conducted on the x, y and z directions of 5 axis machine tool, the mentioned points and experimental setup are shown in Fig. 8. The operational ME-Scope is established using the experimental data after a hammer tests are carried out. To obtain the modal parameters in the static state, the hammer test is run. In conclusion, the toolkit available to engineers for modal testing goes beyond conventional techniques and offers versatility and adaptability in a range of settings. Impact hammer employs a dynamic quartz sensor element to apply a quantifiable force impulse with both amplitude and frequency content to excite a mechanical structure during testing, Table 3. shows the parameters of machine under consideration model KISTLER 9728A200000. The transfer function of the structure is provided by the response signal, which is captured by an accelerometer and examined using a fast Fourier transform (FFT) analyzer.

Fig. 8
figure 8

Experimental setup

Table 3 Parameters KISTLER 9728A200000

For structural drop testing and general vibration work, the Model 65 triaxial accelerometer is perfect because it provides exceptional frequency response for both amplitude and phase. Because of its small size, it can measure three axes of acceleration simultaneously, and mounting block accessories are an option. Table 4. Shows the parameters of Endevco Model 65-100.

Table 4 Parameters of Endevco Model 65-100

The goal of a modal test on a system or structure is to gather information that will allow approximations of modal parameters such as mode shapes, damping factors, and frequencies. An impact hammer is used to stimulate the main structure, as shown in Fig. 8. The experimental data collected is then fed into the modal analysis program. The natural frequency and mode shape of the real structure are then ascertained using the software, allowing a comparison with the corresponding numerical analysis findings. The differences between the real-world structure and the analytical model are then carefully examined. The findings from the experiment indicate modal frequencies of 42, 52, and 82 Hz, for the first, second, third modes, respectively, as illustrated in Fig. 9.

Fig. 9
figure 9

Structural impact testing model results

Import the frequency response function obtained from the tapping experiment into the ME'scope fitting software. Once the curve has been fitted, navigate to the structural geometric model within the program and locate the points where the tapping experiment measurement positions align. The software enables dynamic simulation by integrating the measurement points and frequency response functions, thereby displaying the mode shape and natural frequency of the structure. The suitable differences for the first, second, third, and fourth mode frequencies were 6.7, 2.4, 6.5, and 3.5%, respectively, according to a comparative analysis. As seen in Fig. 10, these variations, which are all within 10%, confirm that the boundary conditions and analysis model accurately represent the real circumstances and physical phenomena of the testing apparatus. This leads to completion of validation with experimental iterations with respect to numerical methodology being applied for these particular analyses. With this consideration and acceptable discrepancy, moving forward with setup on-to further novel investigation.

Fig. 10
figure 10

Comparison of model analysis

3.2 Structural Gravity Effects and Force-Induced

In order to evaluate displacements, stresses, strains, and forces in structures or components subjected to loads with minimal damping and inertia, static analysis is employed. Linear or non-linear stable loads and reactions are assumed. For structures with mild elastic deformations, linear static analysis is selected, applying common techniques for elasticity issues. Significant deformations, non-linear material properties, creep, yield stress, and components with hyperplastic properties and contact (gap) were among the non-linear aspects that are taken into consideration. Global coordinate equilibrium is guaranteed by solid-body analysis. With an emphasis on ignoring damping and time-variant loads, the finite element analysis method using ANSYS software offered insights into displacement, induced stresses, and strains resulting from applied loads [43]. The solid body analysis deals with a system's equilibrium in global coordinates. Finite element analysis methodology is used to calculate the displacement, induced stresses, and strains resulting from applied loads. Time-variant loads and damping are expressly left out of the static analysis. Gravitational deformations can introduce errors into geometric property measurements that can be influenced by placement of material properties. Variations in gravitational effects during cutting, presents challenges for on-machine measurements. The finite element method facilitates the modeling of large-scale devices in various scenarios. When evaluating a rotary worktable, static rigidity is emphasized as being vital for processing capabilities, particularly in the work plate and tilt axis.

Expanding upon the findings of the static study which modeled authentic gravitational conditions it has been determined that a downward force of 500 N acts on the cradle structure. The total displacement or deformation resulting from the applied load on the tool turret is measured at 0.219 μm. This value indicates how much movement the system has gone through. The tool turret itself shows the location of the maximum displacement, which denotes the point that shifts the most. On the other hand, the machine's base is where the minimum displacement happens, indicating the area that moves the least in response to the applied load. Figure 11 provides a visual representation of this displacement distribution's details for easier understanding.

Fig. 11
figure 11

Structural force induced effect

4 Machine Tool Optimization

Optimizing machine tool architecture is essential to any effort to raise the accuracy and efficiency of machining operations. Since these qualities directly affect machining accuracy, surface quality, and tool longevity, maintaining structural integrity and stability in machine tools is essential to achieving desired industrial outcomes [44, 45]. Characteristics directly affect the precision of machining, the quality of the surface, and the longevity of the tool. The systematic analysis of machine tool construction optimization is the main focus of this study. It emphasizes the use of finite element analysis (FEA), geometric design, and material selection in particular. Through a thorough examination of the intricate relationships between these elements, our goal is to provide important insights into potential ways to improve machine tool performance. The research findings demonstrate possibilities for the advancement of machining as a discipline as well as for improving sustainability and cost-effectiveness in manufacturing industries.

4.1 Shape Optimization

Although it can be computationally demanding and sensitive to beginning conditions, topology shape optimization maximizes material distribution for effective structures [46]. It provides improved performance and material efficiency, but it can also lead to complex, difficult-to-implement designs with trade-offs and possible issues with manufacturability, the topology optimization flow shows in Fig. 12.

Fig. 12
figure 12

Topology optimization flow

Moreover, in order to determine the superiority of the suggested approach, a lightweight optimization method is implemented, and the outcomes of both methods are compared and analyzed. The optimization approach for lightweight design focuses on minimizing the spindle weight as the primary target while considering the design variables as the optimization variables. Additionally, the method takes into account static and dynamic performance as constraints for achieving an optimal solution [47]. The findings of the software simulation are depicted in Fig. 18. The full optimization method demonstrates the ability to decrease energy consumption while simultaneously increasing the first-order natural frequency from 61 to 117.42 Hz, as well as reducing the overall mass. Simultaneously, there is an enhancement in both the maximum stress and deformation. Based on the findings presented in Fig. 13, it can be observed that the lightweight optimization approach demonstrates superior outcomes in terms of reduced energy usage and mass compared to the complete optimization method. The spindle's performance standards can still be met by the maximum stress of 63 MPa and maximum deformation of 0.93 mm. Nevertheless, the implementation of the lightweight optimization technique has been observed to negatively impact both the static and dynamic performance of the spindle. Shape topology optimization is applied to the tool which resulted in structural improvements. Statical deformations are improved to about 28.86% whereas maximum von mises criterion stress in the tool increased to about 118.91% of original. Similar trends are recorded for modal vibrational frequencies.

Fig. 13
figure 13

Topology optimization results

Careful shape topology optimization of machine tool component natural frequencies increases in value having now optimized and higher modal vibration frequencies. Respectively for 1st mode the natural vibrational rose to about 0.0322%, 2nd mode about 5.77%. Similarly, for 3rd mode the increase is way above the par, it is about 153.6% respectively.

4.2 Lattice Optimization

The goal of lattice optimization is to place points or nodes in a regular structure in the most effective way possible. It is applied to improve structures or properties in a variety of industries, including computer science and materials science [48, 49]. While providing the opportunity for creative designs and enhanced functionality without compromising the actual shape of the designed product as originally done in shape topological optimization shown in Fig. 14.

Fig. 14
figure 14

Lattice optimization

The density-based solid isotropic material penalization (SIMP) method is used in the topology optimization (TO) process. This approach allows for the identification of optimal topologies by characterizing the material distribution problem in terms of the material density distribution. Two different result representations are provided by the SIMP implementation: one that allows for effective discrete solid-void representation and the other that uses a greyscale density representation. Finding the ideal material density distribution within a given target volume constraint is the main goal of the SIMP implementation in this situation. The main objective is to reduce the amount of structural compliance, which is a quantity that is inversely related to stiffness. The following is the expression for the objective function in the SIMP implementation.

$${\varvec{C}}=\frac{1}{2}{U}^{T}KU$$
(4)

Subject to:

$${V}^{*}-\sum_{i=1}^{N} {V}_{i}{\rho }_{i}=0$$
(5)

where \(\text{C}\) is the compliance, \(\text{K}\) is the global stiffness matrix and \(\text{U}\) is the global displacement vector, \({{\varvec{V}}}_{{\varvec{i}}}\) is the elemental volume, \(\text{N}\) is the total number of elements, \({\text{V}}^{*}\) is the target structural volume, and elemental density \(\rho i\).

$$E\left({\rho }_{i}\right)={E}_{1}{\rho }_{i}^{\varphi }$$
(6)

where \({E}_{1}\) is the Young's modulus for the solid region, and \(\varphi\) is the SIMP penalty exponent. The SIMP penalty scheme is used in the iterative TO design process. It works by assuming an interpolation method to penalize the intermediate densities. This reveals regions that are partially solid and partially void, which can be used to realize genuine materials or even lattice structures [50].

`

Lattice optimization’s most common pro is the shape maintenance and it retains the actual and original shape of the product body while it does that in addition to that it has certain improvements as a whole. 5% decrease in static deformations, 22.2% increase in the von mises criterion maximum overall stress in the tool shown in Fig. 15. Similarly, for modal vibration frequencies 7, 2 and 1.4% increase improvement is recorded when compared with the original product bodies.

Fig. 15
figure 15

Lattice optimization

5 Energy Consumption

Improve a machine tool's energy efficiency, it is necessary to first define the term "energy efficiency." technically efficiency is defined as the relationship between input and output. In a similar vein, a number of writers have defined energy [51] efficiency and offered relevant indicators [52,53,54]. One of the most important technologies for energy conservation in machine tool is energy regeneration and reutilization. A model-based optimization strategy is becoming more and more necessary due to the variety of uses for machine tool. This method helps manufacturers find the best trade-off solution for a given application and assess the commercial viability of various energy-saving designs. The energy consumption function is determined by analyzing the force on the spindle of the axis machine tool. The spindle's input power \({P}_{in}\) is primarily consumed in two aspects of the working process: (1) the force used to cut the material with the tool, also known as the material removal power (\({F}_{c}\)), and (2) the power used to rotate the spindle without machining, also known as the unload power (\({F}_{u}\)). \({F}_{c}\) is used directly for material excision, which is dependent on the machining configurations (for example, the material of the cutting tool, the material of the work piece, etc.) and processing parameters (including cutting speed, feed rate, and cutting depth) [18]. as well as (2) the power required to overcome rotational inertia and friction, as well as the power lost due to friction and velocity variation is known as the spindle's power (\({F}_{u}\)), and it is dependent on the mass, shape, and rotational speed of the spindle, as indicated in Eq. (7).

$$\begin{array}{cc}& {F}_{in}={F}_{c}+{F}_{u}\\ & \\ & {F}_{u}={J}_{m}\omega \frac{d\omega }{dt}+{F}_{f}\end{array}$$
(7)

where \({J}_{m}\) is the corresponding moment of inertia of the spindle, is the angular velocity, \({P}_{f}\) is the power wasted due to bearing friction, \({v}_{c}\) is the turning speed, \(f\) is the feed rate, \({a}_{p}\) is the depth of cut, and \({k}_{c}\) is the coefficient dependent on the material of the work piece and tool.

$${J}_{m}=\frac{1}{8}\rho \pi \sum {l}_{i}{\left({D}_{i}^{2}-{d}^{2}\right)}^{2}$$
(8)

The hollow, multi-step spindle of a Gantry has multiple steps. Equation (2)'s representation of \({J}_{m}\),where \(d\) is the diameter of the spindle through hole, \({l}_{i}\) is the length of the i-th stepped shaft, \({D}_{i}\) is its external diameter, is the spindle density

According to Eq. (7), \({F}_{f}\) is the power lost as a result of friction during spindle rotation.

$${F}_{f}={M}_{f}\cdot \omega$$
(9)

\({M}_{f}\) is torque while \(\omega\) is angular velocity. The energy consumption function is given by

$$E={E}_{c}+{E}_{u}={\int }_{0}^{t} \left({F}_{c}+{F}_{u}\right)dt={\int }_{0}^{t} {F}_{\text{in }}dt$$
(10)

Under consideration of translational motion system, the energy consumption can be divide into further four components, kinetic, frictional, electrical and mechanical. Gantry type five axes machining center executes three translational and two angular operations. Power for it is considered in average during operative condition. Main focus is given to the mechanical power as the main parameter under investigation for this study is topological optimization to create optimal structure for sustenance of Gantry machine under mechanical as well as vibration load.

For the mechanical power consumption of moving machine tool basic power consumption methods have been used for workload over instants of time.

$${F}_{f}={M}_{f}\cdot \omega$$
(11)
$$E= \int P\cdot dt$$
(12)

where \(E\) is the overall energy for power \(P\) over time \(t\)

$$E= \int (F\times v)\cdot dt$$
(13)
$$E= \int (Fvcos\theta )\cdot dt$$
(14)

For force \(F\) applied on machine tool during structural test, recorded velocity for tool is recorded \(v\)

$$E= \int \left(F\cdot \frac{dx}{dt}\right)\cdot dt$$
(15)
$${E}_{\text{motton }}=\int {P}_{\text{motion }}dt={E}_{k}+{E}_{f}+{E}_{e}+{E}_{m}$$
(16)

Electrical energy \({E}_{e}\) has been neglected as well as frictional losses \({E}_{f}\) while kinetic energy and mechanical energy \({E}_{m}\) consumed to attain and sustain machine motion is defined from \({E}_{k}\), \(M\) is the mass and \(v\) is the linear velocity of the machine tool.

$${E}_{k}=\frac{1}{2}{Mv}^{2}$$
(17)

While frictional energy and electrical energy have not been taken under consideration.

Rigid dynamics analysis is used to calculate translation power of spindle before and after optimization. Mechanical power is a factor concerning materials density as well as shape. High mass moment of inertia requires relatively more work done for its displacement. Spindle tool extents are about 640 mm ± 1 mm. Considering 640 mm displacement for before and after effects, the energy required by the optimized tool is relatively less, about for shape 49.1737% and for lattice 64.24%,less than the original tool shape shown in Fig. 16. Originally tool's mass moment of inertia required about 105.4192 W of power while the newly shape optimized tool required about 53.58065 W of power which is nearly half of the initial value and lattice optimized body required about 37.7 W of power which is the most preferred.

Fig. 16
figure 16

Energy consumption

6 Conclusion

In conclusion, this study focused on the optimization of machine tool components through a comprehensive approach, integrating finite element analysis (FEA), geometric design, and material selection. Static analysis was employed for simulating displacements, stresses, strains, and forces, providing insights into the structural response to applied loads. The validation of the analysis model was ensured through modal testing, comparing real-world frequencies with analytical model predictions. Topology shape optimization and lattice optimization were explored for lightweight design, aiming to enhance energy efficiency and overall performance. The results demonstrated that both methods significantly reduced energy consumption and mass while maintaining acceptable stress and deformation levels. However, the lightweight optimization approach exhibited superior outcomes in terms of reduced energy usage and mass, albeit with some compromise on static and dynamic performance. The implementation of shape topology optimization and lattice optimization led to structural improvements, with notable increases in modal vibration frequencies. The rigid dynamics analysis showcased a substantial reduction in the energy required for displacement, indicating the efficiency gains achieved through optimization. Research provides valuable insights into the interplay of design elements, material properties, and optimization techniques for machine tool components. The findings not only contribute to advancements in machining precision, surface quality, and tool longevity but also underscore the importance of considering trade-offs between energy efficiency and performance in the pursuit of sustainable and cost-effective manufacturing practices.

Future study could explore the integration of cutting-edge materials and manufacturing methods to improve the design and structural strength of lightweight structures. By investigating real-time monitoring systems and employing predictive maintenance procedures, it is possible to enhance machine performance and reduce periods of inactivity. Exploring artificial intelligence and machine learning algorithms can enhance machining parameters and energy efficiency. Additional examination is necessary to evaluate the environmental and economic effects of design-for-remanufacturing procedures, which will help direct the development of sustainable machine tools.