Physical simulation of C.Elegans-like nematode