Modeling the coupling between cw lasers and a frequency comb in atomic samples