A density functional theory for polymers: Application to hard chain–hard sphere mixtures in slitlike pores | Synapse