How to make water physics?

I’m trying to make flood type game. So lets say you’re in a house, when the flood comes then the water doesn’t go through it. Its like real life where the inside would stay completely dry but the outside is completely submerged. Any way to do this without extreme lag or many bugs?