{'fraction_non_alphanumeric': 0.03258199238422798, 'fraction_numerical': 0.016828399459525856, 'mean_word_length': 5.021634615384615, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Gating System Optimization for EV31A Magnesium Alloy Engine Body Sand Casting

The research presented in this paper aimed to change the existing gating system that would enable the engine body casting, from a new EV31A magnesium alloy, of the required quality. For this reason, the casting process simulations used the MAGMASoft software, followed by the experimental validation of the achieved results. The results achieved in the first stage of the cast computer simulation enabled the identification of potential problems and factors that reduce the casting quality. However, the proposed design modifications eliminated the inadequate delivery of liquid metal to the casting’s critical areas by adequately controlling the mold cavity filling and solidification process. The experiment validated the simulations of the computer casting defects at the various stages. The results enabled the new EV31A magnesium alloy to be implemented in industrial production.


Introduction
The development of structural components for the aerospace industry focuses on reducing weight while improving mechanical properties [1]. It increases the interest in the new generation of magnesium alloys in the design process of modern aircraft engines. These are alloys characterized by low density and good mechanical properties at elevated temperatures [2].
The previous experience shows the necessity of replacing the used magnesium casting alloys with new ones that offer better functional parameters. In the last decade, it has made most cast components for the aerospace industry from AZ91 magnesium alloy. Research of engine components made of this alloy, exploited for over two thousand hours, shows that they are susceptible to crack, mainly in areas where the service temperature was higher than 120 • C [3]. The mechanical properties of the AZ91 alloy significantly decrease due to the Mg 17 Al 12 phase precipitates at α-Mg solid solution grain boundaries [4,5].
Therefore, it was necessary to replace the AZ91 alloy with the Mg-Y-RE group alloy characterized by a service temperature of 200 ÷ 250 • C [6]. It involves fundamental changes in casting mold making and liquid alloy preparation [7]. However, these alloys are expensive (addition of neodymium and yttrium) [8,9]. The EV31A alloy, which contains gadolinium instead of yttrium, is a suitable, cheaper alternative to these alloys [10,11]. The unique properties of this alloy (fluidity, solidification rate) cause significant changes in the mold pouring and solidification process. Accordingly, technological testing and the design process verification of new casting technology are required [12].
The gating system design is a critical factor in the sand casting process, which not only directly influences the molten metal flow, heat transfer, and alloy solidification but allows better casting quality [12,13]. Improper gating system design causes an increased liquid metal flow rate. That results in more turbulence on the surface, which promotes oxide film entrapment inside the liquid metal [14,15]. These trapped oxide layers promote the formation of other casting defects, such as shrinkage porosity and cracks [16]. An ideal gating system reduces the turbulent flow of molten metal inside the mold cavity, holds gas to a minimum level, and limits impurities [17].
In contrast to other alloys, magnesium alloys are susceptible to oxidation and hydrogen absorption. In magnesium alloys, oxide formation is immediate. Therefore, the gating system design has a more significant role in minimizing the oxide ingress from the molten metal surface into the casting and also in preventing the liquid metal from turbulence, the flow free-falling when moving from one level to another, or the flow direction changing rapidly. Because of this, magnesium castings are more susceptible to defects, such as porosity and oxide inclusions resulting from an incorrect gating system design [12].
Casting simulations using specialized software are an integral part of any process because they can significantly reduce production costs and product development time. The computer simulation used in the foundry industry is not a new idea. Many papers in the scientific literature aimed to get high-quality castings free from defects by understanding areas such as gating system design, filling and solidification sequence, and the influence of casting process parameters (thermophysical data, liquid metal temperature) [18]. However, each casting, not shaped differently but made of a dissimilar alloy, is an object that requires an alternative approach. Therefore, the gating system needs also to develop for each specific shape, size, wall thickness, and alloy. For this reason, increasingly advanced tools and computer programs are helpful in the gating system and casting mold design [19].
This paper presents the results of using MAGMASoft software (ver. 5.0, MAGMA Giessereitechnologie GmbH, Aachen, Germany) in the gating system optimization process of a helicopter engine body casting made of the EV31A magnesium alloy. Because of the new alloy's different thermophysical properties, the previously used gating system design required changes. The liquid alloy flow simulation allowed the identification of the critical spots in the gating system and the mold cavity. Meanwhile, the casting solidification simulation allowed the selection of the optimum pouring temperature and the determination of the optimum casting supply. The article also contains a simulation results analysis regarding casting defect possibilities related to casting fill and mold pouring parameters. Because of the gating system modification, the casting has the required quality, while the porosity is less than 2%. X-ray results and microstructure evaluation in critical areas of the actual casting confirm this. The results enabled the new EV31A magnesium alloy to be implemented in industrial production.

Materials
The material used in this study was EV31A magnesium alloy. Table 1 shows the chemical composition of this alloy. It is an alloy used in the sand casting form mainly in the aerospace industry.  Table 2 shows the chemical composition of Mrs9Mg molding sand used to form the mold.

Simulation
To create 3D solids of the investigated casting and casting mold, we used the Unigraphics NX2 program. Figure 1a shows an engine body model with 500 × 400 × 100 mm dimensions and 8 kg mass with the technological system used previously for AZ91 alloy. It is a layout with one shared distributor beam with a 35 × 30 mm cross-section area and four 45 × 10 supply gates. In addition, the gating system has typical open cylindrical risers feeding the casting's primary thermal nodes. A cast iron chillers system placed in casting bottom areas, with a thickness of at least 10 mm, supports a directional crystallization process. Meanwhile, Figure 1b shows a chrome-nickel tube collector (fuel-oil lines) embedded in a casting.

Simulation
To create 3D solids of the investigated casting and casting mold, we used the Unigraphics NX2 program. Figure 1a shows an engine body model with 500 × 400 × 100 mm dimensions and 8 kg mass with the technological system used previously for AZ91 alloy. It is a layout with one shared distributor beam with a 35 × 30 mm cross-section area and four 45 × 10 supply gates. In addition, the gating system has typical open cylindrical risers feeding the casting's primary thermal nodes. A cast iron chillers system placed in casting bottom areas, with a thickness of at least 10mm, supports a directional crystallization process. Meanwhile, Figure 1b shows a chrome-nickel tube collector (fuel-oil lines) embedded in a casting. The simulation used the SOLVER 5 version of the MAGMASoft software, whose mathematical model closely reflects the processes occurring during the mold cavity filling. Table 3 shows the material's thermophysical properties used in the simulation.

Experimental
For the EV31A alloy, melts used an electric furnace with a maximum of 70 kg input. The protective gas mixture used was Ar-6 dm 3 /min, CO2-6 dm 3 /min, and SF6-0.16 dm 3 /min. Sand casting temperature was 760 ÷ 780 °C with stirring's melt homogenization. Figure 2a shows the casting mold during assembly, while Figure 2b shows the engine body sand casting with the gating system. The simulation used the SOLVER 5 version of the MAGMASoft software, whose mathematical model closely reflects the processes occurring during the mold cavity filling. Table 3 shows the material's thermophysical properties used in the simulation.

Experimental
For the EV31A alloy, melts used an electric furnace with a maximum of 70 kg input. The protective gas mixture used was Ar-6 dm 3 /min, CO 2 -6 dm 3 /min, and SF 6 -0.16 dm 3 /min. Sand casting temperature was 760 ÷ 780 • C with stirring's melt homogenization. Figure 2a shows the casting mold during assembly, while Figure 2b shows the engine body sand casting with the gating system.

XRD and Microstructural Examinations
The X-ray testing usedX5000 industrial CT X-ray inspection system (North Star Imaging, Rogers, MN, USA). From the highest porosity areas shown in the simulation, samples were cut for microstructure studies. Metallographic specimens used a typical procedure. The research used an Olympus GX71 optical microscope (Olympus, Tokyo, Japan) and a Hitachi S3400N scanning microscope (Tokyo, Japan). Meanwhile, the quantitative porosity analysis used the image analysis software AnalySIS Pro (AnalySIS Pro®ver. 5.0 Olympus, Tokyo, Japan) (

XRD and Microstructural Examinations
The X-ray testing usedX5000 industrial CT X-ray inspection system (North Star Imaging, Rogers, MN, USA). From the highest porosity areas shown in the simulation, samples were cut for microstructure studies. Metallographic specimens used a typical procedure. The research used an Olympus GX71 optical microscope (Olympus, Tokyo, Japan) and a Hitachi S3400N scanning microscope (Tokyo, Japan). Meanwhile, the quantitative porosity analysis used the image analysis software AnalySIS Pro (AnalySIS Pro® ver. 5.0 Olympus, Tokyo, Japan) ( Figure 3).

Results and Discussion
In the first research stage, the simulation included only the casting, the tube collector, the mold body, and the gating system used to cast AZ91 alloy. The chrome-nickel tube collector sunk in casting in MAGMASOFT is a chiller heated to about 80 °C before pouring. The first stage aimed to observe the mold filling process for liquid melt disturbances and turbulences with the secondary oxide inclusions formation. For the EV31A alloy, this is very important because of the zirconium's high affinity for bonding with oxide inclusions. Zirconium concentration around oxide inclusions results in the formation of a structural defect and reduces the effect of the α-Mg solid solution grain refinement. However, the increased number of defects significantly affects the directional solidification process disturbance (casting, risers) and shrinkage defect formation.
The significant factor affecting a liquid alloy's intense oxidation in the mold cavity is the air content in the melt. The critical value is 20%, while the air volume preferred should not exceed 10%. When the mold cavity is 20% filled (Figure 4a), the liquid melt stream collision phenomenon is visible near the highest diameter collector tubes (yellow arrow).

XRD and Microstructural Examinations
The X-ray testing usedX5000 industrial CT X-ray inspection system (North Star Imaging, Rogers, MN, USA). From the highest porosity areas shown in the simulation, samples were cut for microstructure studies. Metallographic specimens used a typical procedure. The research used an Olympus GX71 optical microscope (Olympus, Tokyo, Japan) and a Hitachi S3400N scanning microscope (Tokyo, Japan). Meanwhile, the quantitative porosity analysis used the image analysis software AnalySIS Pro (AnalySIS Pro® ver. 5.0 Olympus, Tokyo, Japan) ( Figure 3).

Results and Discussion
In the first research stage, the simulation included only the casting, the tube collector, the mold body, and the gating system used to cast AZ91 alloy. The chrome-nickel tube collector sunk in casting in MAGMASOFT is a chiller heated to about 80 °C before pouring. The first stage aimed to observe the mold filling process for liquid melt disturbances and turbulences with the secondary oxide inclusions formation. For the EV31A alloy, this is very important because of the zirconium's high affinity for bonding with oxide inclusions. Zirconium concentration around oxide inclusions results in the formation of a structural defect and reduces the effect of the α-Mg solid solution grain refinement. However, the increased number of defects significantly affects the directional solidification process disturbance (casting, risers) and shrinkage defect formation.
The significant factor affecting a liquid alloy's intense oxidation in the mold cavity is the air content in the melt. The critical value is 20%, while the air volume preferred should not exceed 10%. When the mold cavity is 20% filled (Figure 4a), the liquid melt stream collision phenomenon is visible near the highest diameter collector tubes (yellow arrow).

Results and Discussion
In the first research stage, the simulation included only the casting, the tube collector, the mold body, and the gating system used to cast AZ91 alloy. The chrome-nickel tube collector sunk in casting in MAGMASOFT is a chiller heated to about 80 • C before pouring. The first stage aimed to observe the mold filling process for liquid melt disturbances and turbulences with the secondary oxide inclusions formation. For the EV31A alloy, this is very important because of the zirconium's high affinity for bonding with oxide inclusions. Zirconium concentration around oxide inclusions results in the formation of a structural defect and reduces the effect of the α-Mg solid solution grain refinement. However, the increased number of defects significantly affects the directional solidification process disturbance (casting, risers) and shrinkage defect formation.
The significant factor affecting a liquid alloy's intense oxidation in the mold cavity is the air content in the melt. The critical value is 20%, while the air volume preferred should not exceed 10%. When the mold cavity is 20% filled (Figure 4a), the liquid melt stream collision phenomenon is visible near the highest diameter collector tubes (yellow arrow). This effect causes a local air concentration to increase between 8.5% and 12.8%. However, when the mold cavity is 35% filled (Figure 4b), the liquid melt air content increases locally to over 20%. In addition, another higher air content area creates in the casting. The same is true of the other feeding gates (WD), with air content between 5% and 15%. However, as the liquid alloy mirror rises in the mold cavity, the air content decreases, or secondary oxides form.
This effect causes a local air concentration to increase between 8.5% and 12.8%. However, when the mold cavity is 35% filled (Figure 4b), the liquid melt air content increases locally to over 20%. In addition, another higher air content area creates in the casting. The same is true of the other feeding gates (WD), with air content between 5% and 15%. However, as the liquid alloy mirror rises in the mold cavity, the air content decreases, or secondary oxides form.  On the upper casting walls, after 100% mold filling, the liquid melt air content is less than 3%. Two casting areas show increased amounts of air between 12% and 16% ( Figure  5). However, these are the places where there will be risers feeding and thus exhausting the cold, oxidized, and air-rich liquid melt front. Meanwhile, the porosity (total porosity criterion), analyzed only in the liquid melt feed areas, was as high as 70% in the WD3 area (Figure 6a). In other zones, it is less than 2%.  On the upper casting walls, after 100% mold filling, the liquid melt air content is less than 3%. Two casting areas show increased amounts of air between 12% and 16% ( Figure 5). However, these are the places where there will be risers feeding and thus exhausting the cold, oxidized, and air-rich liquid melt front. Meanwhile, the porosity (total porosity criterion), analyzed only in the liquid melt feed areas, was as high as 70% in the WD3 area (Figure 6a). In other zones, it is less than 2%. This effect causes a local air concentration to increase between 8.5% and 12.8%. However, when the mold cavity is 35% filled (Figure 4b), the liquid melt air content increases locally to over 20%. In addition, another higher air content area creates in the casting. The same is true of the other feeding gates (WD), with air content between 5% and 15%. However, as the liquid alloy mirror rises in the mold cavity, the air content decreases, or secondary oxides form.
(a) (b) On the upper casting walls, after 100% mold filling, the liquid melt air content is less than 3%. Two casting areas show increased amounts of air between 12% and 16% ( Figure  5). However, these are the places where there will be risers feeding and thus exhausting the cold, oxidized, and air-rich liquid melt front. Meanwhile, the porosity (total porosity criterion), analyzed only in the liquid melt feed areas, was as high as 70% in the WD3 area (Figure 6a). In other zones, it is less than 2%.  The actual cast X-ray examinations confirmed the defects present in these areas (Figure 6b). These are mainly oxide impurities (Figure 7a) and significant porosity (Figure 7b), which reach ~30% in the areas marked in Figure 6a.  The actual cast X-ray examinations confirmed the defects present in these areas (Figure 6b). These are mainly oxide impurities (Figure 7a) and significant porosity (Figure 7b), which reach~30% in the areas marked in Figure 6a. (a) (b) Figure 6. Stage 1 (a) Porosity in feeding gates areas; (b) Corresponding X-ray image.
The actual cast X-ray examinations confirmed the defects present in these areas (Figure 6b). These are mainly oxide impurities (Figure 7a) and significant porosity (Figure 7b), which reach ~30% in the areas marked in Figure 6a. The second stage aimed to determine the increased feed cross-section effect on reducing turbulence and eliminating oxide inclusions in the liquid melt. In addition, the shape of the feeding gates at each gate changes, introducing a smooth transition with the entry radius into the gate's top surface (Figure 8).  The second stage aimed to determine the increased feed cross-section effect on reducing turbulence and eliminating oxide inclusions in the liquid melt. In addition, the shape of the feeding gates at each gate changes, introducing a smooth transition with the entry radius into the gate's top surface (Figure 8).
The actual cast X-ray examinations confirmed the defects present in these areas (Figure 6b). These are mainly oxide impurities (Figure 7a) and significant porosity (Figure 7b), which reach ~30% in the areas marked in Figure 6a. The second stage aimed to determine the increased feed cross-section effect on reducing turbulence and eliminating oxide inclusions in the liquid melt. In addition, the shape of the feeding gates at each gate changes, introducing a smooth transition with the entry radius into the gate's top surface (Figure 8).  After these changes, at 20% mold filling, larger air bubble clusters occur in the liquid melt compared to the first stage (Figure 9a). The air volume in the centers of the clusters reaches values above 20%. However, during the successive filling of the mold cavity, the area number and the air volume in those areas decrease (Figure 9b).
The increased liquid melt flow rate through the individual feeding gates moves the air-liquid metal mixture into the casting regions where the hot spots (oil channels, flanges) occur. Less entrapped air reduces casting porosity. WD1 and WD4 feeding gates are defect-free. However, in the WD3 feeding gate, the porosity decreased from 70% to about 13% ( Figure 10). After these changes, at 20% mold filling, larger air bubble clusters occur in the liquid melt compared to the first stage (Figure 9a). The air volume in the centers of the clusters reaches values above 20%. However, during the successive filling of the mold cavity, the area number and the air volume in those areas decrease (Figure 9b). The increased liquid melt flow rate through the individual feeding gates moves the air-liquid metal mixture into the casting regions where the hot spots (oil channels, flanges) occur. Less entrapped air reduces casting porosity. WD1 and WD4 feeding gates are defect-free. However, in the WD3 feeding gate, the porosity decreased from 70% to about 13% ( Figure 10). In the next stage, larger slag tanks used ceramic filters with a 10 ppi density ( Figure  11). The larger ceramic filter tank provides a smoothly liquid melt flow into the mold cavity, an air lower proportion in the liquid melt, and fewer air-trapped clusters ( Figure 12). melt compared to the first stage (Figure 9a). The air volume in the centers of the clusters reaches values above 20%. However, during the successive filling of the mold cavity, the area number and the air volume in those areas decrease (Figure 9b). The increased liquid melt flow rate through the individual feeding gates moves the air-liquid metal mixture into the casting regions where the hot spots (oil channels, flanges) occur. Less entrapped air reduces casting porosity. WD1 and WD4 feeding gates are defect-free. However, in the WD3 feeding gate, the porosity decreased from 70% to about 13% ( Figure 10). In the next stage, larger slag tanks used ceramic filters with a 10 ppi density ( Figure  11). The larger ceramic filter tank provides a smoothly liquid melt flow into the mold cavity, an air lower proportion in the liquid melt, and fewer air-trapped clusters ( Figure 12). In the next stage, larger slag tanks used ceramic filters with a 10 ppi density ( Figure 11). The larger ceramic filter tank provides a smoothly liquid melt flow into the mold cavity, an air lower proportion in the liquid melt, and fewer air-trapped clusters ( Figure 12).  The gravity top feeding system is used in the fourth stage of the simulation. Risers occur in the hot node's main areas and exits of the oxidized liquid alloy front ( Figure 13).  The gravity top feeding system is used in the fourth stage of the simulation. Risers occur in the hot node's main areas and exits of the oxidized liquid alloy front ( Figure 13). The gravity top feeding system is used in the fourth stage of the simulation. Risers occur in the hot node's main areas and exits of the oxidized liquid alloy front ( Figure 13).  Efficient feeding process analysis shows that top feeding risers eliminate casting shrinkage and reduce shrinkage porosity. Most of the resulting defects occur in the casting lower zones. However, these are zones cut off from the cast crystallization directional processes because of the casting geometry. This solution prevents the casting's lower zones from feeding, as the feeding zones do not connect to the thermal node zones. The results of the comparison with the previous system without the feeding elements (Figure 14a) reveal that the introduced risers eliminate most shrinkage defects (Figure 14b). The same is true of the porosity. While the system without feeding elements has over 3% microporosity (Figure 15a), the system with top feeding risers has less than 1.5% microporosity (Figure 15b). cesses because of the casting geometry. This solution prevents the casting's lower zones from feeding, as the feeding zones do not connect to the thermal node zones. The results of the comparison with the previous system without the feeding elements (Figure 14a) reveal that the introduced risers eliminate most shrinkage defects (Figure 14b). The same is true of the porosity. While the system without feeding elements has over 3% microporosity (Figure 15a), the system with top feeding risers has less than 1.5% microporosity (Figure 15b).  The highest microporosity occurred in the chrome-nickel tube collector areas and at the feeding gates. Its presence contributed to the leak formation in the casting wall crosssection (Figure 16a). In addition, the lower casting parts show more porosity (Figure 16b). The microstructure examination of the cast near these areas (Figure 17) confirms this. The highest microporosity occurred in the chrome-nickel tube collector areas and at the feeding gates. Its presence contributed to the leak formation in the casting wall crosssection (Figure 16a). In addition, the lower casting parts show more porosity (Figure 16b). The microstructure examination of the cast near these areas ( Figure 17) confirms this.
(a) (b) Figure 15. Stage 4 Microporosity criterion: (a) the system without feeding elements; (b) the system with top feeding risers.
The highest microporosity occurred in the chrome-nickel tube collector areas and at the feeding gates. Its presence contributed to the leak formation in the casting wall crosssection (Figure 16a). In addition, the lower casting parts show more porosity (Figure 16b). The microstructure examination of the cast near these areas ( Figure 17) confirms this.  Alloy solidification process control, which creates one-directional crystallization favorable conditions, requires the addition of technological elements that increase the effect of the faster boundary phenomenon. Cast iron chillers are these elements, which, together with the risers, will create a stabilized crystallization process. Their correct size and shape allow a properly directed crystallization front. Therefore, in stage 5, the cast iron chiller's thickness increased from 10 mm to 15 mm ( Figure 18). The distribution of shrinkage defects (Total Porosity criterion) shows less intensity and location with the lower chiller thickness version (Figure 19), while the porosity moved from the machined surfaces into the casting walls. However, it is insignificant and remains below 2% (Figure 20). Therefore, increasing the chiller's thickness can be the preventive protection against mold overheating caused by the permissible pouring temperature exceeding. Alloy solidification process control, which creates one-directional crystallization favorable conditions, requires the addition of technological elements that increase the effect of the faster boundary phenomenon. Cast iron chillers are these elements, which, together with the risers, will create a stabilized crystallization process. Their correct size and shape allow a properly directed crystallization front. Therefore, in stage 5, the cast iron chiller's thickness increased from 10 mm to 15 mm ( Figure 18). Alloy solidification process control, which creates one-directional crystallization favorable conditions, requires the addition of technological elements that increase the effect of the faster boundary phenomenon. Cast iron chillers are these elements, which, together with the risers, will create a stabilized crystallization process. Their correct size and shape allow a properly directed crystallization front. Therefore, in stage 5, the cast iron chiller's thickness increased from 10 mm to 15 mm ( Figure 18). The distribution of shrinkage defects (Total Porosity criterion) shows less intensity and location with the lower chiller thickness version (Figure 19), while the porosity moved from the machined surfaces into the casting walls. However, it is insignificant and remains below 2% (Figure 20). Therefore, increasing the chiller's thickness can be the preventive protection against mold overheating caused by the permissible pouring temperature exceeding. The distribution of shrinkage defects (Total Porosity criterion) shows less intensity and location with the lower chiller thickness version (Figure 19), while the porosity moved from the machined surfaces into the casting walls. However, it is insignificant and remains below 2% ( Figure 20). Therefore, increasing the chiller's thickness can be the preventive protection against mold overheating caused by the permissible pouring temperature exceeding. In addition, the shrinkage porosity significantly decreased (Figure 21), which confirmed the XRD results ( Figure 22a) and microstructure research (Figure 22b). In addition, the shrinkage porosity significantly decreased (Figure 21), which confirmed the XRD results ( Figure 22a) and microstructure research (Figure 22b). In addition, the shrinkage porosity significantly decreased (Figure 21), which confirmed the XRD results ( Figure 22a) and microstructure research (Figure 22b).

Summary
The research presented in this paper aimed to change the existing gating system that would enable the engine body casting, from a new EV31A magnesium alloy, of the required quality. For this reason, the casting process simulations used the MAGMASoft software, followed by the experimental validation of the achieved results. The engine body casting process computer simulation results conducted in the first stage enabled the identification of potential problems and factors that reduce EV31A magnesium alloy casting's quality. The proposed design modifications eliminated the inadequate liquid metal delivery to critical areas of the casting by adequately controlling the mold cavity filling and solidification process. Design corrections included: • 2nd stage: increase the feed cross-section and feeding gates shape on each gate, introducing a smooth transition with the entry radius into the top gate top surface, which reduces turbulence and eliminates oxide inclusions

Summary
The research presented in this paper aimed to change the existing gating system that would enable the engine body casting, from a new EV31A magnesium alloy, of the required quality. For this reason, the casting process simulations used the MAGMASoft software, followed by the experimental validation of the achieved results. The engine body casting process computer simulation results conducted in the first stage enabled the identification of potential problems and factors that reduce EV31A magnesium alloy casting's quality. The proposed design modifications eliminated the inadequate liquid metal delivery to critical areas of the casting by adequately controlling the mold cavity filling and solidification process. Design corrections included: • 2nd stage: increase the feed cross-section and feeding gates shape on each gate, introducing a smooth transition with the entry radius into the top gate top surface, which reduces turbulence and eliminates oxide inclusions

Summary
The research presented in this paper aimed to change the existing gating system that would enable the engine body casting, from a new EV31A magnesium alloy, of the required quality. For this reason, the casting process simulations used the MAGMASoft software, followed by the experimental validation of the achieved results. The engine body casting process computer simulation results conducted in the first stage enabled the identification of potential problems and factors that reduce EV31A magnesium alloy casting's quality. The proposed design modifications eliminated the inadequate liquid metal delivery to critical areas of the casting by adequately controlling the mold cavity filling and solidification process. Design corrections included: • 2nd stage: increase the feed cross-section and feeding gates shape on each gate, introducing a smooth transition with the entry radius into the top gate top surface, which reduces turbulence and eliminates oxide inclusions • 3rd stage: introducing the ceramic filters, which should protect the casting from impurities • 4th stage: using a gravity top feeding system, which compensates for casting shrinkage and reduces porosity • 5th stage: increase the chillers thickness to 15 mm, which reduces the shrinkage defects volume and microporosity to a maximum of 2%.
The experiment validated the computer simulations of the casting defects at various stages. The engine body, cast according to stage 5 guidelines, has almost no shrinkage porosity. However, the remaining micropores are magnesium alloy casting's inseparable parts. Thus, the casting analyzed meets all requirements and is suitable for industrial production. Therefore, the system achieved in step 5 is the optimal technological system with a minimal tendency to microporosity based on both simulation and experimental results. The changed design of the gating system made it possible to implement the new EV31A magnesium alloy in industrial production.