Can we add constrains such as mass,force to a mechanism and then use them to calculate torque in solidworks?

I have a slider crank mechanism and i want to add mass, force and other parameters to and so that i can calculate the torque and simulate the same.I also need the graph which shows different values of torque by varying the constraints . Is it possible to do so in Solidworks ?