Different labels to a uniform mesh in domain with a hole & scattered field

Hi,

I created a uniform mesh for a square with a hole using the “square” and “trunc” commands in FF++. Thus, the domain has two boundaries, outer and inner.
I would like to ask please, how to ask FF++ to assign a different label to each boundary?

I need these different labels for each boundary since I have to impose on the outer boundary absorbing boundary conditions whereas for the inner boundary I have to impose Dirichlet boundary conditions.
My objective is to create a scattered field for the 2D wave equation on this domain with a hole.
I created a code in FF++ for the scattered field but unfortunately, I don’t get the correct scattered field which should result in waves that are only going out from the inner boundary and not from the outer boundary.

Can someone check my code to see where is the error? I think that I didn’t define the labels correctly and thus the scattered field is obtained wrong.

Thanks in advance,

Mordechai.

u scattered with hole.edp (2.1 KB)