Two Phase Fluid Solid Interface In Java