You might wander the craft aisles at a Michaels, Jo Anns, Etc., Hobby Lobby, et al and see if you can find rings of useful material, diameter, thickness. FI, a full wood ring of would give you 4 elbows, cutting them into 90-degree segments. Punch/cut out some rings of styrene for flanges. For more detail and tedium, you could add nut/bolt/washer moldings to the flanges.
On the other hand, I seem to recall that Plastruct has quite an array of pipe elbows and flanges available. You can go to their website, as did I just now, but I find their printed catalog a lot easier to work from. Depending on what you're creating and to what expense you're willing to go, I'd give them a try.
Bending metal or plastic tubing to form elbows???...not my idea of fun, if that's what you had in mind.
I'm sure others will chime in with ideas.
Check out the refinery posted in another thread a couple down from this one. Perhaps the builder of that magnificent model has some suggestions for you. I see elbows, but not a lot of pipe flanges.
Good luck!
KD