Home > Applications > SpinW > m_files > sw_atomdata.m

iFit/sw_atomdata

PURPOSE ^

returns information on elements stored in the atom.dat file

SYNOPSIS ^

function varargout = sw_atomdata(atomSymb, datType)

DESCRIPTION ^

 returns information on elements stored in the atom.dat file

 [data atomLabel] = SW_ATOMDATA(atomSymb, dataType) 

 Input:

 atomSymb  String of the name of the atom, for example 'He'. If the string
           contains whitespace character, the second word will be used to
           identify the atom.
 datType   Type of information requested:
               radius      Atomic radius.
               color       Color of the atom from the CPK color scheme.
               mass        Average mass of the element.
               longname    Name of the element.

 Example:
 sw_atomdata('H','radius') = 0.37
 If the atom label does not exists, the function returns radius = 1,
 color = [255 167 0].

 optional second output is 'atomLabel' that contains the name of the atom
 clean.

 See also SW_MFF.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1