Mean field approach for describing thin film morphology