  Inelastic collisions occur in Bose-Einstein condensates, in some cases,
producing particle loss in the system. Nevertheless, these processes have not
been studied in the case when particles do not escape the trap. We show that
such inelastic processes are relevant in quantum properties of the system such
as the evolution of the relative population, the self trapping effect and the
probability distribution of particles. Moreover, including inelastic terms in
the model of the two-mode condensate allows for an exact analytical solution.
Using this solution, we show that collisions favor the generation of
entanglement between the modes of the condensate as long as the collision rate
does not exceed the natural frequency of the system.
