How to define a subdomain using material data (from data file)?

Dear Dokken,

Would you please guide me on how to define the internal boundaries between any 2 materials within such domain? I have successfully defined the external boundaries (boundaries of the rectangular domain), but I am not able to define the internal boundaries. I have also asked this question in my recent post: here is the link
Please let me know if you need any more information which might help you to solve this query.

Thanks a lot for your help.