Fundamentals of hydromechanics of ships and offshore structures