A novel code based on non-linear Lagrangian formulation of beam wave interaction in traveling wave tubes is presented, modified for non-rotationally symmetric slow wave structures, such as the double corrugated waveguide. By including axial variations in the electric field along the period of the structure, as well as radial and angular variations and a model for the space charge forces in the double corrugated waveguide, a code capable of describing the behavior of the double corrugated waveguide is written.