In this paper, a multibody model was developed in the framework of biotribology of lower limb artificial joints. The presented algorithm performs the inverse dynamics of musculoskeletal systems with the aim to achieve a tool for the calculation of the joint reaction forces. The revolute joint, the cam joint, the spherical joint and the free joint were considered in the analyzed lower limb system by introducing a novel analytical formulation of the rheonomic constraint equations based on the quaternions theory. Within the kinematical analysis, the curved muscle paths were modeled by simulating their geodesic wrapping over bony surfaces while the muscle actuations were formulated through the Hill muscle model. The developed theoretical model was developed in matlab environment allowing to follow the classical musculoskeletal analysis pipeline: kinematical analysis, inverse dynamics, and static optimization, applied to the lower limb during the gait kinematics. The validation of the results was obtained by comparing the calculated hip joint reactions with the ones obtained in vivo by Bergmann and calculated by Opensim software, showing a satisfactory agreement. The proposed model and algorithm represent a fully open and controllable synovial joint tribological configuration generator tool, useful to be coupled with numerical lubrication/contact models in the framework of the in silico artificial joints tribological optimization.