Skip to content

Correct heat transfer coefficient unit in docstring#1969

Merged
ischoegl merged 1 commit intoCantera:mainfrom
mruijzendaal:patch-2
Sep 8, 2025
Merged

Correct heat transfer coefficient unit in docstring#1969
ischoegl merged 1 commit intoCantera:mainfrom
mruijzendaal:patch-2

Conversation

@mruijzendaal
Copy link
Copy Markdown
Contributor

The C++ documentation specifies that param U is actually of unit [W/m^2/K].

The current Python documentation of the calculation of the heat transfer q [W/m^2] involves U * deltaT, with deltaT of unit [K], also implying U is of unit [W/m^2/K].

From some practical experience, it seems that the current Python documentation is inaccurate with respect to U. I could not find any other references to U in the cantera or cantera-website repositories, so I'm assuming the documentation is generated from the python docstrings. If that's the case, this edit should fix the issues.

Changes proposed in this pull request

  • Fix unit of heat transfer coefficient U in Python docstring of the ct.Wall class.

If applicable, fill in the issue number this pull request is fixing

Didn't create an issue for this. Would you prefer if I create issues for minor fixes like these in the future?

If applicable, provide an example illustrating new features this pull request is introducing

See the current docs and

:param U:
Overall heat transfer coefficient [W/m^2]. Defaults to 0.0
(adiabatic wall).

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

The [C++ documentation](https://cantera.org/dev/cxx/db/d1e/classCantera_1_1Wall.html) specifies that param U is actually of unit [W/m^2/K].

The [current Python documentation](https://cantera.org/dev/python/zerodim.html#walls) of the calculation of the heat transfer q [W/m^2] involves U * deltaT, with deltaT of unit [K], also implying U is of unit [W/m^2/K].

From some practical experience, it seems that the current Python documentation is inaccurate with respect to U. I could not find any other references to U in the `cantera` or `cantera-website` repositories, so I'm assuming the documentation is generated from the python docstrings. If that's the case, this edit should fix the issues.
@ischoegl ischoegl merged commit ba8d45c into Cantera:main Sep 8, 2025
51 checks passed
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.

2 participants