The UDF manual is about the only thing I can recommend; as staff we're a little limited on here. The normal approach is for a linked sink & source term. If you look for membranes on here several have asked questions over the years and other community members have given aid.