Changeset 319

Show
Ignore:
Timestamp:
03/26/08 10:47:53 (8 months ago)
Author:
powell
Message:

Documentation of the Flory-Huggins free energy function.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/matml/src/ternary/freenergy.c

    r318 r319  
    2828  double chi12 = -.5, chi13 = 2., chi23 = .2;      /* Interaction parameters */ 
    2929 
     30  /*+ This uses the Flory Huggins free energy formula for a polymer solution, 
     31    which divides entropy term by the molar volume and adds interaction 
     32    parameters. 
     33    +latex+The resulting expression for free energy is: 
     34    +latex+\begin{equation} 
     35    +latex+  \label{eq:flory-huggins} 
     36    +latex+  G = \frac{1}{m_1}C_1\log(C_1) + \frac{1}{m_2}C_2\log(C_2) 
     37    +latex+  + \frac{1}{m_3}C_3\log(C_3) 
     38    +latex+  + \chi_{12}C_1C_2 + \chi_{13}C_1C_3 + \chi_{23}C_2C_3. 
     39    +latex+\end{equation} 
     40    +*/ 
    3041  return  ((C1==0.)?0.:C1/m1*log(C1)) + ((C2==0.)?0.:C2/m2*log(C2)) + 
    3142    ((C3==0.)?0.:C3/m3*log(C3)) +