A continuum theoretical model and finite elements simulation of bacterial flagellar filament phase transition. (3rd October 2017)