How to transfer Pressure instead of Force in FSI?

Ok, so again in order to make this clear: Stress data = the formula above = vector valued data, which is not equal to Pressure data = scalar data, where the \tau_{ij} is not included. If you are still looking for an implementation of the above formula; the Stressdata field includes this already.

Regarding your original question: OpenFOAM calls the pressure field and data just p, which exists as you can see. However, the constructor of the Pressure field you want to add takes the name (again, p by default) as an argument

preciceAdapter::FSI::Pressure::Pressure(
    const Foam::fvMesh& mesh,
    const std::string nameP)

whereas you pass in the solver type

        interface->addCouplingDataWriter(
            dataName,
            new Stress(mesh_, solverType_) /* TODO: Add any other arguments here */
        );

Have a look at these lines for a similar example openfoam-adapter/FSI.C at 0c368d717bc5ec0fbd0aa4925c48a8164487fc3f · precice/openfoam-adapter · GitHub