Hi applous6,
for the boundary conditions you can have a look at the example multiComponent3d, in there especially the function prepareLattice. For the obstacle you can use a bounce-back boundary, as it is done there for material number 3 and 4. This has to be applied to both lattices.
Best
Robin