The core algorithm: the fluid's surface field is extrapolated into the collider volume, factoring in the contact angle, and is subsequently adjusted and smoothed. Furthermore, a localized viscosity is introduced at the fluid-collider interface to approximate boundary friction.