an object-oriented support tool for the design of casting procedures

7

Click here to load reader

Upload: brian-knight

Post on 26-Jun-2016

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: An object-oriented support tool for the design of casting procedures

Pergamon 0952-1976(95)00037-2

Engng Applic. Artif. lntell. Vol. 8, No. 5, pp. 561-567, 1995 Copyright © 1995 Elsevier Science Ltd

Printed in Great Britain. All rights reserved 0952-1976/95 $9.50 + 0.00

Contributed Paper

An Object-oriented Support Tool for the Design of Casting Procedures

BRIAN KNIGHT The University of Greenwich, U.K.

DON COWELL The University of Greenwich, U.K.

KEITH PREDDY The University of Greenwich, U.K.

(Received January 1995; in revised form May 1995)

The design of a casting system for a given shape depends to a great deal upon the skill of the engineer, who must make a number of decisions. Of prime importance in the formation of these decisions is the construction of the so-called modulus model of the shape, which gives a crude approximation to the dynamic cooling and freezing order of parts of the shape. Several computer-based modulus models as support tools for the engineer have been attempted, usually based on the superposition of a regular grid of cells on the shape, and iterative calculation of freezing, cell by cell. In this paper, an alternative approach is described which more closely models the engineer's expertise. There are two main elements to the expertise. First, a casting is systematically broken down into elements with known casting properties, and the suitability for casting based on the modulus model is applied to this assembly of elements. Second, is extensive knowledge of past cases (both sound and otherwise) of castings. There are advantages in an approach that models this engineering expertise, and which allows for a higher degree of interaction with, and early feedback to, the engineer. The system is naturally object-oriented, based on traditional classifications of shape elements which have evolved over many years in casting design. This classification also provides natural keys for a case-based reasoning system. Experience with a prototype system is described, and test results for a limited set of cases are discussed.

Keywords: Metal casting design, expert systems, object-oriented, case-based reasoning.

1. INTRODUCTION

The successful casting of a predesigned shape is vitally dependent upon the skill and experience of the foundry engineer, who performs a task known as methoding the design, in order to determine a number of key elements prior to manufacture. This task is concerned with the design of the casting process, i.e. filling the mould with molten metal, and the subsequent freezing of the metal. The foundry engineer must consider a variety of problems associated with this process, the most import- ant consideration being the shrinkage which occurs as the metal freezes. Since it freezes first at the boundar-

Correspondence should be sent to: Dr B. Knight, School of Computing and Information Technology, The University of Greenwich, Woolwich, London SE18 6PF, U.K.

ies, there is a possibility that isolated pockets of molten liquid will form during freezing. Subsequent shrinkage of these pockets will give rise to porosity and other casting defects. In order to ensure that no such pockets will form at any stage, the engineer can place feeders and chills at strategic points in the mould. Feeders are reservoirs which can supply molten metal to elements of the shape as shrinkage occurs. These must freeze after the fed element and have sufficient feeding capa- city as the casting shrinks. Chills are heat-absorbing blocks embedded in the mould which can force parts of the shape to freeze more quickly. In addition, the design of the running system the orientation of the shape being cast, and the positioning and sizing of the molten metal sumps and conduits for filling the mould has an important effect on the cast, in view of the fact

561

Page 2: An object-oriented support tool for the design of casting procedures

562 BRIAN KNIGHT et al.: DESIGN OF CASTING PROCEDURES

I Customer ~;~-- shape, new

shape

@,

Final design

unacceptable z~ feeders o r i e n t a t i o n @ _ chills

Fig. 1. The methoding process.

new

chi l ls

that freezing begins during metal filling, so that block- ages can occur at any time.

Figure 1 shows the various stages of the (computer assisted) methoding process in diagrammatic form.

As can be seen, the process is an iterative one, in which tentative designs will be evaluated using various software tools. Initially there will usually be a dialogue with the client, where possible re-design of the shape for more efficient casting may be suggested (process 1). The foundryman will then decide on the orientation of the mould during filling, and design the positions and sizes of feeders and chills (process 2). For this task he/ she will rely mostly on experience, together with hand calculations of the modulus of elements of the shape. The modulus of an element is the ratio of its volume to cooling surface area, modified by empirical shape speci- fic correction factors (see Ref. 1), which can give an indication of the time taken for the element to cool. The design is then evaluated against various simulation models (processes 3-6), and modifications are made until the simulations are satisfactory.

Several software tools may be used to assist the methoding process. For the initial stages of methoding these tools need to be fast and easy to use: simple models based on the cooling modulus principle, or fast empirical mould-filling models. Amongst these are: CRUSADER, 2 FEEDERCALC 3 and SOLSTAR, 4 which support the preliminary design stages, and slower, more detailed numerical models such as

MAGMASOFT 5 and SIMULOR, ° which support the simulation stages. CRUSADER and FEEDERCALC give numerical support on such aspects as feeder sizes and feeder-feeder distances, but do not attempt to give experiential advice on such elements as re-design for casting, or mould orientation. SOLSTAR is often used as a fast solidification model, which can check a given design or give information on feeder positioning. More advanced numerical software, using computational fluid dynamics techniques, is currently under development 7 but is expensive in set-up time and in run time.

Foundries represent an important sector of the U.K. manufacturing industry, and there is a large benefit to be obtained by facilitating good methoding practice in terms of the reduction in reject rates, and in terms of the improvement of casting quality. The industrial problem is the provision of a system which a foundry engineer will find useful during the methoding task, and which will lead to improved casting procedures. In 1987 an audit group, commissioned by the Department of Trade and Industry, recommended a U.K. initiative involving companies, research organizations and universities in the field of computer aided design for casting. 8 The bulk of the research which has stemmed from this initiative has been concerned with the deve- lopment of faster and more accurate numerical routines for the simulation of the complex physical processes of flow, freezing and stress involved in cast formation.

Page 3: An object-oriented support tool for the design of casting procedures

B R I A N K N I G H T et al.: DESIGN OF CASTING P R O C E D U R E S 563

These may be used in the later stages of the methoding process, to verify a given method as accurately as possible. Predictions at this stage may require re-entry to earlier stages, to adjust the given method.

There is active interest in the casting industry in the development of expert systems for the design of meth- oding systems. Natarajan et al. 9 describe a system which uses a simple geometrical solidification model to make a preliminary assessment of castability for a limited class of shapes. This is based on the cooling modulus model, but it operates on a rectangular grid of cells, rather than on whole features - - rather like SOLSTAR. This geometrical model is augmented by a small set of rules and meta-rules written in LISP. Sillen 1° describes an expert system that uses rule induc- tion for the prediction of casting defects; this has been successfully used as an adaptive process control system for green sand casting.* Sirilertworakul et al. 11 describe a similar rule-based system using Turbo Prolog, with a knowledge base that facilitates the choice of alloy and casting method, given an element design and specifica- tion. Firth and Nealon 12 report on an expert process- planning system developed in Prolog, for the casting of acrylic monomers including embedded objects such as coins.

Other AI research has focused on geometrical feature extraction prior to such assessments. Luby et al.13 approach this problem by defining a shape gram- mar, allowing the creation of designs by the use of a vocabulary of familiar geometric features. The design is then evaluated for manufacturability by the construc- tion of the modulus model from the features. Woodward and Corbett 14 have taken a similar approach, concentrating on design rules for aluminium alloy die casting. Chung et al. '5 describe two appli- cations for feature-based modelling combined with geo- metric reasoning, one application area being a 'critic' for predicting potential defects in gating designs for investment casting (the 'lost wax' process)t which sug- gests changes to the casting design engineer. Feature description is becoming recognized as a strong candi- date for a single data representation for design, design analysis and manufacturing planning in the general context of total computer integrated manufacturing - - see the survey article by Case and Gao.16

The central idea of the work described in this paper is that the expertise of the foundry engineer is based upon a special decomposition of the shape to be cast into elements. Whereas other approaches to design support tools, e.g. Ref. 9, have allowed an arbitrary decompo-

* In green sand casting, a moulding sand is used that has been tempered with water and is used for casting when still in a damp condition

t Investment casting is the process in which a mould is produced by surrounding an expendable pattern with a refractory slurry that sets at room temperature. After this the wax or plastic pattern is removed through the use of heat prior to filling the mould with hot metal . When a wax mould is used, the process is called the lost wax process.

sition, followed by a numerical estimation of the ele- ment moduli, the foundry engineer uses familiar ele- ments with well-defined moduli. Traditionally, method- ing manuals such as that in Ref. 1 classify elements under this scheme, and provide empirical tables and modulus calculations for each classification. Hence, on the grounds of user acceptance alone, there are advan- tages in the construction of a modulus model which emulates the expert process. However, there are other advantages to be gained from this approach, in view of the fact that much other experiential knowledge of castability has grown up around such decompositions. For example, the concept of effective modulus , which differs from the vol/cooling area by the inclusion of corrections based on pragmatic considerations such as radiation from nearby surfaces, can be keyed to the element classes. Also, knowledge of re-design is often keyed to this element classification. For example, experience shows that Y junctions often give rise to problems which may be avoided by re-design as a T together with a bend.

This paper describes the principles on which this decomposition into elements is based, and its realisa- tion as a prototype object-oriented support system at the University of Greenwich. The uses of the system as a design support system are described, as a modulus model, a design advice system, and a case-based rea- soning tool.

2. PRINCIPLES OF SHAPE DECOMPOSITION

Feature-based computer-aided design relies upon the existence of a library of elements which may be assem- bled and merged together to form a desired total shape. The method engineer must then consider the shape, and decide on its potential castability. The most important technique used for determining castability is the calculation of the cooling modulus of the various elements of the shape, so that their freezing order may be determined. Ideally, each element selected by the user during feature-based design of a shape should trigger an appropriate modulus calculation so that the modulus of each part is determined as the user builds the system. A system like this will give the user imme- diate feedback on the castability of the new shape.

However, the library of elements for such a system cannot consist of arbitrary geometrical shapes, for a number of reasons.

First, for an arbitrary element the modulus calcula- tion depends upon the type, dimensions and orien- tation of other shapes jointed to it. This is because there are significant second-order effects due to heat radiation from nearby elements. For example, consider two plates joined in a T, as in Fig. 2.

There is in fact slower cooling at the joint due to the radiation shown. The joint will be a hot spot, which will freeze in isolation in the casting process. This is essen- tial information to the methoding engineer, who will

Page 4: An object-oriented support tool for the design of casting procedures

564 BRIAN KNIGHT et al. : DESIGN OF CASTING PROCEDURES

take suitable remedial action - - placing a chill or feeding reservoir there, or possibly modifying the shape of the joint. Simply calculating the modulus of each plate separately gives no indication of this important effect.

In fact, a skilled methoding engineer will not decom- pose the T shape in this way. Rather, he will adopt a breakdown as shown in Fig. 3. The essential difference here is that there are no significant second-order effects to be taken into account. The modulus of the four separate parts may be calculated from simple standard rules. Of course, these rules must take into account that each element is joined to others at certain places, but the essential thing is that it does not matter what other complementary shapes it is joined to, merely the fact that it is joined at various constrained places. Hence the engineer is able to calculate the modulus of each element according to his knowledge of the element. This is traditionally done by a diverse set of rules-of- thumb, tables, graphs and formulae (see Ref. 1).

A second constraint on the library of elements is determined by the engineer's knowledge of the casting process. For example, the T joint shown in Fig. 3 is not physically achievable, nor indeed desirable. The mould itself cannot achieve the sharp join between the plates which is shown in the central element, and if it could be achieved it would form a point of weakness in the casting. The engineer would naturally think in terms of adding fillets to smooth the discontinuity, and avoid tearing. This is best captured by removing such 'bad' elements from the database. Instead, experience shows that the central element shown in Fig. 4, which includes fillets, is more practical.

The basic knowledge for such a CAD system is readily available in the large quantity of published material on element design, representing the collected experience of casting engineers over many years; see for example Ref. 17. Such knowledge is not made available in current CAD systems; the novelty of the approach described here is that it incorporates this expertise at the basic element level; in effect a library of elements, is proposed which precludes the possibility of the design of an inherently uncastable shape.

Fig. 3. T junction with four elements

3. THE PROTOTYPE SYSTEM

A prototype system based on a PC-based CAD package has been constructed according to the princi- ples laid out above. The AI techniques used to repre- sent the design expertise are frames for the represen- tation of elements and their modulus calculations, and simple pattern matching for case retrieval. Frames have slots for the geometry, orientation and status of the element, plus after-change methods for calculation and display of the modulus. As the casting is assembled incrementally, the moduli of its constituent elements are re-calculated as needed, and the results are dis- played graphically, giving instant feedback to the engi- neer. Pattern matching is based upon the conjunction of pairs of elements in this prototype. Although prob- lems associated with more complex connectivity do occur, these are relatively uncommon in practice.

Figure 5 shows the view presented to the designer of a section of a solid shape - - in this case a flanged housing cover - - to be cast. Shapes are constructed largely from a library of basic elements. At any stage in the design, modulus calculations can be triggered and the freezing order of the elements displayed using a colour coding. In Fig. 5 colours are represented by grey scales; the lighter the shade the smaller the modulus. For this example, it can be seen that the order of freezing is: A, B, C, D. In this way the engineer can obtain rapid feedback on potential problem areas that

Fig. 2. A T junction formed from two plates. Fig. 4. Filleted T junction.

Page 5: An object-oriented support tool for the design of casting procedures

BRIAN KNIGHT et al. : DESIGN OF CASTING PROCEDURES 565

A D

Shade Modulus

0.68

1.0

1.204

l 1.286

Fig. 5. Display of modulus model for a flanged housing cover (greyscale shadings refer to the cross-sectional areas only).

can be tackled either by redefining the basic geometry, or by a suitable orientation of the mould and its gating and running system, and the location of suitable feeders and/or chills.

For this prototype system, a limited library of basic elements - - bars (or plates), L junctions, T junctions and X junctions - - has been built. In principle, other, less-common elements could be created (and saved) by the engineer; for these the geometric modulus could be used. Two-dimensional shapes may be constructed from these elements, together with corresponding three-dimensional extrusions and shapes with rotatio- nal symmetry, such as cylinders, wheels, flanges, etc. The basic elements have a uniform representation, namely.

Element (Identifier, Shape ld, Type, Orientation, Geometry, Connections, Status)

where

Identifier is a symbol uniquely identifying a given element. Shape id is a symbol uniquely identifying the whole shape Type is one of: Bar, Ljunc, Tjunc, Xjunc. Orientation is a left /r ight/up/down conven- tion needed for L and T junctions. Geometry is a list of parameters specifying the element geometry. As examples: for a bar, [Thickness, Length]; for an L or T junction: [Base thickness, Arm thickness, Fillet radius]. Connections is an ordered list of objects attached at specified connection points (e.g. the two ends of a bar, the three ends of a T, etc.). These lists completely specify the element network. Status is a list of symbolic problem attributes for an object, e.g. fillet too small, fillet too large, thin arm, thin base, feeding distance exceeded, very short bar. In fact,

these attributes are redundant in the sense that they may be calculated by object methods from other attributes.

In addition, there is a method for the modulus calculation for each element type, taking into account the geometry of the element and its neighbouring components.

The prototype has been evaluated as a support tool providing three main functions:

(1) As a modulus tool, which shows graphically a traditional decomposition of a shape, together with the freezing order of the elements. For this evaluation, a number of standard case studies from the literature ~" ~8 were used to test the system.

An example of the output is shown in Fig. 5. The system provides a coloured display of the elements, with a range of shades from red to blue representing high to low modulus. In Fig. 5 the modulus is shown as grey scales, dark representing high modulus. From this display, the casting designer is able to identify the direction of solidification of the housing cover, locate 'hot spots' - - zones of delayed freezing - - and make decisions on moulding direction, the placement of feed- ing reservoirs and the use of metal and mouldable chills for artificial end-zone generation and possible section modulus reduction.

(2) As an advice system which provides advice on possible casting problems, and re-design advice. In order to evaluate this function, a number of examples were constructed which were known to give poor cast- ings without modifications. An example is shown in Fig. 6. This shows a wheel with a hub and rim con-

Page 6: An object-oriented support tool for the design of casting procedures

566 BRIAN K N I G H T et al. : DESIGN OF CASTING P R O C E D U R E S

Shade Modulus

~ " " = " 1

NNN

0.283

0.340

0.375

0.651

Fig. 6. Modulus model for a wheel of seven elements.

nected by a thin plate. However, experience shows that the thin plate cannot be fed satisfactorily from feeders at the rim and hub. Freezing will always occur at random over the thin plate, leading to porosity prob- lems, and the casting will be faulty.

Advice for this example would be:

• Consider re-design by thickening the plate or tapering from hub to rim. (Often the client has no objection to modifications which improve castabi- iity.)

• Place chills in the centre of the plate to reduce the effective feeding distance from hub to rim.

• Consult Case Base (see below) to examine other solutions.

This advice is triggered by patterns in the element objects under use. In this example, the key patterns are:*

(a) a T junction with one arm much thinner than the other.

(b) a bar (plate) has a linear dimension greater than its so-called "'feeding distance" (the distance over which it can be fed from either end)

These patterns are represented in the system as statuses for the element objects. For example (a) and (b) are represented by:

* The patterns are expressed in terms of 2D equivalents of the 3D objects with rotational symmetry. In fact, the results apply equally to the 2D shape or the 3D shape generated by rotation.

Element(C1,S,T-Junction,R [Cn,Cn + l ,Cn + 2], _,[thin])

Eiement(C2,S,Bar,_,[Cm,Cm + 1], _,[feeding_distanceexceeded]).

The statuses are generated by element object methods. The rule system which triggers advice operated on the element statuses and element connectivity, e.g.

Element(C1 ,_,T-Junction,_,[Cn,Cn + 1 ,C2], [thin]),

Element(C2,_,Bar, ,[Cl ,Cm + 1],[feeding_ dis tanceexceeded]) ~Advice(C2)

(3) As a case-based reasoning system, which retrieves previously stored cases which might be appropriate to the current design. The important factors for the design engineer are related to:

Overall shape: The engineer would first need to know whether a shape like this has been cast before. The most important attribute for this kind of retrieval is the general classification of the whole shape according to existing practice, e.g. wheel/car wheel/racing car wheel. Of lesser importance is: material, size, quality.

Element problems: The engineer might want to know of all previous castings where a given problem has been solved. Problems are connected to element states and connectivity, as in the above example of the plate exceeding its feeding distance connected to a thin arm of a junction.

The prototype approach to case-based reasoning is via a database of cases gleaned from the standard

Page 7: An object-oriented support tool for the design of casting procedures

BRIAN KNIGHT et al. : DESIGN OF CASTING PROCEDURES 567

literature 1 and from expert knowledge, which are con- structed from the basic element library. The engineer is allowed to browse through the database, using queries relating to both whole shape and to problems with individual elements. For example, the engineer can specify: "Show me all racing car wheels with the thin plate problem" by means of the database query:

Shape (?s, racing, car wheel), Element(Cl,s,T-Junction . . . . . [Cn,Cn + 1,C2],

[thin_arm]), Element(C2,s,Bar . . . . . [C1,CM + 1],

[feeding_distance_exceeded]).

4. CONCLUSIONS

The design support tool described in this paper attempts to encapsulate experiential knowledge of a very diverse nature. An experienced engineer is able to call on empirical knowledge of elements, and of tech- niques to evaluate cooling properties; on previous experience of the castability of whole shapes and of element configurations within whole shapes. In addi- tion, the engineer can analyse a 3D shape into consti- tuent elements in a significant manner.

The paper proposes an object-oriented design by feature approach which is capable of representing this knowledge. A prototype has been constructed and used to test out the three main functions of the system: a graphic modulus model tool, an advice-giving expert system, and a database used for case-based reasoning. The prototype has proved adequate functionally with respect to a limited subset of shapes.

Future work is planned to enlarge the library of element types, automatically identify directional solidi- fication, advise on mould orientation and the place- ment of feeders and chills and to extend the capability

of the system to allow for plastic deformation of ele- ments.

REFERENCES

1. Wlodawer R. Directional Solidification of Steel Castings. Pergamon, Oxford (1967),

2. CRUSADER software. SCRATA, Sheffield, U.K. 3. FEEDERCALC. FOSECO Ltd, Tamworth, U.K. 4. SOLSTAR. FOSECO Ltd, Tamworth, U.K. 5. MAGMA Giessereitechnologie GmbH, Werner-Heisenberg-Str.

14, D-5110 Alsdorf, Germany. 6. SIMULOR. Aluminium Pechiney, Aluval, BP27 38340

Voreppe, France. 7. Cross M. Development of novel computational techniques for

the nest generation of software tools for casting simulation. In Modelling of Casting, Welding and Advanced Solidification Processes IV (Edited by Piwonka, Voller and Katgerman M.), pp. 115-123. The Minerals, Metals and Materials Society (1993).

8. Cross M. Solidification -- An Overview. IBF Conference on Light Alloy Casting (1989).

9. Natarajan R., Chu C.M. and Kashyap R.L. An integrated environment for intelligent design of castings: In Expert Systems Applications in Materials Processing and Manufacturing (Edited by Demeri M.Y. The Minerals, Metals and Materials Society (1989).

10. Sillen R. Using Artificial Intelligence in the Foundry. Modern Casting, December (1991).

11. Sirilertworakul N., Webster P.D. and Dean T.A. A Knowledge Base for Alloy and Process Selection for Casting. Int. J. Mach. Tools Manufact. 33, pp. 401-416 (1993).

12. Firth P. and Nealon R. Process Planning: An Expert Systems Perspective. In Expert Systems -- Theory & Applications, IASTED International Conference, Geneva, Switzerland, pp. 170-174 0987).

13. Luby S. C., Dixon J.R. and Simmons M.M. Designing with features: creating and using a features database for evaluation of manufacturability for casting. ASME Computer Rev. 285-292 (1988).

14. Woodward J.A.J. and Corbett J. An expert system to assist the design for manufacture of die cast components. Engineering Designer (1990).

15. Chung J.C.H., Patel D.R., Cook R.K. and Simmons M.K. Feature based modeling for mechanical design. Computers Graphics 14, 189-199 (1990).

16. Case K. and Gao J. Feature technology: an overview. Int. J. Computer Integrated Manufacturing 6, 2-12 (1993)

17. The Casting Design Handbook. American Society for Metals (1962).

18. MoD. Design and Manufacture of Nickel-Aluminium-Bronze Castings, 2nd edn. MoD Ship Department (1980).