Your pipe is 4000mm in diameter? or is that length?
Usually, you'd want to have the tip of your thermowell at the center of your pipe. Also, it is advisable to have the thermowell inserted at an angle towards the upstream direction.
That's a big pipe, by the way.
__________________
Miscommunication: when what people heard you say differs from what you said. Make yourself understood.
1. The generally used guideline for immersion in a pipeline is to ensure that the sensitive area is in the center third of the line but no less than 2" into the flowing stream for the full temperature sensitive length.
2. You must check that the thermowell will not fail due to flow induced stress or flow induced vibration. There are resources on the web that can explain these in detail. Search for thermowell strength calculations.