Escolar Documentos
Profissional Documentos
Cultura Documentos
March 7, 2014
Abstract
The use of thermodynamics in many applications suffers from the
lack of a high quality open source software for multicomponent
systems. The aim of the OC software is to fill this gap.
Abstract
The use of thermodynamics in many applications suffers from the
lack of a high quality open source software for multicomponent
systems. The aim of the OC software is to fill this gap.
It is also very important for the development of thermodynamic
databases to improve the thermodynamic models implemented in
the software. An open source software with a GNU license will
make it easier for those interested to develop and test new models.
Content
Data structures
User interface.
The elements
Parallell execution
Dynamic data
Parallell execution
Dynamic data
Models of phases
Models of phases
Models of phases
Models of phases
For crystalline phases one must take long range ordering into
account using sublattices for example in interstitial solutions,
Laves, etc. For such models we can introduce the Gibbs
energy of formation of an end-members with one
srf
Gm T
cfg
Sm +
Gm +
phys
Gm
(1)
Software, modules
The OC software is modulized in the following way. Each module
depends on the more basic ones.
Software, modules
The OC software is modulized in the following way. Each module
depends on the more basic ones.
Software, modules
The OC software is modulized in the following way. Each module
depends on the more basic ones.
Software, modules
The OC software is modulized in the following way. Each module
depends on the more basic ones.
3
23
80
3
11
16
10
7
9
57
1
2
OC:list res 1
Conditions .................................................:
1: T=1000, 2: P=100000, 3: N(FE)=0.75, 4: N(C)=0.1, 5: N(CR)=0.15
Degrees of freedom are
0
Some global data ...........................................:
T=
1000.00 K (
726.85 C), P= 1.0000E+05 Pa, V= 0.0000E+00 m3
N=
1.0000E+00 moles, B=
5.0886E-02 kg, RT=
8.3145E+03 J/mol
G= -4.3287E+04 J, G/N= -4.3287E+04 J/mol, H= 2.1653E+04 J, S= 6.4940E+01 J/K
Some component data ........................................:
Component name
Moles
Mole-fr Chem.pot/RT Activities
C
1.0000E-01 0.10000 -2.6108E+00 7.3478E-02
CR
1.5000E-01 0.15000 -7.4883E+00 5.5957E-04
FE
7.5000E-01 0.75000 -5.0959E+00 6.1218E-03
Ref.state
SER (default)
SER (default)
SER (default)
Thermodynamic databases
For any application of computational thermodynamics (CT) one
must have a database with the model parameters. In the simplest
case one can just use results from DFT calculations of the
enthalpies of formation of the different phases.
Thermodynamic databases
For any application of computational thermodynamics (CT) one
must have a database with the model parameters. In the simplest
case one can just use results from DFT calculations of the
enthalpies of formation of the different phases.
Calculations of equilibria require that the energy parameters have
an accuracy of a few joule (less than 0.1 meV) and thus
calculations based only on DFT results can be very far from the
experimental information. But the assessment procedure in CT
makes it possible to combine DFT reults with experimental data to
obtain model parameters with a good fit to reality.
Thermodynamic databases
For any application of computational thermodynamics (CT) one
must have a database with the model parameters. In the simplest
case one can just use results from DFT calculations of the
enthalpies of formation of the different phases.
Calculations of equilibria require that the energy parameters have
an accuracy of a few joule (less than 0.1 meV) and thus
calculations based only on DFT results can be very far from the
experimental information. But the assessment procedure in CT
makes it possible to combine DFT reults with experimental data to
obtain model parameters with a good fit to reality.
Most high quality databases are commercial but there are a few
smaller databases available free. However, you must be careful
using databases that may not be maintained and updated by an
experienced and skillfull assessment team.
Gm
(2)
Gm
(2)
(NA
MA
)A +
XX
X ,(s)
1) (3)
,(s) (
yi
i
is the amount
where NA is the total amount of component A, MA
of A in , yi is the constituent fraction of i . A and are
Lagrangian multipliers.
(NA
MA
)A +
XX
X ,(s)
1) (3)
,(s) (
yi
i
is the amount
where NA is the total amount of component A, MA
of A in , yi is the constituent fraction of i . A and are
Lagrangian multipliers.
The first constraint is the massbalance and the second that the
sum of constituent fractions in each sublattice of is unity.
By differentiating the Lagrangian function with respect to the
different variables we obtain many relations.
TMS 7 March 2013, Bo Sundman et al.
2 Gm
yi yj
1
(4)
2 Gm
yi yj
1
(4)
X X MA
A
yj
eij A
X Gm
j
yj
eij
X 2 Gm
eij T
T yj
(5)
2 Gm
yi yj
1
(4)
X X MA
A
yj
eij A
X Gm
j
yj
eij
X 2 Gm
eij T
T yj
(5)
MA
A = Gm
(6)
MA
A = Gm
(6)
MA
i yi
P P
B
MB
j yj eij B
MA =
P
P
MA
Gm
i
j yi yj eij
Grid minimizer 2
4
3
2
1
4
3
2
1
4
3
2
1
4
3
2
1
-1
-1
-1
-1
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
0.4
0.6
X(B)
.
(a)
(b)
(c)
(d)
The real equilibrium is the common tangent marked in (d)
0.8
1.0
Grid minimizer 3
4
3
2
1
4
3
2
1
With a grid minimizer one calculates the Gibbs energy along the
curves at fixed compositions like in (e). These are treated as
individual phase with fix composition as in (f) in a first
minimization and one will find the two gridpoints representing the
lowest Gibbs energy in (g).
4
3
2
1
4
3
2
1
-1
-1
-1
-1
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
0.4
0.6
X(B)
0.8
1.0
0.2
.
(e)
(f)
(g)
Using these compositions as start points in an interative
minimization one will find the global minimim ib (h).
0.4
0.6
X(B)
(h)
0.8
1.0
On the list to do
The equilibrium calculation is currently not very stable, it
frequently fails and sometimes even converges to the wrong
equilibrium. This is mainly due to problems changing the set of
stable phases and to solve these problems we need a larger group
of testers who have patience enough to use the software and send
error reports.
On the list to do
The equilibrium calculation is currently not very stable, it
frequently fails and sometimes even converges to the wrong
equilibrium. This is mainly due to problems changing the set of
stable phases and to solve these problems we need a larger group
of testers who have patience enough to use the software and send
error reports.
For the future the next thing is to develop the step and map
procedures for various types of diagrams.
On the list to do
The equilibrium calculation is currently not very stable, it
frequently fails and sometimes even converges to the wrong
equilibrium. This is mainly due to problems changing the set of
stable phases and to solve these problems we need a larger group
of testers who have patience enough to use the software and send
error reports.
For the future the next thing is to develop the step and map
procedures for various types of diagrams.
In parallell more models will also be added, like the ionic liquid
model and the corrected quasichemical model for liquids.
Other features
Other features
Other features
Other features
Other features
Other features
Other features
http://www.opencalphad.org
TMS 7 March 2013, Bo Sundman et al.