For vessels which are not symmetric about the center (for example rectangular vessel), the problem involves solving a nonlinear partial differential equation instead of a nonlinear ordinary differential equation, which can be solved only through numerical methods in most cases. The equation is
with boundary condition  on the bounding surfaces.