Triangle boundary

hello my friends
I want to simulate a stack in domain with a constant plume, I know that for doing this I have to use triangleboundary 3D, but I do not know how I can assign the inlet and outlet of this stack.