The algorithm for relation of contact status, track shift, and contact force caused from wheel/rail contact geometry is presented. Grafting this algorithm into a algorithm of general program analyzing mechanical system, the program for time domain simulation of railway vehicle dynamics, called CASOTD, was developed. In addition, as applied example of CASOTD, the dynamic simulation of railway vehicle running on a rail joint and a irregularly alinemented rail is done in this paper.