Method for simulating mechanism motion virtual experiment based on mechanical principles of members

The invention relates to a method for simulating a mechanism motion virtual experiment based on mechanical principles of members. The method comprises the following steps of: 1) establishing the logic models of basic members in a uniform modeling language mode, namely Modelica, establishing the three-dimensional geometric models of the members by using three-dimensional modeling software, and integrating the three-dimensional geometric models of the members with the logic models of the members to establish a complete experimental member model which is described in extensible makeup language (XML); 2) constructing the experiment scene Modelica model of the virtual experiment, reading corresponding member files according to the members which are required by the experiment, selecting the three-dimensional models of the members, and assembling interfaces which are required to be connected among the members; 3) after the assembly is finished, setting simulation parameters, and starting the compilation solving simulation of the scene model; and 4) processing the data of a solving result file, and driving the visualization of a mechanism three-dimensional model in the assembly simulation environment of the virtual experiment. Compared with the prior art, the method for simulating the mechanism motion virtual experiment based on the mechanical principles of the members has the advantages that: boring theoretical knowledge becomes vivid and easy to grasp and has high universality, and the like.