The flow of X-rays and materials waves in ideally perfect single crystals