Towards Multiscale Modeling Of Ferroelectric Devices