I have a function which creates a hole of varying radius, depth and would like to tile it in x and y.
Hole[x_, y_, radius_, holefraction_] := Which[x^2 + y^2 <= radius, holefraction, x^2 + y^2 > radius, 1]
I have been playing around with the mod function, but can't seem to find the right way to rigidly offset the hole by an arbitrary pitch in x and y. If this were in a loop, i would just iterate as x=xrelative+i*pitch, but how would I do the reverse, where I just want to rigidly pattern in x and y?
Alternatively, is there a way to create a 2nd function using this one, and just set periodic boundary conditions in x and y? Thanks!