  We discuss in detail a recently proposed hybrid particle-continuum scheme for
complex fluids and evaluate it at the example of a confined homopolymer
solution in slit geometry. The hybrid scheme treats polymer chains near the
impenetrable walls as particles keeping the configuration details, and chains
in the bulk region as continuous density fields. Polymers can switch
resolutions on the fly, controlled by an inhomogeneous tuning function. By
properly choosing the tuning function, the representation of the system can be
adjusted to reach an optimal balance between physical accuracy and
computational efficiency. The hybrid simulation reproduces the results of a
reference particle simulation and is significantly faster (about a factor of
3.5 in our application example).
