Flagella interacting with a carbon nanowire with the variation of time and initial temperature