We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3898bae commit 47efde9Copy full SHA for 47efde9
src/neqsim/thermo/thermoTools.py
@@ -432,8 +432,15 @@ def fluid_df(
432
definedComponentsFrame["MolarComposition[-]"].tolist(),
433
)
434
else:
435
+ # When only pseudo components exist, create an empty base fluid
436
fluid7 = fluid("srk")
- if not TBPComponentsFrame.equals(reservoirFluiddf) and TBPComponentsFrame.size > 0:
437
+
438
+ # Check if we have TBP/pseudo components to add (components with MolarMass)
439
+ hasTBPComponents = (
440
+ "MolarMass[kg/mol]" in reservoirFluiddf
441
+ and TBPComponentsFrame.size > 0
442
+ )
443
+ if hasTBPComponents:
444
addOilFractions(
445
fluid7,
446
TBPComponentsFrame["ComponentName"].tolist(),
0 commit comments