Theoretical Calculation of the Spatial Distribution of Molecules in Crystals