  A model for the simulation of orientational effects in straight and bent
periodic atomic structures is presented. The continuum potential approximation
has been adopted.The model allows the manipulation of particle trajectories by
means of straight and bent crystals and the scaling of the cross sections of
hadronic and electromagnetic processes for channeled particles. Based on such a
model, an extension of the Geant4 toolkit has been developed. The code has been
validated against data from channeling experiments carried out at CERN.
