how to compute force applied by the indenter

Dear all’s
I am working on nanoindentation, and i am tryning to perform indentation without using fix indent command. because i want to use differnt shapesand materials for the indenter. i am not fining a way to calculate the force applied by the indenter on the material. can any body guide me about this problem. any help or suggestion is appreciated.

Best regards
Muhammad Imran

You can use the compute group/group command to get the
force between 2 different groups of atoms.