The self‐consistent field for crystals