Osmosis in selectively permeable membrane