When there is no magnetic field in the simulation, emittances given by the postprocessing and my own code are same. But when there is magnetc field in the simulation, no matter how small of the field, emittances parallel to magnetic induction are different.
The simulation software is CST Studio Suite 2020 Particle Tracking Solver. For the same structure of RF negative hydrogen ion source, the H- beam is extracted from plasma electrode and accelerated by the extracted electrode and accelerated electrode. There are two pairs of rod filter magnet in this structure.