The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



SumForContained


Unit:SDL_cstruct
Class:TCTab
Declaration:function SumForContained (CTabSmall: TCTab): boolean;

The function SumForContained checks if the molecular formula of the structure CTabSmall is contained in the molecular formula of the structure in self. The comparison is based solely on the atomic numbers of the atoms (all isotopes of an element are processed equally).

Note, that this method is restricted to structures which do not contain more than 30 different kinds of atoms (which should be sufficient in most cases). For structures with more than 30 different kinds of atoms the result may be invalid.



Last Update: 2023-Dec-13