Calculation of partial excess energies #509
-
Dear all, I am a new user to pycalphad. I have followed the tutorials and I want to implement the butler equation to estimate the surface tension of alloys. I have followed the viscosity example, which is a great help! I am stuck with the calculation of the partial excess energies. I am using the Sn-Bi system for development because I have a working reference code here which uses the RK directly instead of a tdb. In my model, I have calculated excess energy with: G_E=self.excess_mixing_energy(dbe); which gives me which is fine. How can I use G_E.diff() to calculate the partial excess energies? In the viscosity example excess_entropy = -excess_energy.diff(v.T) was used, however, I cannot find entries in V which contain LIQUID0BI or LIQUID0SN. Or is there a smarter way to do that? thank you for your help! Nils |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Nils, I'm not sure if I fully understand your question, but if you want to calculate partial quantities with respect to the temperature and the site fractions, the following should work: G_E.diff(v.T)
G_E.diff(v.Y('LIQUID', 0, 'BI'))
G_E.diff(v.Y('LIQUID', 0, 'SN')) |
Beta Was this translation helpful? Give feedback.
Hi Nils, I'm not sure if I fully understand your question, but if you want to calculate partial quantities with respect to the temperature and the site fractions, the following should work: