def METHOD_NAME(model, coordinateName, optForce):
    coordSet = model.getCoordinateSet();
    actu = osim.CoordinateActuator();
    actu.setName('torque_' + coordinateName);
    actu.setCoordinate(coordSet.get(coordinateName));
    actu.setOptimalForce(optForce);
    actu.setMinControl(-1);
    actu.setMaxControl(1);
    # Add to ForceSet
    model.addForce(actu);