Hydromechanical coupling at dam-foundation joint