The size effect in thin film sandwich structures is considered. Three types of boundary conditions for dynamic polarization at interface electrode-ferroelectric layer are formulated. The type of boundary conditions depends on matching crystal lattices of electrodes and ferroelectric layer. A model describing the dependence of dielectric permittivity on biasing field, temperature, and thickness of the thin ferroelectric film is proposed. The results of the simulation are in good agreement with experiments.