Skip to content

[TH2M/PTM] get molar mas of water before vapour pressure is called.

I apologise in advance for the extra work this MR entails. I think I made a mistake with my IdealGaslawBinaryMixture property (MR-3945). It was supposed to allow a general case, but now it is not only unnecessarily complicated but also not as general as I had hoped.

What I actually need is only a small modification of the existing IdealGasLaw property. In this case, I would need the derivatives of the molar mass, practically simply by passing the values via VariableArray.

I didn't want to use the existing IdealGasLaw property for this because it's not quite intuitive to use it for derivatives. In the VariableArray there is now only one additional index, namely molar_mass_derivative. This can be used for all derivations of the molar mass, depending on which is needed. To avoid conflicts or unintentional mismatching, I decided to keep the additional property IdealGasLawBinaryMixture (even though its functionality could easily be mapped with IdealGasLaw).

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?

Merge request reports