Home > Scripts > Treatment > Sqw > sqw_thermochemistry.m

iFit/sqw_thermochemistry

PURPOSE ^

sqw_thermochemistry: compute thermodynamic quantities.

SYNOPSIS ^

function [t, fig]=sqw_thermochemistry(s, T, options)

DESCRIPTION ^

 sqw_thermochemistry: compute thermodynamic quantities.

 compute thermodynamics quantities.
 When missing, the phonon (vibrational) density of states (vDOS) from e.g. the 
 evaluation of the 4D sqw_phonons object.

 The input 4D model should be e.g. a 4D phonon one, with axes qh,qk,ql,energy
 in [rlu^3,meV]. The evaluation of the model should provide the density of states
 in model.UserData.DOS as an iData object.

 the function returns an array of iData objects:
   DOS                                 [modes/energy unit/unit cell]
   DOS_partials                    DOS partials (one per mode)
   entropy                           S [eV/K/cell]
   internal_energy                   U [eV/cell]
   helmholtz_energy                  F [eV/cell]
   heat_capacity at constant volume Cv [eV/K/cell]

 input:
   s: a 4D sqw_phonons model [K,H,L,Energy] (iFunc)
   T: temperature range. When not given, T=1:500 [K]
   options: can be 'plot' to display the results.

 output:
   t: structure with [DOS, DOS_partials, S U F Cv ]
   fig: figure handle

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1