We report our simulations on the profile of the electric field in semi insulating CdTe and CdZnTe with Au contacts under radiation flux. The type of the space charge and electric field distribution in the Au/CdTe/Au structure is at high fluxes result of a combined influence of charge formed due to band bending at the electrodes and from photo generated carriers, which are trapped at deep levels. Simultaneous solution of drift-diffusion and Poisson equations is used for the calculation. We show, that the space charge originating from trapped photo-carriers starts to dominate at fluxes 10{sup 15}-10{sup 16}cm{sup -2}s{sup -1}, when the influence of contacts starts to be negligible