  We represent results of calculations of coherent synchrotron radiation (CSR)
of the relativistic bunch in an undulator with a vacuum chamber of arbitrary
cross section with a new algorithm. This algorithm associated with direct
calculations of electric field rather than the vector potential. CSR normalized
to the incoherent one and compared with analytical calculations for a free
space.
