Assign values to subdomain id

I have created the mesh below and marked the subdomain \Omega_0 with ID 4. How can I assign function values to subdomain \Omega_0?

See:

or