English dictionaries explain that "before" and "after" can be used to explain things that happen in course of time.
Is it possible to use "before" and "after" to explain the locations of things as well?
Can I say, "The noise is generated from the valve after/before the pump"?
"generated from the valve just in front of/on the left of the pump"
"generated from the valve just behind/beyond the pump"
The only time I would use "before" for location would be, for instance, "I was arrested and had to go before the judge". That is a relatively old phrase, but means to stand in front of the judge.
As far as "after" goes, I would rarely use this for location.