Modeling of negative ion transport in a plasma source (invited)