Geant4 simulation of a solid capillary fiber