Coder Social home page Coder Social logo

gibbs-stix's Introduction

Gibbs free energy

The Gibbs free energy $\mathcal{G}$ of a multiphase assemblage is

$$ \mathcal{G}(P,T,\vec{n})=\sum_{i}^{species}n_i\mu_i(P,T,\vec{n}) $$

where $P$, $T$, $n_i$, $\mu_i$ are, respectively, pressure, temperature, amount and chemical potential, and $\vec{n}$ is the vector containing all of the $n_i$.

The chemical potential is assumed to be

$$ \mu_i= \mathcal{G}i-RT\sum{k}^{sites} \Big[S_{ik}\ln{N_k}-\sum_{j}^{comp.}s_{ijk}\ln{N_{jk}}\Big] $$

$$ -\sum_{\beta> \alpha}^{species}W_{i\alpha\beta} (\delta_{i\alpha}-\phi_{\alpha}) (\delta_{i\beta}-\phi_{\beta}) $$

where

$$ N_{jk}=\sum_{i}^{species}s_{ijk}n_i $$

$$ N_k=\sum_{j}^{comp.}N_{jk} $$

$$ S_{ik}=\sum_{j}^{comp.}s_{ijk} $$

are, respectively, the number of atoms of component $j$ on site $k$, the total number of atoms on site $k$, and the sum over the stoichiometric coefficients of species $i$ at site $k$, $s_{ijk}$ is the stoichiometric coefficient of component $j$ on site $k$ in species $i$, and $comp.$ is the number of components, $\mathcal{G}$ is the Gibbs free energy in cation-ordered pure form, $R$ is the gas constant, and $T$ is the temperature.

$$ fo=Mg_2SiO_4=2MgO+1SiO_2\\ fa=Fe_2SiO_4=2FeO+1SiO_2 $$

$$ S_{ik}=S_{fo,k} = s_{fo,SiO_2,k}+s_{fo,MgO,k} $$

$$ N_{jk}=N_{SiO_2,k}=s_{fo,SiO_2,k}\times n_{fo}+s_{fa,SiO_2,k}\times n_{fa} $$

$$ N_k=s_{fo,SiO_2,k}\times n_{fo}+s_{fa,SiO_2,k}\times n_{fa}\\ +s_{fo,MgO,k}\times n_{fo}+s_{fa,MgO,k}\times n_{fa}\\ +s_{fo,FeO,k}\times n_{fo}+s_{fa,FeO,k}\times n_{fa} $$

$$ \Sigma (s_{ijk} \ln{N_jk})=\ s_{fo,SiO_2,k}\times \ln{(s_{fo,SiO_2,k}\times n_{fo}+s_{fa,SiO_2,k}\times n_{fa})} \\ +s_{fo,MgO,k}\times \ln{(s_{fo,MgO,k}\times n_{fo}+s_{fa,MgO,k}\times n_{fa})} \\ +s_{fo,FeO,k}\times \ln{(s_{fo,FeO,k}\times n_{fo}+s_{fa,FeO,k}\times n_{fa})} $$

gibbs-stix's People

Contributors

jamisonassuncao avatar nicolasriel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nicolasriel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.