Development of Mold Parameter Software for Steel Sand Casting Parts

In this thesis, I present the design and implementation of a computer-aided process planning software system specifically developed for steel sand casting parts. The system focuses on the calculation and modification of four critical casting process parameters: machining allowance, shrinkage allowance, draft angle, and minimum cored hole size. The software is built on the AutoCAD platform using ObjectARX technology and employs an Access database for efficient parameter storage and retrieval. Throughout my research, I aimed to improve the efficiency and consistency of casting process design for sand casting parts by integrating empirical data, engineering standards, and parametric 3D modeling.

The traditional approach to casting process design relies heavily on manual calculation, lookup tables, and the personal experience of engineers. For complex steel sand casting parts, this often leads to long design cycles, inconsistency, and difficulty in optimizing parameters. The availability of a reliable software tool that automates these calculations and directly modifies the 3D model can significantly enhance productivity and quality. The system I developed aims to achieve this by offering an interactive, visual, and database-driven environment for process engineers.

1. Introduction

Casting process design is the fundamental step in producing steel sand casting parts. It involves determining the molding method, selecting process parameters, creating the casting drawing, and issuing process documentation. Among these tasks, the selection of machining allowances, shrinkage allowances, draft angles, and minimum cored holes is crucial because they directly affect the dimensional accuracy, surface quality, and soundness of the final steel sand casting parts. Computer-aided design (CAD) systems have been widely used to facilitate this process, and the combination of CAD with casting process knowledge has led to the development of specialized CAWD (Casting Aided Working Design) systems.

Over the past decades, many researchers have developed casting process software for various alloys and molding methods. For steel sand casting parts, the challenge lies in handling the high solidification shrinkage, high pouring temperature, and complex thermal stresses. Therefore, accurate shrinkage allowance and proper draft design are particularly important. My work focuses on creating a lightweight but powerful add-on within AutoCAD, which is already familiar to many foundry engineers.

2. Development Environment and Platform Selection

The selection of software and hardware platforms is essential for the success of any CAD development project. In my research, I systematically evaluated the available operating systems, CAD kernels, programming languages, and database systems. The following subsections summarize my choices.

2.1 Operating System

I chose Microsoft Windows XP Professional as the operating system for this development. Windows XP provides excellent stability, security, and broad compatibility with both legacy and modern applications. It also supports the required development tools and the AutoCAD environment without conflicts. The system is widely adopted in industrial settings, ensuring that the resulting software can be easily deployed in foundry companies.

2.2 CAD Application Software

AutoCAD is the primary CAD platform because of its open architecture and extensive use in mechanical engineering and mold design. The version I used is AutoCAD with ObjectARX. AutoCAD allows users to create both 2D drawings and 3D solid models, perform dimensioning, rendering, and output. Its robust API enables deep integration with custom applications, making it ideal for developing additive functions for sand casting parts.

2.3 Development Language and Tool

In AutoCAD, there are three main development environments: AutoLISP, VBA, and ObjectARX. I compared these options and selected ObjectARX because it offers the highest efficiency, speed, and stability. ObjectARX is a C++ class library that runs in the same address space as AutoCAD, allowing direct access to the AutoCAD database, graphics system, and geometric modeling kernel. With ObjectARX, I can create custom classes, define new commands, and extend AutoCAD’s functionality in real time. The table below compares the three environments.

Development Language Language Type Functionality Computational Efficiency Execution Speed
AutoLISP Interpretive Limited Low Slow
VBA Interpretive with COM Moderately powerful Medium Medium
ObjectARX (C++) Compiled, Object-Oriented Stable and powerful High Fast

Using ObjectARX, I can perform tasks such as accessing the AutoCAD database, interacting with the editor, creating user interfaces with MFC classes, supporting multiple document interfaces, creating custom classes, and communicating with other programming environments. The class library provides a set of generic tools that leverage the full development structure of AutoCAD, enabling me to directly manipulate data structures and geometric kernels.

2.4 Database System

For storing process parameter data, I selected Microsoft Access. Access provides a user-friendly, visual environment for creating database files through wizards. It is widely available and does not require complex server setup. Inside the application, I used the Open Database Connectivity (ODBC) interface to read data directly from the Access database. This approach simplifies data management and allows engineers to update, add, or query parameters without modifying the source code.

3. Database Construction for Casting Parameters

One of the core contributions of this software is the integration of a comprehensive parameter database for steel sand casting parts. I designed the database to store empirical and normative data for machining allowance, shrinkage allowance, draft angle, and minimum cored hole size. The database is structured into multiple tables, each corresponding to a specific parameter module. By using an Access database, end users can easily inspect and revise the data through a visual interface, ensuring that the software remains adaptable to different production conditions.

The database is connected to the program via a system data source name (DSN). The user must configure the DSN to point to the provided Access file. After that, the software transparently retrieves the required values according to the geometry dimensions and design conditions. This architecture allows for quick data lookup and eliminates manual errors in reading printed tables.

4. Development of the Casting Process Parameter Software Package

The overall development process using ObjectARX in Visual C++ involves several steps. First, I created a new ObjectARX project in Visual C++ 6.0. The project wizard generates a basic framework with an application class and a command entry point. I then modified the project settings to support MFC in a shared DLL and enable the ObjectARX extension modules. After the basic setup, I created custom dialog classes and global functions to implement the four modules.

The class design follows an object-oriented approach. Each module is represented by a set of dialog classes that handle user interaction and a set of global functions that perform the actual geometric operations on the selected solids or faces. The dialog classes inherit from MFC’s CDialog or CPropertyPage classes, which provides a native Windows look and feel.

5. Machining Allowance Module

The machining allowance is the thickness of metal layer reserved on the surface of a casting to be removed during subsequent machining. For steel sand casting parts, excessive allowance increases material waste and machining time, whereas insufficient allowance can leave surface defects and fail to meet design requirements. My module helps engineers determine the appropriate machining allowance based on the maximum dimension of the casting and the selected tolerance grade.

The standard defines nine machining allowance grades, denoted from A to J. For steel sand casting parts produced in sand molds, typical grades are from G to K for hand molding and from F to H for machine molding. The table below shows a representative subset of the data used in the database.

Maximum Dimension (mm) Grade F (mm) Grade G (mm) Grade H (mm) Grade J (mm)
Over 25 to 40 1.5 2.0 2.5 3.0
Over 40 to 63 2.0 2.5 3.0 3.5
Over 63 to 100 2.5 3.0 3.5 4.0
Over 100 to 160 3.0 3.5 4.0 5.0
Over 160 to 250 3.5 4.5 5.0 6.0

In my implementation, the user is prompted to select a face or a cylindrical surface. For cylindrical surfaces, the software additionally requests the direction of the cylinder axis (vertical or horizontal). Then the user selects the machining grade from a dialog. The software retrieves the allowance value from the database and creates an offset surface or modifies the solid model accordingly. The following diagram illustrates the flow of the machining allowance module.

Select surface type → Determine cylindrical direction → Pick a surface → Select machining grade → Determine dimension range → Query database → Modify geometry parametrically → Finish.

The main functions implemented include AddMachiningAllowanceForCylinder and AddMachiningAllowanceForSurface. These functions operate on the selected AutoCAD entities and use the underlying AcDb classes to modify the model. The modification is performed by moving or offsetting the selected face along its normal direction by the allowance amount.

6. Shrinkage Allowance Module

Steel has a high solidification shrinkage, so the pattern and mold cavity must be made larger than the final casting dimension. The linear shrinkage rate is defined as:

$$ \varepsilon = \frac{L_{pattern} – L_{casting}}{L_{pattern}} \times 100\% $$

where \(L_{pattern}\) is the pattern dimension and \(L_{casting}\) is the casting dimension. In practice, the actual shrinkage rate depends on not only the alloy composition and solidification range but also the casting structure, mold type, and restraint intensity. My shrinkage module provides a systematic way to select the appropriate shrinkage rate based on the mold resistance and the pattern length.

For steel sand casting parts, typical shrinkage rates for free contraction range from 1.8% to 2.2%, while for hindered contraction they are lower, around 1.2% to 1.8%. The table below shows a representative dataset.

Pattern Length (mm) Free Contraction (%) Restrained Contraction (%)
Up to 500 2.0 – 2.2 1.5 – 1.8
500 – 1000 1.9 – 2.1 1.4 – 1.7
1000 – 2000 1.8 – 2.0 1.3 – 1.6
2000 – 3000 1.7 – 1.9 1.2 – 1.5

The user first selects a solid casting (or a set of solids) and specifies whether the shrinkage is free or restrained. The software then determines the overall bounding box dimension as a reference. After querying the database, it applies a uniform scale to the entire solid model about a selected base point, usually the origin or a reference corner. The scaling factor is computed as:

$$ \lambda = 1 + \frac{\varepsilon}{100} $$

where \(\varepsilon\) is the selected linear shrinkage rate. The geometric transformation is executed using the ObjectARX transformation matrix functions. In this way, the pattern geometry for steel sand casting parts is automatically enlarged to compensate for solidification shrinkage.

7. Draft Angle (Pattern Draft) Module

To facilitate the removal of the pattern from the sand mold without damaging the mold cavity, a draft angle is added to the vertical surfaces of the pattern. This angle is also known as pattern taper or stripping angle. The draft is applied to the direction of mold withdrawal. For steel sand casting parts, the draft angle depends on the mold material (metal or wood pattern), the surface type (external or internal), and the height of the measured plane.

There are three principal ways to apply draft: increasing the casting wall thickness, increasing and decreasing the wall thickness, or decreasing the wall thickness. The choice depends on whether the surface is to be machined and whether it mates with other components. In my software, I implemented all three forms according to the following rules:

  • On machined surfaces: use increasing casting thickness.
  • On non-machined surfaces that do not assemble with other parts: use increasing, increasing/decreasing, or decreasing.
  • On non-machined surfaces that assemble with other parts: use decreasing or increasing/decreasing.

The table below lists typical draft angle values for steel casting patterns.

Measured Height (mm) Metal Pattern – External (angle or mm) Metal Pattern – Internal (angle or mm) Wood Pattern – External (angle or mm) Wood Pattern – Internal (angle or mm)
Up to 20 1°30′ (0.5 mm) 2° (0.6 mm) 2° (0.7 mm) 2°30′ (0.8 mm)
20 – 50 1° (0.8 mm) 1°30′ (1.0 mm) 1°30′ (1.2 mm) 2° (1.5 mm)
50 – 100 0°45′ (1.2 mm) 1° (1.5 mm) 1° (2.0 mm) 1°30′ (2.5 mm)
100 – 200 0°30′ (1.6 mm) 0°45′ (2.0 mm) 0°45′ (2.5 mm) 1° (3.5 mm)

In the software, the user first selects the target surface or chooses to apply draft to all relevant vertical faces. Then the user picks the mold type (metal or wood), indicates whether the surface is external or internal, and specifies the direction of draft. The software measures the height of the selected face automatically and queries the database for the required angle or offset. For added accuracy, the draft can be expressed either as an angle or as a horizontal offset at the measured height. The relationship between them is:

$$ \tan \theta = \frac{\Delta t}{h} $$

where \(\theta\) is the draft angle, \(\Delta t\) is the horizontal offset, and \(h\) is the height of the face. The software then rotates or translates the selected faces accordingly, preserving the overall topology of the steel sand casting parts.

8. Minimum Cored Hole Module

Not every hole in a casting must be produced by the mold. For small holes, it is often more economical and precise to leave them solid and machine them later. However, larger holes should be cast to save material and machining time and to avoid local thermal hot spots. The decision depends on the hole diameter, hole depth, and wall thickness. My minimum cored hole module helps the engineer determine the minimum diameter that should be cored for a given set of conditions.

If a hole is too small and the wall is thick, it is not recommended to cast the hole. Conversely, if the hole is large and the wall is thin, casting the hole is beneficial. The table below shows an example of the minimum cored hole diameter data for steel sand casting parts.

Wall Thickness (mm) Hole Depth (mm) ≤ 50 Hole Depth (mm) 50-100 Hole Depth (mm) 100-200 Hole Depth (mm) > 200
≤ 10 12 14 16 20
10 – 20 14 16 18 22
20 – 40 16 18 20 25
40 – 80 20 22 25 30

The workflow of this module is as follows: the user selects a cylindrical inner surface (the hole wall) or a planar face around a potential hole. Then the software measures the wall thickness using a ray projection or distance measurement. After that, the user enters or selects the hole depth. The software queries the database for the minimum cored diameter. If the existing hole diameter is greater than or equal to the minimum value, the hole is retained; otherwise, the software automatically fills the hole (i.e., removes the cylindrical void) so that the hole will not be cored in the pattern. This is accomplished by creating a new solid by subtracting or by modifying the boundary representation of the original body.

The main functions implemented are ModifyMinimumCoredHole and ApplySameDatumHoles. The latter helps when multiple holes share the same dimensions and can be processed with one database retrieval.

9. Software Usage and Application Examples

To demonstrate the effectiveness and functionality of the developed software, I tested it on several practical steel sand casting parts. The software runs smoothly within the AutoCAD 3D environment, and all dialogs are intuitive. Before starting, the user must ensure that the system DSN is correctly configured. The configuration can be done through the Windows Control Panel or by running the ODBC administrator. I provided a detailed user manual in the distribution package.

In the first example, a bracket with a cylindrical boss, inclined ribs, and four circular holes is processed. The following operations were performed:

  1. Draft angle operation: Applied to the cylindrical part and the inclined ribs with an increasing wall thickness condition. The draft angle dialog allowed selecting the surface type, pattern material, and draft direction.
  2. Minimum cored hole operation: Applied to four circular holes. The software determined that the holes were smaller than the minimum cored diameter for the given wall thickness, so it automatically removed them. This indicates that these holes should not be cored during casting and must be machined later.
  3. Machining allowance operation: Applied to the bottom face. The selected machining grade determined the offset amount, and the software offset the face upward by that amount.
  4. Shrinkage operation: Applied to the entire solid model. Choosing the restrained contraction type and a reference dimension caused the software to scale the part uniformly by the corresponding factor.

The original 3D part is shown in my thesis as a wireframe model. After the operations, the graphical result shows no visible holes because they were removed by the minimum cored hole module. The draft angle modifications, although small, were confirmed by zooming into the local area. The figures in the full thesis illustrate these changes clearly.

In the second example, a more complex part with several faces and one through-hole is treated. The bottom face was given a machining allowance for subsequent finishing. The side face was given a draft angle to facilitate pattern withdrawal. The hole was processed with the minimum cored hole module and, depending on its diameter, was either kept or removed. The resulting 3D model displayed the intended geometry modifications.

These examples prove that the developed modules are fully operational and integrated. The software significantly reduces the time required for manual data lookup and manual geometric editing. Moreover, the three-dimensional visualization helps engineers verify the correctness of the process parameters before producing the physical pattern.

10. Discussion and Results

From the practical tests, I summarize the following achievements:

  • The four modules (machining allowance, shrinkage, draft angle, minimum cored hole) are correctly implemented within the AutoCAD 3D environment, and they perform as expected for steel sand casting parts.
  • The use of ObjectARX classes provides a clean and efficient Object-Oriented design. The program code for functions that operate on casting solids is concise and executes rapidly.
  • The dialog-based user interface, built with MFC classes, makes the design process user-friendly. Engineers can easily understand and use the software after a short training period.
  • The object-oriented class structure promotes code maintainability and upgradeability. New functions or new parameter tables can be added without rewriting the entire system.
  • Storing process parameters in an Access database improves accuracy and flexibility. Data can be updated centrally, and the same database can serve multiple modules. This avoids the duplication of data and reduces the risk of inconsistency.

One important observation is that the shrinkage module applies a uniform scale to the whole solid. In reality, the shrinkage of complex steel sand casting parts may be directional or locally non-uniform. However, for many initial design purposes, a uniform shrink factor is acceptable. Future improvements could integrate simulation results to apply non-uniform scaling or distortion compensation.

Another point is that the minimum cored hole module uses a simplified criterion based on wall thickness and hole depth. In practice, the decision also depends on the alloy, mold compaction, and core assembly. My database can be easily expanded to include additional influencing factors.

11. Comparison with Existing Systems

Many casting process design systems have been developed in academic and industrial settings. Early systems were mainly two-dimensional and focused on riser and gating design. Some modern systems, such as those from Tsinghua University and Huazhong University of Science and Technology, provide advanced numerical simulation and defect prediction. However, not all of them offer the specific parameter-oriented functions that I have implemented. My software occupies a niche by directly operating on 3D solid models and handling the four essential parameters for steel sand casting parts. The table below summarizes the typical features of some domestic and commercial systems compared to my work.

System / Developer Platform Main Functions Design Method Scope
Tsinghua University FT-Cast 3D Riser, gating, chilling, process parameters Modulus method Steel, iron
Huazhong HZ-Cast 3D Riser, gating, process parameters Modulus and proportional method Steel, iron
Dalian University 3D Riser, gating, drafting Hot spot circle method Iron
My system AutoCAD 3D Machining allowance, shrinkage, draft, min. cored hole Database lookup and parametric modification Steel sand casting parts

While other systems concentrate on feeding system design, my work focuses on the geometric parameters that determine the pattern dimensions and castability. These parameters are equally important but often neglected in the early stage. By integrating them into a single CAD environment, I provide a complete workflow for creating the pattern geometry of steel sand casting parts.

12. Conclusions

In this thesis, I successfully developed a casting process parameter software package for steel sand casting parts. The system includes four robust modules that assist process engineers in determining machining allowances, applying shrink factors, designing draft angles, and evaluating the necessity of coring holes. The software works seamlessly in AutoCAD’s 3D environment, offering a high degree of visualization and interactivity.

The main conclusions drawn from this research are as follows:

  1. The developed modules achieve the intended computer-aided process design for steel sand casting parts in a three-dimensional environment, greatly enhancing visual clarity and operational efficiency.
  2. The use of ObjectARX with MFC allows a clear class structure and concise code. The performance is satisfactory, and the software responds quickly even when manipulating complex solids.
  3. The integration of an Access database for parameter storage enables accurate data retrieval, simple expansion, and centralized management. Engineers can easily modify parameter tables to reflect local foundry practice.
  4. The software has been tested on representative 3D parts, demonstrating that all four modules operate correctly and produce the expected geometric changes. This confirms its practical value in real production settings.
  5. The object-oriented architecture facilitates future enhancements, such as adding new process parameters or connecting to casting solidification simulation programs.

Future work could involve linking the software with a casting simulation solver to automatically adjust parameters based on predicted defect locations. Another direction is to extend the database to cover other alloys, such as ductile iron, aluminum, and copper-based alloys. Additionally, the software could be adapted to support metal casting and investment casting processes. With these extensions, the system would become a comprehensive concurrent engineering tool for the entire sand casting industry.

References

Throughout this research, I consulted numerous textbooks, research papers, and software manuals. The most relevant works include standard casting process handbooks, papers on computer-aided casting design, and documentation for AutoCAD ObjectARX. Key references are listed in the original thesis, covering topics such as casting solidification, riser design methods, and numerical simulation. I acknowledge all the authors and developers whose work contributed to the foundation of my software.

Scroll to Top