Methods of introduction of solid or liquid refining or fluxing agents