PT_surface_special method for multicomponent mixtures throws an error: AttributeError: 'PR78MIX' object has no attribute 'Tc'
I looked into it, and it seems that the PT_surface_special method in the GCEOS pure cubic equation of state base class makes a call to the method P_PIP_transition, which as the first line checks whether the temperature argument is below self.Tc. Which for a mixture, this value does not appear to ever be set. I imagine that as part of the init method of the mixture class, would be a call to simply set self.Tc and self.Pc to the pseudo_Tc and pseudo_Pc values. The PR78MIX derived class for example sets self.Tcs and self.Pcs, but never sets self.Tc and self.Pc using those pseduo critical value methods.
A minimal example to reproduce the error is below.
PT_surface_special method for multicomponent mixtures throws an error: AttributeError: 'PR78MIX' object has no attribute 'Tc'
I looked into it, and it seems that the PT_surface_special method in the GCEOS pure cubic equation of state base class makes a call to the method P_PIP_transition, which as the first line checks whether the temperature argument is below self.Tc. Which for a mixture, this value does not appear to ever be set. I imagine that as part of the init method of the mixture class, would be a call to simply set self.Tc and self.Pc to the pseudo_Tc and pseudo_Pc values. The PR78MIX derived class for example sets self.Tcs and self.Pcs, but never sets self.Tc and self.Pc using those pseduo critical value methods.
A minimal example to reproduce the error is below.