A theoretical study of the BeF molecule in the X2Σ+ state