Stress for one subdomain in multiple subdomain problem

Hi

I am doing a fluid-solid-interaction problem. I want to get the stress tensor for the solid subdomain only. But the only examples I saw online were with the simplistic settings that people having one material so that dolfin.project can easily take care of the task. I am not sure how to get stress tensor for only one subdomain.

Thanks in advance,
Victor