| For the traditional discrete element simulation work,PFC3 D software is usually chosen as the analysis tool.Limited by the command driven feature of PFC series software,the cost to learn them is relatively high,which impedes the development of discrete element method to a large extent.At present,there are few effective solutions to this problem.In this paper,the object-oriented technology is used to design and develop a pavement material discrete element simulation system called easyPFC,which has a visual interface.The main function of the system is to generate PFC code files,which includes the code of asphalt concrete material model and road material routine tests simulation process.The generated code files can be imported directly into the PFC to run and get the output.The work done in this process is as follows:(1)The UML model of the system is established by using object-oriented method.After completing the work of system description,requirements analysis,outline design and detailed design,the user interface(UI)of the system was analyzed and finally designed by Visio2010.(2)Based on the design of UI,the core functions of the system were developed using C++ language in the Visual Studio 2013 integrated development environment(IDE).The basic functional components of PFC are encapsulated into several base classes,which are then assembled into a comprehensive model class.By calling the model class object and its member functions,the PFC code of the corresponding module is output by the string and written into the files.(3)The PFC code database was established for classic tests of pavement materials,which is embedded in the system as a child class of the class model for direct program calling.The easyPFC provides different kinds of models in it,which can be used to generate the cylinder,prism and hollow models with great rapidness.The easyPFC also provides variety of loading modes,namely speed mode,displacement mode and impact mode.(4)According to the coding concept of simple code,ImGUI graphics library and OpenGL graphics tools were used to realize the development of the user interface.During the development process,the functions of all the view module was fine-tuned to ensure that the interface functions correspond to the back-end core functions.Then the interaction of the user interface and core functions were finished.This research shows that the program based on object-oriented programming can call the PFC code library efficiently;the visualization method of easyPFC improves the accessibility of PFC programs;the easyPFC program is able to simulate the normal pavement materials tests. |