Atomic force microscope functionality simulation : physical and energetic analogies