The results of a numerical simulation of the O+ energization perpendicular
to the magnetic field (B) in "electrostatic shocks" with converging or dive
rging fields at altitudes similar to 2000 km are presented. It is shown tha
t nonadiabatic motion in diverging "shocks" leads to the formation of coher
ent perpendicular Of beams, whereas converging fields produce non-Maxwellia
n tails and heating of core ions. In both cases, ion energization is accomp
anied by the formation of spatially narrow density dips. Inside these dips,
double layers ay easily be formed resulting in electron acceleration upwar
ds or downwards depending on whether the electric field diverges or converg
es. The results are in qualitative agreement with relevant observations.