Modeling of the junction between two rods