Hello Matt,
That is a good question!
The canonical ordering in MRST is WOG, so whenever you encounter saturations or injection phase composition, it refers to this ordering. This is straightforward for the three-phase case since all phases are present, but when phases are missing from the model it becomes more complicated. By convention, phases absent from the model are skipped over. Filling out your table:
Olav
Hello again Matt,
You are of course correct about my typo. Gas injection for three phase should be [0 0 1]!
For your follow up results I think it can be explained by how MRST thinks about well controls.
In this example, the injector is set to 'rate' control. This means that there is a constant injection rate measured in volume at reference conditions. What are the reference conditions in this case? The surface densities are set to 10 kg/m^3 for gas/vapor phase and 800 kg/m^3 for the oil/liquid phase. This is a conceptual example, so these values are just set to fairly arbitrary values instead of flashing at e.g. separator PVT conditions.
This means that the same injection rate with comp_i set to [0, 1, 0] will inject 80 times as much mass as [0, 0, 1] with the same components array. I think this explains the very different simulation results. If the surface densities for oil and gas are equal, you will get identical results. We maintain the two different fields because not all fluids are compositional and we might extend this behavior in the future (one possibility would be working with energy balances, where the energy of phase transitions in the near-well region come into play).
For the well equation, with fixed rates, this relation is only used to find the BHP values (which do not affect the simulation itself for rate controls with no limits).
Regards,
Olav
Hi Matt,
There's one more part to the expression that might be relevant:
rate = - composition * (total_mobility) * WI * (P_cell - bhp
- cdp)
where cdp is the pressure drop model within the well bore, that depends on the densities. But this should also be initialized equally if you have the same surface densities.
Could you supply your modified script so I can take a look?
Regards,
Olav
To unsubscribe from this group and stop receiving emails from it, send an email to sintef-mrst+unsubscribe@googlegroups.com.
Hi Matt,
Sorry for the late follow-up. I have run your modified scripts and observe the same discrepancy. I think my previous statements were a bit off with respect to injectors on BHP.
MRST calculates the volumetric rates of the injector based on the pressure at the bhp, and the reservoir pressure itself. This leads to a volumetric rate at the reservoir conditions of each perforated cell. The amount of mass in this injection stream is calculated according to the densities in the reservoir. For compositional models, there is always both a vapor and a liquid density that differ when both phases are present. In this case, you will therefore get different results with different comp_i.
When bhp is used for producers (which is the most typical case), this treatment should be correct. For injectors, however, it is a little bit strange since the densities used does not account for the well-bore composition. I think the safest way of specifying injection is to inject with fixed rates which should be converted to masses. I will consider how the injection density should be considered for compositional problems and try to fix this for a future release - for the time being, I think it is a bug.
Thank you for the bug report and script!
Cheers,
Olav
To view this discussion on the web visit https://groups.google.com/d/msgid/sintef-mrst/b7b8f5f9-414e-4b10-8d78-13df8007121c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.