Update docs of tabular back-ends for mixture utilization by fwitte · Pull Request #3239 · CoolProp/CoolProp · GitHub
Skip to content

Update docs of tabular back-ends for mixture utilization#3239

Open
fwitte wants to merge 2 commits into
CoolProp:masterfrom
fwitte:docs/#3236-tabular-backend-mixtures
Open

Update docs of tabular back-ends for mixture utilization#3239
fwitte wants to merge 2 commits into
CoolProp:masterfrom
fwitte:docs/#3236-tabular-backend-mixtures

Conversation

@fwitte

@fwitte fwitte commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Resolve #3236

Summary by CodeRabbit

  • Documentation
    • Expanded tabular interpolation docs to include the SVDSBTL backend alongside BICUBIC and TTSE.
    • Added guidance for using tabular backends with mixtures, including setting mole fractions before the first update and converting from mass fractions when needed.
    • Clarified how cached table folders are named and where mixture table files are stored.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Comment thread Web/coolprop/Tabular.rst

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commited this trailing white-space removal on accident. Are these white-spaces intended? If yes I can readd again

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
Web/coolprop/Tabular.rst (1)

7-15: 🎯 Functional Correctness | 🟠 Major | ⚖️ Poor tradeoff

Clarify SVDSBTL's pure-fluid-only limitation in the backend overview.

The documentation at line 11 presents SVDSBTL as a third general tabular backend alongside BICUBIC and TTSE, but the upstream factory code (src/AbstractState.cpp:252-267) enforces that "SVDSBTL backend is pure-fluid only; expected exactly one fluid name". This creates a misleading impression that SVDSBTL supports mixtures, which directly contradicts the new Mixtures section below and will confuse users trying to apply the mixture workflow to SVDSBTL.

Add a qualifier at line 11 or in the seealso note that SVDSBTL is pure-fluid only and not applicable to mixtures. The Mixtures section should also explicitly note that SVDSBTL does not support mixtures.

📝 Proposed clarification

At line 11, revise to:

-There are three backends implemented for tabular interpolation, ``BICUBIC``, ``TTSE`` and ``SVDSBTL``.  ``BICUBIC`` and ``TTSE`` consume the same gridded tabular data that is stored to your user home directory in the folder ``HOME/.CoolProp/Tables``.
+There are three backends implemented for tabular interpolation, ``BICUBIC``, ``TTSE`` and ``SVDSBTL``.  ``BICUBIC`` and ``TTSE`` support both pure fluids and mixtures and consume the same gridded tabular data that is stored to your user home directory in the folder ``HOME/.CoolProp/Tables``.  ``SVDSBTL`` is pure-fluid only.

And in the Mixtures section (around line 232), add:

 Tabular backends work with multi-component mixtures. The workflow differs from
 pure fluids in two ways:
+
+.. note::
+    SVDSBTL does not support mixtures; use ``BICUBIC`` or ``TTSE`` instead.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Web/coolprop/Tabular.rst` around lines 7 - 15, Clarify the tabular backend
overview in Tabular.rst by explicitly stating that SVDSBTL is pure-fluid only
and cannot be used with mixtures, since the backend selection logic in
AbstractState enforces a single fluid name; update the sentence listing BICUBIC,
TTSE, and SVDSBTL to add this qualifier, and also add the same limitation to the
Mixtures section so users do not assume SVDSBTL applies there.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@Web/coolprop/Tabular.rst`:
- Around line 7-15: Clarify the tabular backend overview in Tabular.rst by
explicitly stating that SVDSBTL is pure-fluid only and cannot be used with
mixtures, since the backend selection logic in AbstractState enforces a single
fluid name; update the sentence listing BICUBIC, TTSE, and SVDSBTL to add this
qualifier, and also add the same limitation to the Mixtures section so users do
not assume SVDSBTL applies there.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 13540f43-45eb-4574-bba3-ba1587bb16c1

📥 Commits

Reviewing files that changed from the base of the PR and between 24e1dd0 and ff3d91d.

📒 Files selected for processing (1)
  • Web/coolprop/Tabular.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ISSUE] The tabular back-end documentation does not mention how to build mixtures

1 participant