Вы находитесь на странице: 1из 6

Truchas – a multi-physics tool for casting

simulation
D. A. Korzekwa
The Truchas code was developed at Los Alamos National Laboratory under the Advanced
Simulation and Computing Program. This open source multi-physics simulation software is
designed to run in a scalable parallel computing environment. The capabilities of the code and
numerical implementation are briefly described. The advantages and limitations of large three
dimensional simulations will be discussed, and two example simulations are shown that
demonstrate the utility of the fluid flow, heat transfer, phase change and solid mechanics
capabilities. Validation of a code such as Truchas is a difficult task because of the complexity of
the coupling between different physical phenomena being modelled and the poor understanding
of phenomena such as heat transfer across interfaces. The challenges associated with verification
and validation of complex simulation tools and integration into the design process are also
discussed.
Keywords: Casting simulation, Parallel computing, Solidification processes

The truchas code Truchas has support for the Exodus6 file format for
the mesh description and collections of mesh faces (side
History and overview sets) used for boundary conditions. Boundary condi-
Truchas1 is a multi-physics computer code that has been tions are not defined in the mesh file. A Python post-
produced as part of a program to develop software to processing package is distributed with Truchas that
take advantage of massive parallel computing clusters. supports several file formats for visualisation software.
As a consequence, much of the development has
involved the use or implementation of relatively new Physics capabilities
numerical methods and communication protocols. The All of the physics capabilities can use the same
early work on the code focussed on new fluid flow unstructured hexahedral mesh for discretisation. There
algorithms for multiphase flow with free surfaces.2 are currently two diffusion algorithms available for heat
Coupling the fluid flow with heat transfer and phase conduction. The original method is based on a finite
change allowed Truchas users to address applications volume discretisation, but this method is being replaced
such as casting. Because of the emphasis on parallel by a mimetic finite difference method that is well suited
computing, iterative solvers are used in Truchas. The to elliptic problems on general polygonal meshes.7 The
communication between processors uses the Message new diffusion solver will allow diffusion of multiple
Passing Interface (MPI). Various iterative solvers have chemical species concurrently with enthalpy conduction.
been implemented and evaluated over the course of the The enthalpy solution couples conduction, advection
project, including Krylov subspace methods for linear based on the fluid velocity field and phase change with
systems,3 Jacobian-free Newton–Krylov,4 and acceler- latent heat terms. Volumetric source terms can be
ated inexact Newton.5 specified for welding or heating element specification
Recent development has concentrated on capabilities as well as joule heating terms from the induction heating
that are most useful for vacuum induction casting of model. The phase change models can be used with or
uranium and plutonium using graphite moulds. The without phase diagram information. Simple binary
current version of Truchas has capabilities for fluid flow, alloys are modelled using the treatment by Clyne and
enthalpy conduction and advection, phase change, Kurtz.8 An implementation of the Rappaz–Thévoz9
thermal radiation with view factors, small strain model is available for nucleation and grain growth.
elastic-viscoplastic solid mechanics with small displace- The fluid flow algorithm can model incompressible
ment contact, and electromagnetic joule heating of flow of multiple materials and with a Boussinesq
cylindrical domains. The choice of boundary conditions buoyancy treatment. The volume tracking algorithm
and material models include common simplifications used a piecewise linear interface reconstruction algo-
used for material processing. rithm.2 Models for viscous stress, porous drag, algebraic
turbulence and surface tension are available, but not all
Los Alamos National Laboratory, Box 1663, Mail Stop G770, Los Alamos, features are robust on unstructured meshes or when
NM 87544, USA, email dak@lanl.gov coupled with other physics.

ß 2009 W. S. Maney & Son Ltd.


Received 17 June 2008; accepted 12 September 2008
DOI 10.1179/136404609X367641 International Journal of Cast Metals Research 2009 VOL 22 NO 1–4 187
Korzekwa Truchas – a multi-physics tool for casting simulation

1 a Model for fuel rod casting - 120u segment showing half of two rods from a mould designed to cast 3 rods, and b a
60u segment of a filling simulation

Radiative heat transfer can be modelled using a view Example applications of truchas
factor representation based on the mesh cell faces that
are on material boundaries. This allows the geometric Mould filling – casting of metallic nuclear fuel
complexity of the furnace environment to be modelled, The first example is a mould filling simulation for a
which is very important in a vacuum environment with casting process to produce uranium alloy rods for use as
conductive mould materials such as graphite. The nuclear fuel. The graphite mould and crucible are
Chaparral code10 is used to calculate the view factor induction heated to melt the charge and preheat the
matrix and the heat fluxes are calculated at each time mould. Figure 1 shows the geometry of the mould and
step by Truchas. plot from a 60u filling model using Truchas. The mould
The induction heating model applies electromagnetic cavity is evacuated, and the atmosphere in the furnace is
boundary conditions for circular coils on a cylindrical argon gas at a gauge pressure of 0?6 kPa, resulting in a
tetrahedral mesh containing the mould and furnace pressure difference between the top of the charge in the
components that are heated by the coil. Currently there crucible and the evacuated mould of <1?6 kPa.
are limitations to the geometries that can be specified for The filling of the mould was modelled using a mesh
this approximation. The output of the electromagnetic representing a 60u segment of the mould and crucible.
model is a joule power field that is mapped onto the heat The mesh has 569344 cells, and the filling simulation
transfer mesh. runs in approximately 24 hours on 128 AMD Opteron
The solid mechanics module uses a hybrid finite processors. Properties for uranium–10% zirconium alloy
element finite volume algorithm to solve the thermo- were used for the metal. The problem was started with
elastic equations for equilibrium with optional plastic the stopper rod in the crucible in the retracted position
strain evolution using simple viscoplastic material and 1?6 kPa pressure on the top surface of the crucible.
models. The formulation is currently limited to small The argon gas is modelled as an incompressible fluid
strains and rotations. A contact algorithm allows small with the same density and heat capacity as argon at
normal and tangential displacements between solid standard temperature and pressure. This simulation has
bodies. In many cases this formulation is adequate for fluid flow, heat transfer and phase change active, and the
simulating the distortion and gap formation of the heat transfer coefficient between the metal and mould is
mould and cast part during cooling in the solid state. set to a value (1000 W m21 K21) that is appropriate
Typical Dirichlet and Neumann boundary conditions when there is a ceramic coating on the graphite.
are available for all of the physics packages, such as The filling results for the original mould design
constant temperature or fluxes specified on geometric indicated that the molten metal circulates and stays in
surfaces or lists of faces. Thermal radiation can be the inlet area for a relatively long time before substantial
specified using view factors or simple radiation to a filling of the rod cavity occurs. Because of this, the
constant temperature. Heat transfer coefficients can be crucible empties and the argon gas enters the rod
specified at internal mesh boundaries. The solid portion of the mould, further delaying the filling and
mechanics boundary conditions can be specified in requiring the gas to float out of the rod mould to
global coordinates or local coordinates normal to the complete the filling. Although very little solidification is
cell face. observed during filling for the cases where a mould
Most material properties can be temperature depen- coating is assumed, this flow pattern is not optimum.
dent by specifying a polynomial form. The plasticity Even with a mould coating, this casting process design
model can be easily modified to use any relationship will result in fairly rapid solidification of the rod, with
where strain rate is a function of stress and temperature. the mould material providing enough heat capacity to
Currently the user can specify a simple power law or a solidify the rod without any heat transfer external to the
simplified version of the mechanical threshold stress mould. It is therefore highly desirable to have rapid
model.11 Since the strains must be small, there is no complete filling of the mould. The Truchas model was
work hardening. modified to reduce the volume of the mould cavity

188 International Journal of Cast Metals Research 2009 VOL 22 NO 1–4


Korzekwa Truchas – a multi-physics tool for casting simulation

2 Filling model comparing the original mould design to the modified mould with reduced volume

above the rod to try to improve the filling behavior. phase, and that the fracture most likely occurs after the
Figure 2 shows a comparison of the filling behavior of casting has cooled to a safe temperature. Figure 4 shows
the original mould and the design with a reduced inlet results at a time where the transformation from e to d
volume. The results indicate that reducing the volume is partially complete. The phase change strain plot
will substantially improve the mould design. indicated which portions of the rods have transformed.
The e to d phase change generally resulted in the rod
Solid state phase change and residual stress expanding against the mould, but the e phase has very
The second example simulation is a solid state cooling low strength at that temperature, so the stresses are quite
simulation for a casting process to produce plutonium small at this time.
metal rods approximately 254 mm long by 17 mm
diameter. The mould is shown in Figure 3. Also shown
in Figure 3 is a plot illustrating the relatively large
Discussion - verification and validation
volume changes associated with the four allotropic The degree to which simulations correspond to the
phase changes that unalloyed plutonium exhibits during physical reality of the processes that are being
cooling from the melting point to room temperature. modelled can be difficult to assess. In order for
These large changes in volume produce substantial simulations to be credible, some degree of verification
distortion and stress in the metal and mould, and the and validation must be performed. The term verifica-
purpose of the simulation was to estimate their tion usually refers to the process of verifying that the
magnitude. It was observed that the graphite mould calculation solves the equations used to describe the
always fractured at some point during the process. physics of the problem accurately. Truchas, as for
While this is not surprising, it was hoped that the most simulation packages, includes a suite of test
simulations would confirm that the fracture occurred problems that exercise many modules of the code and
late enough in the process to avoid any quality or safety run simple simulations that have analytical solutions.
issues. However, it is difficult to cover all capabilities in this
In addition to the thermal and elastic properties of the manner, and many coupled physics combinations are
graphite and plutonium phases, a model for the hard to test with a known solution.
viscoplastic behaviour of the Pu metal was required. In To gain confidence in geometrically complex coupled
some cases these properties had to be estimated. The simulations, it is necessary to collect data from experi-
model predicted that the maximum stress in the mould ments or production processes and compare them to the
occurred just before the rods transformed from the d to c simulation results. Various studies of this type have been

3 a Volume changes associated with phase changes in Pu; b Mesh for solid state cooling simulation of Pu rod casting

International Journal of Cast Metals Research 2009 VOL 22 NO 1–4 189


Korzekwa Truchas – a multi-physics tool for casting simulation

a temperature; b phase change strain or linear dilatation; c gap locations between the metal and mould; d [x,x] compo-
nent of the elastic stress
4 Results for solid state cooling simulation of Pu rod casting

conducted for the Truchas code,12–14 but there are many field of coupled physics computation on parallel
aspects of these simulations that are difficult to validate. computing platforms. Quantitative validation of large
Realistically complex models of material processes three dimensional calculations is challenging, and is
include boundary conditions and material properties often limited by assumptions concerning boundary
that are approximations based on models that do not conditions and material properties. The examples
incorporate enough physics to be predictive. Examples presented in this article show applications of Truchas
are heat transfer coefficients, friction and constitutive to problems that are difficult to validate. However, the
models for metal plasticity. Often the simulation results simulations provided valuable insight to the processes
depend very strongly on the parameters that are and tangible benefits to the projects that use these
associated with these models. casting processes.
Experiments designed specifically to help validate
Truchas have used several different techniques: Acknowledgements
N Thermocouples in the mould and/or metal
The Truchas code represents the work of many people at
N Video recording of flow of water or gallium in
Los Alamos National Laboratory, funded primarily by
transparent moulds
the Advanced Simulation and Computing program
N Load cells recording the weight of the liquid entering
under the United States Department of Energy.
the mould
Los Alamos National Laboratory, an affirmative
N Gap sensors between the mould and metal to
action/equal opportunity employer, is operated by Los
determine when and where gaps are present
Alamos National Security, LLC, for the National
Truchas also has the capability to calculate the
Nuclear Security Administration of the U.S.
sensitivity of the results to some of the thermal
Department of Energy under contract DE-AC52-
boundary conditions and material properties. These
06NA25396.
sensitivities can help assess the reliability of the
simulation results.
The simulations presented in this paper are examples References
of problems that are very difficult to validate. The flow 1. The Telluride Project, Los Alamos National Laboratory, http://
behaviour in the rod mould is not directly observable, telluride.lanl.gov
and the stresses and distortions are not directly 2. W. J. Rider and D. B. Kothe: Journal of Computational Physics,
measurable. Nevertheless, the simulation results are 1998, 141, (2), 112–152.
3. Y. Saad: ‘Iterative Methods for Sparse Linear Systems’, 1st
consistent with observations for these processes, and
edition,1996, PWS Publishing Company.
previous validation experiments have provided some 4. D. A. Knoll, W. B. Vanderheyden, V. A. Mousseau and D. B.
confidence in the general accuracy of the code and Kothe: SIAM Journal on Scientific Computing, 2001, 23(2), 381–97
choice of boundary conditions. Thus an experienced 5. D. R. Fokkema, G. L. G. Sleijpen, and H. A. Van Der Vorst:
user of Truchas or other simulation tool can gain insight SIAM Journal on Scientific Computing, 1998, 19, 657–674.
6. L. A. Schoof, V. R. Yarberry: ‘EXODUS II: A Finite Element
into the relative importance of various parameters and Data Model’, Computational Mechanics and Visualization
their quantitative effects for complex casting processes. Department, Sandia National Laboratories, Albuquerque, NM
87185, available at http://endo.sandia.gov/SEACAS/Documentation/
exodusII.pdf
Summary 7. M. Shashkov, J. Hyman, J. Morel and S. Steinberg: Computational
Geosciences, 2002, 6, 333–352.
Truchas has proved to be a useful simulation tool for 8. T. W. Clyne and W. Kurz: Metallurgical Transactions A, 1981, 12,
vacuum induction casting at Los Alamos, and the 965–971.
Telluride project has made other contributions to the 9. M. Rappaz and P. Thevoz: Acta Metallurgica, 1987, 35, 2929–2933.

190 International Journal of Cast Metals Research 2009 VOL 22 NO 1–4


Korzekwa Truchas – a multi-physics tool for casting simulation

10. CHAPARRAL Ver. 2.x , Sandia National Laboratories, http:// 13. K. Lam, T. Tippetts and D. Allen: ‘Engineering verification
ipal.sandia.gov/ip_details.php?ip51862 and validation assessment of Truchas for induction heating’, 2007,
11. P. S. Follansbee and U. F. Kocks: Acta Metallurgica, 1988, 36, 81–93. Los Alamos National Laboratory publication LA-UR-07-
12. S. Cummins, K. Lam and B. Smith: ‘An overview of a 3 d 7131.
plutonium casting simulation from mold preheat to cooldown’, 14. S. Cummins, D. A. Korzekwa and E. Barker: ‘3D Uranium Casting
Annals of the Assembly for International Heat Transfer Simulation From Preheat to Cooldown’, 2008, submitted to
Conference 13, 2006 Metallurgical and Materials Transactions B.

International Journal of Cast Metals Research 2009 VOL 22 NO 1–4 191

Вам также может понравиться