Karlos said:
Thank you both for replying.
You're welcome.
Perhaps I ought to put the problem in context.
Definitely. In fact you don't have a problem in the usual PF sense yet: there is some concern and you want to get an insight on the ramifications. The mission should be to
formulate a reasonable and sensible problem that can be useful in this matter. You tried in post #1 but I think we can agree that that is not a problem that can help with this.
I work in the oil industry
A wolf is sheep's clothing

? I work in the chemical industry and they pay experts lot of money to work on issues like yours, so that they can get an operating permit. There's a good chance your issue has been dealt with extensively just to obtain such a permit -- unless your activities are in the darker parts of the world. Ask around !
Are you seriously involved in this or just interested ? In the first case hire an engineering consultant with the appropriate expertise and legal/insurance cover: PF can't bear the legal responsibilities.
- - -
In the second case (this is PF and if I wasn't interested and intrinsically helpful I wouldn't be here):
in a typical oil well, you have a pipe through which the oil flows from the rock deep in the ground, up to surface. Then you have several concentric pipes going outward from this pipe (called ‘casing’), and you have an annulus between each casing. These outer casings are cemented in place up to a certain depth below surface.
The ‘cylinder’ in this case is actually a closed annulus, the ‘water’ is brine or mud/hydrocarbons, and the gas is most likely methane.
Find the official drawings, have them verified and make a sketch that takes the physics essentials into account. What's the weakest point ?, When is the risk at a maximum, etc. Gather all relevant physical properties. Chet already indicated that your 'vessel' may be elastic. I ensure you your pipe is. What kind of cement ? Zero porosity is a fiction. The mud and water is sealed in in the annulus -- how well ?
When the well starts producing oil, these annuli will be heated above ambient temperature at surface because of the fact that the oil is coming from a deep reservoir at around 150degC (it is around 60degC by the time it reaches surface).
I am trying to estimate a realistic pressure increase in the annuli that can be expected to be caused by the thermal expansion of the liquid and gas in the annuli as the produced warm oil heats up the surroundings.
Post #2: you can assume all the gas goes into the liquid if the pressure is high enough. From then on what you have is an expanding liquid. And therefore an expanding pipe. Your volume is
not fixed.
I took a simple approach (combined pV = znRT for the gas and ΔV =βVΔT for the liquid, and did a bit of algebra) but I found (not surprisingly) that the gas pressure became extreme (un realistic) once the liquid expansion approached the initial gas cap volume (hence my question). If there is zero gas to begin with, then the problem is much more simple! (but that isn’t what I am asking)
the gas is a detail unless there's enough of it. At some point you are back to your simple problem.
There will of course be some ‘ballooning’ of the pipe to soak up some of the increase.
You bet. And if there's nothing else then that's all you have to consider.
I imagine that as the pressure increases, more and more gas will dissolve into the brine/mud and the pressure will become less extreme. The problem now is that, how fast does this process occur? Is it possible for the liquid to fill the container and just eat up all the gas before the high gas pressure can be registered?
yes. It is a kind of respite until your simple problem goes into existence.
I should point out that my days as a chemist are a very very long time ago now, so my memory of diffusion dynamics are sketchy at best!
You're doing fine.
I can put the question to a 'petroleum engineering' forum, but I thought it would be good to get some ideas that just address the raw science behind it.
I think there should be plenty know-how about this in the industry.