Hi rajatzope,
to change the type of the boundary implementation you just need to replace one line. Currently (depending on your setup)
createInterpBoundaryCondition2D or createLocalBoundaryCondition2D
are used, just need to replace the line with
createZouHeboundaryCondition
Best
Robin