Casting Simulation Software Open Source

Posted on -
Casting Simulation Software Open Source 3,8/5 1683 votes

AutoCAST is the world's most intuitive, incredibly fast, and truly integrated casting software for methods design, simulation and optimisation. Over 50 customers have preferred and adopted the software to:.

  1. Casting Process Simulation
  2. Casting Simulation
  3. Simulation Software Open Source

Improve the quality and yield of existing castings. Develop new castings quickly, without foundry trials.

Reduce the total cost in collaboration with customers AutoCAST-X1 is fast and easy to use, even if you are new to computers. It is also the most economical casting methods software available today, and is supported by a network of highly qualified and helpful consultants. Its reliability is proven by hundreds of in all major metal families and processes. Download a to know more. Contact our to arrange a live simulation of your casting and see how it can benefit your organization.

At ProSIM, we carry out Conceptual Design Basic Design Engineering design. We take up performance requirements and specifications from our customers and develop the.

Technical institutes can plan a virtual casting lab session.

  1. SOLIDCast Casting Simulation software is the world’s most popular PC-based solidification modeling system and cast design software used in the casting industry.
  2. Use Finite Solutions casting simulation software, a world leader in metal casting software. Simulations: solidification, casting, mold filling, and more.

Casting Process Simulation

. 11k Downloads. Abstract Thermodynamic data are essential for the understanding, developing, and processing of materials. The CALPHAD (Calculation of Phase Diagrams) technique has made it possible to calculate properties of multicomponent systems using databases of thermodynamic descriptions with models that were assessed from experimental data.

A large variety of data, such as phase diagram and solubility data, including consistent thermodynamic values of chemical potentials, enthalpies, entropies, thermal expansions, heats of transformations, and heat capacities, can be obtained from these databases. CALPHAD calculations can be carried out as stand-alone calculations or can be carried out coupled with simulation codes using the result from these calculations as input.

A number of CALPHAD software are available for the calculation of properties of multicomponent systems, and the majority are commercial products. The OpenCalphad (OC) software, discussed here, has a simple programming interface to facilitate such integration in application software.

This is important for coupling validated thermodynamic as well as kinetic data in such simulations for obtaining realistic results. At present, no other high quality open source software is available for calculations of multicomponent systems using CALPHAD-type models, and it is the goal of the OC source code to fill this gap. The OC software is distributed under a GNU license. The availability of the source code can greatly benefit scientists in academia as well as in industry in the development of new models and assessment of model parameters from both experimental data and data from first principles calculations. Today’s technology relies heavily on materials with complex compositions that often consist of several phases.

Proper processing is required to achieve a well-designed microstructure and products with the desired properties. The introduction of new materials, or even minor changes in composition of a known material, often requires a long time for processing adjustments, and development of an entirely new material is even more challenging. The goal of the Materials Genome Initiative (MGI) , announced in 2011, is to enable the development and deployment of new materials in ‘half the time and half the cost’. Computational methods, coupled with traditional experimental methods, are essential for shortening the time-to-market of new products. Several theoretical methods, ranging from atomistic quantum-mechanics approaches to meso- and macro-scale models, are used together in what is now known as Integrated Computational Materials Engineering (ICME). Computational thermodynamics has been identified as an essential ingredient in ICME and MGI since it can provide input parameters to meso-scale methods such as phase field.

Integrating thermodynamic calculations in a simulation of a manufacturing process gives information on the local state of the system, including heat evolution, volume changes, and chemical potentials, that may govern a diffusion process or the movement of a solid/liquid interface. In theory, it is possible to learn from a simulation how to control the external variables to obtain a microstructure with the desired properties of the material. Today, much of this is still done by an expensive trial and error method, relying on the skills and experience of the personnel in charge of the processes. The CALPHAD (Calculation of Phase Diagrams) method using thermodynamic and other physical property databases is currently the only method available for efficient calculation of the properties of multicomponent, multiphase systems with the accuracy that is required for commercial applications. It has been long recognized that coupling CALPHAD thermodynamics with other physical models for kinetic simulations is useful for better understanding and improvement of many materials processes. As a result, the ability to couple a thermodynamic code with application software is an essential requirement for the realistic modeling of meso-scale simulations within the ICME framework.

For example, Olson demonstrated the benefits of this approach for the development of new steels. In this article, we review the current use of the CALPHAD software, the benefits from the availability of an open source software, and the requirements for use within the ICME framework.

We further describe in detail the data structure and formalisms that are used in the OpenCalphad (OC) open source software and comment on databases. We conclude with a summary of the current state of OC and future needs. The CALPHAD method uses mathematical models to describe the properties of a multicomponent system as a function of temperature, composition, and, if needed, pressure. It was originally developed for describing the thermodynamics of a system for the calculation of phase equilibria but has been extended to calculations of all kinds of equilibria and other thermochemical properties. Experimental data, as well as data from atomistic methods , are used for determining the model parameters. The strength of the CALPHAD method is that it provides a consistent and transparent functional description of the properties of the unary, binary, and ternary subsystems that can be combined for the calculation of a multicomponent system. As such, software and databases for CALPHAD calculations have long been utilized by major materials producers for research and development.

Current use of the CALPHAD method The CALPHAD method was originally developed for the calculation of phase equilibria. As the number of available thermodynamic descriptions for unary, binary, and ternary systems grew, these descriptions were combined into databases for multicomponent systems that were suitable for the calculation of commercial alloys. Initially, CALPHAD calculations were used to determine whether a candidate alloy composition would produce the desired phases and avoid unwanted phases at the temperatures of interest and to select a temperature regime for processing. The combination of results from CALPHAD calculations with models for other important alloy characteristics, such as creep resistance, castability, and cost, allowed computational testing of thousands of candidate alloy compositions and the selection of a few promising candidate alloys for experimental evaluation. For finding new candidate alloy compositions, the CALPHAD calculations can be implemented in systematic searches using, for example, a genetic algorithm or mesh-adaptive direct search algorithm. The remaining data to fulfill the design criteria can be obtained from artificial neural networks or Gaussian processes. The materials simulation tool JMatPro uses the results from a CALPHAD calculation with property models to predict a large number of properties, including mechanical properties and corrosion behavior.

An important aspect of the development of a new material is finding the proper processing conditions to obtain the desired properties. The reliability of the results obtained from process simulation tools can be greatly improved if these simulations are coupled with thermodynamic calculations, especially if quantities, such as heat evolution or phase compositions and phase distributions of a new material, are unlikely to be known from experiments. Efficient coupling of the CALPHAD calculations with other software makes a suitable programming interface essential. Several commercial CALPHAD software programs with interactive user interfaces, such as CaTCalc , FactSage , MatCalc , MTDATA , Pandat , and Thermo-Calc , are available for the thermodynamic calculations of alloy systems.

Some of these programs have already been coupled by their developers with diffusion and precipitation simulation software , , and most of these programs have at least one kind of software interface for coupling with application software. The idea of linking different length scales through coupling materials science simulation tools is not new ,. CALPHAD calculations have been successfully integrated with phase field simulations , fluid flow simulations , and casting simulations. Although thermodynamic calculations have been successfully coupled with phase field simulations producing realistic microstructures , analyses of the mechanical response of such simulated microstructures are rare at best.

It is quite possible that the up-front investment of having to purchase commercial software licenses may deter many in academia and small software companies from exploring the feasibility of such coupling. Benefits from open source code Commercial casting software today is coupled with commercial CALPHAD software using a programming interface.

Although this path was first paved by coupling with an older open source code , there are many more areas where the software used for materials development and manufacturing would benefit from coupling with thermodynamic calculations. The same open source code was used in the initial JMatPro software. The benefits of open source codes are well documented ,. Licenses for commercial thermodynamic software are expensive and may not be available for the required platform. Open source software overcomes these problems and enables researchers and software developers to explore the benefits from coupling with thermodynamics at minimal cost. The approaches used in free software for the calculation of geochemical systems, GEMS and MELTS , are not well suited for the calculation of metallic systems. Other free software, such as Gibbs or AMPL-based Gibbs energy minimization , are either limited to a simple regular solution-type model or have specialized in the mapping of phase diagrams.

Casting

Although well suited for the calculation of alloy systems, the open source code used by Banerjee et al. lacks the modularity that is needed for the implementation of new models and new kinds of calculations.

To date, no general open source software is available for multicomponent CALPHAD calculations. Open source code will make it possible to obtain a better integration between all methods used within the ICME framework, including automating the utilization of data from other methods, such as those from Density Functional Theory (DFT). Open source software will also provide a tool for interested researchers to implement new thermodynamic models, test new algorithms, and extend the functionalities of the software. Open source codes are already available for DFT calculations , , phase field simulations , , and finite element analysis of the mechanical response of microstructures. OC fills the gap that exists between the availability of open source codes for the atomic scale and the microscale.

We present here the first version of a multicomponent open source thermodynamic code distributed under a GNU license, the OpenCalphad (OC) software. This software provides the basic functionalities for the calculation of phase equilibria, phase diagrams, and thermophysical quantities such as chemical potentials, entropies, etc., for stable and metastable states for currently established models. OC is written in Fortran standard 2008 with extensive use of the data structuring facilities provided by this standard. These data structures are compatible with those of C/C and other modern programming languages. As a result, OC can be used on any system for which these compilers are available.

Interfacing application programs with thermodynamics The data needed from the CALPHAD calculations by application programs are usually phase amounts and compositions, chemical potentials, enthalpies, driving forces, or phase boundary slopes. The application software must be able to set the external conditions for the calculations in a very flexible manner. Transfer of the calculated thermodynamic results to the application software can be made by creating lookup tables for the application software or by direct coupling.

The advantage of lookup tables is that their use is frequently faster than direct coupling. However, since lookup tables are generated prior to the execution of the application software, this advantage may come at the expense of accuracy as the conditions during the course of the calculations by the application software may deviate from the original conditions used for the creation of the lookup table. The programming interfaces of commercial software are black boxes with limited flexibility with respect to hardware and software demands and prescribe which calculations can be performed and which values can be obtained. For the implementation of OC with other application software, it is possible to call the routines of OC directly.

Data structure and routines of the General Thermodynamic Package (GTP) are documented in detail, and the documentation is provided together with the source code. Although the direct implementation of the OC routines may be advantageous for reducing execution time of the application software, it can be time consuming to program and debug as special care needs to be taken when directly implementing the routines.

The availability of a software interface overcomes this problem. Such a software interface can be a custom-designed interface as was used for the casting simulations by Banerjee at al. or a library of general routines that is provided with the thermodynamic software. Application software interface A software interface should consist of a simple set of routines that can select a material from a database; set the external conditions on T, P, and composition; calculate the set of stable phases; and provide the needed property data to the application software. An established software interface for thermodynamic software called the TQ interface , , originally developed for FactSage and Thermo-Calc , has been implemented in OC.

This interface provides functions to set the values of external conditions such as T, P, and composition as well as to prescribe the set of stable phases, volume, heat content, etc. Of a system and to obtain equilibrium values of phase amounts, phase constitutions, and chemical potentials of all components. The TQ interface can be used to calculate local equilibria, such as ongoing transformations during a phase field simulation, and can thus provide important information on thermodynamic and kinetic driving forces. With the TQ interface of OC, OC-TQ, such calculations can be executed in parallel, substantially improving speed. The TQ interface is an open definition and can be extended to also provide other properties such as mobilities and elastic constants that are needed for the simulation of a phase transition. Such properties often depend on T as well as the phases and their constitutions and can be modeled in a way similar to the thermodynamic properties and stored in databases together with such data. Implementation of the programming interface.

The OC-TQ interface implemented in OC is currently used in the OpenPhase project. The basic OC-TQ interface is written in the new Fortran standard and is extended with a C interface making the routines callable from C, Java, Python, etc., thus enabling seamless integration into other tools used within the ICME framework, such as phase field , , fluid flow , or finite element methods (FEM). For example, the FEM code used for a casting simulation used two routines, Lever and Slopes, from a custom interface for an older open source code.

These two routines can be replaced by a sequence of routines from the OC-TQ interface, as shown in Table. have provided a number of examples for the implementation of interface routines in kinetic modeling. Routine Action readdata Read materials data for a selected set of elements and phases from the database file. Setcondition Set a condition for T, P, composition, chemical potential, stable phase, etc. Each condition can be set and changed separately. The simulations can use multiple equilibria with different conditions to represent local equilibrium.

Casting Simulation

Calculateequilibrium Calculate the equilibrium for the given set of conditions. Getvalue Obtain the calculated value of a chemical potential, amount, or composition of a phase, atomic mobility of a component, etc. Note that the materials database can also contain data on atomic mobilities, elastic constants, magnetic properties, etc., in addition to the data for the Gibbs energy. Thermodynamics A thermodynamic system consists of elements that can form many different molecules or ions, here called species.

The elements are neutral monatomic species. The species are the constituents of the phases, and it is important to distinguish between the constituents of a phase and the components, the latter are usually the same as the elements.

The number of constituents can be larger than the number of components; for example, the number of species in the gas phase is frequently larger than the number of elements. For the calculation of phase equilibria, it is important that the controlling conditions of the system can be specified in a general way. The most simple conditions for minimizing the Gibbs energy are fixed amounts of components, T, and P, but it must be possible to set chemical potentials, values of enthalpy, volume, etc. As well as to prescribe a phase that must be stable. Based on single equilibrium calculations, it must also be possible to generate property diagrams and phase diagrams for varying conditions. The optimal model parameters are determined from experimental and theoretical data in an assessment procedure. Models and model parameters.

All thermodynamic parameters are stored in OC relative to the phases and depend on the model selected for the phase. These parameters can be read from a file (database) containing the phase descriptions. There can be many different kinds of models, from a simple stoichiometric model with no variation in composition to multisublattice models for complex crystalline phases and liquids with a short range order to a gas phase with more than 100 species. The most frequently used models are variants of the Compound Energy Formalism (CEF). This formalism describes the gas phase, regular solutions, intermetallics, and ordered phases and liquids with a short range order. The general equation for describing the Gibbs energy function per mole formula unit of a phase α is. An efficient and flexible data structure has been implemented in OC to store composition dependencies in the program memory as binary trees as shown in Figure.

Each binary tree is independent, and this allows parallel processing which can speed up calculations. As shown in the figure, several ‘property records’ can be linked to each parameter; this allows the description of the composition dependence of other properties other than the Gibbs energy, for example, the Curie temperature and Bohr magneton number for ferromagnetic transitions, mobilities for diffusion data, lattice parameters, etc.

This modular data structure is extremely useful for the implementation of new models as new trees can be easily added to the code. The set of elements, species, and parameters for each phase of a system is ‘static’ as it does not change with the external conditions.

The external conditions set by the user as well as the values of the constituent fractions and the calculated results for each phase are stored in separate ‘dynamic’ equilibrium records as shown in Figure. This approach was chosen to simplify the calculation of several equilibria in parallel, each with its own equilibrium record, for example, for calculating separate lines in a phase diagram or assessing model parameters using many experimental points. The ability for parallel execution of the calculations is especially important for the coupling with other codes, such as phase field, fluid flow, or FEM. The algorithm for minimization implemented in OC was proposed by Hillert , and the first implementation was made by Jansson. External conditions and internal constraints are taken into account using Lagrange multipliers. The Lagrange multipliers are also used to replace the Gibbs energy with the appropriate function considering external conditions on the volume, chemical potentials, or prescribed stable phases. An example for the Lagrange function, L, for conditions of constant composition and fixed T and P is.

Figure 3 Iterative minimization. The iterative minimizer for the Gibbs energy curves in (a) with the start constitutions given in (b) will find the metastable equilibrium in (c).

Simulation Software Open Source

The global minimum is given in (d). To avoid the problem of not finding the global equilibrium for the given conditions, Chen et al. developed an approach for finding the stable equilibria and values for the start constitutions of the phases. Subsequently, similar approaches were implemented into other software such as Thermo-Calc or CaTCalc. The OC software has as an initial step a grid minimizer which calculates the Gibbs energy of all phases over a grid of compositions as shown in Figure a.

These grid points are treated as stoichiometric phases, illustrated in Figure b. In a preliminary minimization, the set of grid points representing the minimum as shown in Figure c is determined. The grid points from the grid minimizer are then used as an initial guess, and their compositions are inserted as the start constitutions for the iterative algorithm which will find the global minimum in Figure d. Even in multicomponent systems, only a few 1,000 grid points are needed for each phase. Figure 4 Grid minimization. The grid minimizer calculates a number of points along the Gibbs energy curves in (a); in (b), these are treated as individual stoichiometric phases, and in (c), the lowest Gibbs energy points have been found to be used as the start points by the iterative algorithm to find the global equilibrium in (d). Databases Thermodynamic descriptions are read by OC from thermodynamic database (TDB) files.

This format has developed into a de facto standard and is supported by most commercial software. However, the OC code will not be able to read proprietary, encrypted database files.

Files with descriptions of individual systems or databases for multicomponents can be found as supplemental material of journal articles or in file repositories. It should be noted here that uncertainty of results from the CALPHAD calculations depends on the databases used and how reliably the original experimental data used in the development of these databases are reproduced. Currently, no method for uncertainty quantification of the results from a CALPHAD database is available. The reliability of the results is most commonly expressed by plotting experimental data versus calculated results under the same conditions. Recently, a systematic evaluation of the effect of using different DFT sets of data to compute phase diagrams and thermodynamic properties has been carried out ,.

Software

The work of Palumbo et al. showed that differences of a few kJ/mol in the input DFT energies of formation can produce topologically different phase diagrams with phases that appear/disappear as stable ones depending on the input data set used. Similar effects can be obtained using different sets of optimized parameters from experiments (and eventually DFT data) obtained by the CALPHAD approach. Mathematical methodologies to better evaluate such uncertainties are desirable but challenging (if at all possible). The OC software offers a useful tool for future implementations of such methods by scientific communities different from the traditional users (physicists or materials scientists). The benefits from using the results from the CALPHAD calculations for materials design and process development are well established.

We have highlighted the many pathways by which the results from the CALPHAD calculations can be utilized within the ICME framework. The properties that are currently implemented by the CALPHAD software and databases are the Gibbs energy, molar volume, diffusion, and precipitation kinetics. However, there are many other physical properties that are phase based, and the approach used by the CALPHAD method is well suited for modeling them. The description of these properties will be most likely tied to the thermodynamic description of the individual phases and for expanding the CALPHAD code to include these properties; the availability of a source code for the calculation of thermodynamics will greatly benefit the efficiency of the new code. Since the inception of the CALPHAD method, models for temperature, pressure, and compositions have been evolving to better reflect the underlying physics of the phases. For example, new models for the description of the unaries are being discussed - and expansion of the existing thermodynamic code may be necessary. Such developments are only possible for those who have access to the source code of commercial software unless open source code is available.

In this article, we have presented OC, an open source code for the calculation of phase equilibria and thermodynamic properties. The OC software has currently the general CEF implemented but more models can be added by interested users. A well-established algorithm has been selected for finding the equilibrium.

This algorithm can handle different types of conditions, including the specification of phases which should be stable, and has a powerful method for providing start values to ensure that global minimum is obtained. The minimization algorithm can handle changes in the set of stable phases and detect miscibility gaps. Current state of OC. The standard multicomponent CEF model with multiple sublattices including magnetism, regular solution, and gas.

Composition-dependent binary and ternary parameters are also implemented. Command line user interface with macro facilities.

Interactive inputing, editing and listing of models and model parameters. Ability to read models and model parameters from a standard, unencrypted, thermodynamic databases.

Ability to set conditions for T, P, amounts or fractions of components, chemical potentials, stable phases. Multicomponent equilibrium calculations finding the set of stable phases, including phases with miscibility gaps, without any the need for initial estimates. Extensive documentation and some test cases as macro files. Parameters for volumes, thermal expansion, and bulk modulus. New models for unaries for proper utilisation of results from DFT calculations , -.

Module for the assessment of model parameters. Implementation of a corrected quasichemical model for liquid. Interested readers are encouraged to download the current version and give feedback to the developers or participate in further development. It is important that the developers receive feedback from users who are willing to take the time to test this version. Desirable future developments beyond open source code It was previously mentioned that no method for uncertainty quantification of the results from the CALPHAD calculations is currently available. The first logical step in this direction is to perform a sensitivity analysis of the model parameters that are being adjusted during the optimization of the thermodynamic description of a binary or ternary system.

In addition to uncertainty quantification, it is desirable to develop a set of test cases to ensure that the results are consistent with accepted codes. Although the results from calculations should agree once the convergence criteria are fulfilled, it is not always guaranteed that the true set of equilibrium phases has been found.

Although grid minimizers are intended to assure that the true equilibrium is found, the reliability of these results will depend on how the grid was established. The development of tools for uncertainty quantification, verification, and validation requires a transparent code that can be easily modified to accommodate the required tests. The availability of an open source code is essential to address these needs and opens the door for future development and improvement of the CALPHAD method and for further integration with materials and process simulation tools. Acknowledgements Funding by the Interdisciplinary Centre for Advanced Materials Simulation (ICAMS), which is supported by ThyssenKrupp AG, Bayer MaterialScience AG, Salzgitter Mannesmann Forschung GmbH, Robert Bosch GmbH, Benteler Stahl/Rohr GmbH, Bayer Technology Services GmbH, and the state of North-RhineWestphalia as well as the European Commission in the framework of the European Regional Development Fund (ERDF).

One of the developers, BS, is grateful for a Humboldt senior research award. NIST does not endorse any commercial products, and use of these products does not imply endorsement by NIST. Competing interests The authors declare that they have no competing interests. Authors’ contributions BS and URK contributed the majority to the present article.

Solidcast

MP and SGF contributed in the formalism development and discussed and contributed to the present article. All authors read and approved the final manuscript.