Mechanical Modeling and Computer Simulation of Protein Folding