The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/periodic_table/

parse_compound_string.pro


:Author: pellegrini :History: pellegrini, 11 févr. 2011

Routines

parse_compound_init
result = internal_element_name(element)

result = database_element_name(element)

result = parse_compound_string(mixt)

Routine details

top parse_compound_init

parse_compound_init

top internal_element_name

result = internal_element_name(element)

:Description: Convert an element string from its database representation to its internal representation. An element string is the way an element is defined in the LAMP elements database (e.g. C, H, C[14] ...). As the "[", "]" characters can not be used in an IDL structure tag, those has to be converted in a suitable internal format. The "[" is replaced by "_" while #]" is replaced by "__". :Params: element : in, required, type="str" The element string to convert. :Returns: The internal representation of the element string. :Author: pellegrini :History: pellegrini, 11 févr. 2011 :Categories: apps, sld_calculator :private:

Parameters

element

top database_element_name

result = database_element_name(element)

:Description: Convert an element string from its internal representation to its database representation. An element string is the way an element is defined in the LAMP elements database (e.g. C, H, C[14] ...). As the "[", "]" characters can not be used in an IDL structure tag, those has to be converted in a suitable internal format. The "[" is replaced by "_" while "]" is replaced by "__". :Params: element : in, required, type="str" The element string to convert. :Returns: The database representation of the element string. :Author: pellegrini :History: pellegrini, 11 févr. 2011 :Categories: apps, sld_calculator

Parameters

element

top parse_compound_string

result = parse_compound_string(mixt)

:Description: Parses a string defining a compound mixture and convert it into an internal structure representation. A mixture string is the representation of a mixture of compounds. Its formats is C1%p1sepC2%p2sepC3%p3... where: - sep can be ",", ";", ":". - Ci defines the brute formula for compound i. To define a specific isotope use [] (e.g. C[14]H4 for a C14-methane). - pi defines the proportion in % of compound i in the mixture. :Params: mixt : in, required, type="str" The input mixture string. :Returns: An IDL structure storing the compound contents of the mixture. Each compound contents being stored in turn as another IDL structure storing the atomic contents of the compound and its proportion in %. :Author: pellegrini :History: pellegrini, 11 Feb. 2011 :Categories: apps, sld_calculator

Parameters

mixt

File attributes

Modification date: Tue Oct 1 14:38:51 2013
Lines: 253