If you are interested in material modelling show check out the Materials Algorithms Project at
There are complete programs, and routines with sourcecode (mainly Fortran and C)
There are complete programs, and routines with sourcecode (mainly Fortran and C)