Skip to content

Add documentation pages on the models - #48

Merged
brosaplanella merged 7 commits into
mainfrom
docs-model-pages
Oct 31, 2026
Merged

brosaplanella merged 7 commits into
mainfrom
docs-model-pages

Conversation

@brosaplanella

@brosaplanella brosaplanella commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A new Models section in the documentation:

  • Models (docs/models/index.md): what every model shares: how a model is built from submodels, the fluid equation, the enthalpy method (the melting-range form of H(T) and the liquid fraction), the surface flux law and the heat transfer coefficient options, resolved or averaged storage along the flow path, and power, energy and the initial state.
  • Finned tube (docs/models/finned_tube.md): the device and the storage around one tube, a table of symbols and parameter names, the sharp-front model (composite properties, radial conduction, the wall condition) and the mush model (the PCM across the half-gap, the fin equation with its PCM source, the d_m / d_c factor at the fin root), and the options.
  • Packed bed (docs/models/packed_bed.md): the column and one capsule, spherical conduction and the coupling q' = a A h_c (T_s - T_f), lumped and Jeffreson capsules, the Wakao-Kaguei option and the parameter sets.

The pages are illustrated with seven diagrams drawn in TikZ (docs/models/diagrams/), sharing a preamble with the PyTES colours as material fills. The SVGs built from them (text as paths, so no fonts needed) are committed, so Read the Docs builds without TeX. python docs/models/diagrams/build.py [name] rebuilds them, and CONTRIBUTING explains how. The diagrams sit on a light card in both themes, opted out of the theme's dark-mode dimming.

Notes for review

  • The equations are taken from the submodels' code and docstrings. The mush coupling (signs, the 2 / d_c source in the fin and the d_m / d_c factor at the root) is the easiest place to slip, so it deserves a careful look.
  • The references for the origin of the sharp-front and mush models are missing: there is a hidden % TODO(maintainer) at the end of finned_tube.md.
  • Notebook links (added later): the finned-tube and packed-bed notebooks link to their model page; mentions of another notebook are links; each capability notebook points to the tutorial that introduces its subject; the tutorials link to each other and end with a link to the next one. Links between notebooks are relative, so they work in the docs, on GitHub and in Jupyter; the links to the model pages go to https://pytes.readthedocs.io/en/latest/models/…, live once this merges.
  • Stacked on Add a series of getting started tutorials #47 (the model pages link to the tutorials). GitHub retargets this PR to main when Add a series of getting started tutorials #47 merges.

Checks

🤖 Generated with Claude Code

brosaplanella and others added 2 commits October 30, 2026 20:22
A new Models section: what every model shares (the submodels, the fluid, the
enthalpy method, the surface flux law, resolved or averaged storage along the
flow path, power and energy), and a page for each family, the finned tube and
the packed bed, with the geometry, the equations and the options.

The pages are illustrated with diagrams drawn in TikZ, in
docs/models/diagrams/, sharing a preamble with the PyTES colours. The SVGs
built from them are committed, so the site builds without TeX; build.py
rebuilds them, and CONTRIBUTING explains how.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brosaplanella and others added 2 commits October 31, 2026 11:21
The finned-tube and packed-bed notebooks link to their model page, with
the sketches. Mentions of another notebook become links, each capability
notebook points to the tutorial that introduces its subject, and
Tutorials 2 to 5 end with a link to the next one. Tutorial 1 points to
the next notebook for the finned-tube model.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The list of tutorials, the pointer to the next notebook and the closing
sentence become links, and the notebook ends with a link to Tutorial 2,
as the others do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from getting-started-tutorials to main October 31, 2026 12:57
brosaplanella and others added 3 commits October 31, 2026 13:18
Cite Luckins and Brosa Planella (2025) for the finned-tube models, and
Brosa Planella (2025) and Ismail and Henríquez (2002) for the packed bed.
Move the mush diagram's labels inside the PCM and use stronger tints of
the PyTES Thermal colours in every diagram.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brosaplanella
brosaplanella merged commit 7279c19 into main Oct 31, 2026
18 checks passed
@brosaplanella
brosaplanella deleted the docs-model-pages branch October 31, 2026 16:26
@brosaplanella brosaplanella mentioned this pull request Nov 2, 2026
2 tasks done
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.

1 participant