Skip to content

Add back enthalpy of vaporization and mixing estimation - #219

Draft
mattwthompson wants to merge 14 commits into
merge-thermo-energyfrom
more-targets-in-mvp
Draft

mattwthompson wants to merge 14 commits into
merge-thermo-energyfrom
more-targets-in-mvp

Conversation

@mattwthompson

Copy link
Copy Markdown
Member

Description

  • Add back enthalpy of vaporization calculation
  • Add back enthalpy of mixing calculation

Checklist

mattwthompson and others added 12 commits October 28, 2026 12:32
* Add AI policy

* Fix license link for contributed code

Updated license link for contributed code in AI_POLICY.md.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Update LLM use disclosure policy wording

Clarified language regarding LLM use disclosure in policies.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Bumps [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/prefix-dev/setup-pixi/releases)
- [Commits](prefix-dev/setup-pixi@v0.11.2...v0.11.3)

---
updated-dependencies:
- dependency-name: prefix-dev/setup-pixi
  dependency-version: 0.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@mattwthompson mattwthompson changed the title More targets in mvp Add back enthalpy of vaporization and mixing estimation Nov 10, 2026
Comment on lines +236 to +258

print(
f"Enthalpy of vaporization calculation: {gas_energy=}, {liquid_energy=}, "
f"{n_molecules=}, {R=}, {gas_config['temperature']=}"
)

# Enthalpy of vaporization calculation:
# gas_energy=tensor(1308.0884, dtype=torch.float64),
# liquid_energy=tensor(386691.8175, dtype=torch.float64),
# n_molecules=240,
# R=0.00831446261815324,
# gas_config['temperature']=300.0
#
# Enthalpy of vaporization calculation:
# gas_energy=tensor(1300.6276, dtype=torch.float64),
# liquid_energy=tensor(385886.6263, dtype=torch.float64),
# n_molecules=240,
# R=0.00831446261815324,
# gas_config['temperature']=300.0

dhvap = gas_energy - liquid_energy / n_molecules + R * gas_config["temperature"] # kJ/mol

values.append(dhvap)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Something is probably wrong here but I can't figure it out tonight

Comment on lines +55 to +56
# _y_pred=tensor([-302.6861], dtype=torch.float64),
# _y_pred_std=tensor([2.9033], dtype=torch.float64)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The reference value is around 38.3 kJ/mol, so something is going (wildly) off here

@mattwthompson
mattwthompson added this pull request to stack #221 November 10, 2026 17:28
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 39.70588% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.71%. Comparing base (8de767f) to head (eef3380).
⚠️ Report is 10 commits behind head on merge-thermo-energy.

Files with missing lines Patch % Lines
tyff/targets/new_thermo.py 2.98% 65 Missing ⚠️
tyff/compute/_produce.py 14.28% 6 Missing ⚠️
tyff/compute/_equilibrate.py 20.00% 4 Missing ⚠️
tyff/molecule.py 89.65% 3 Missing ⚠️
tyff/compute/_minimize.py 60.00% 2 Missing ⚠️
tyff/compute/workflow.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           merge-thermo-energy     #219      +/-   ##
=======================================================
- Coverage                82.36%   81.71%   -0.65%     
=======================================================
  Files                       58       59       +1     
  Lines                     5295     5375      +80     
=======================================================
+ Hits                      4361     4392      +31     
- Misses                     934      983      +49     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

For example: OpenCL is not available on most Linux runners, so it should be
skipped over when falling back through CUDA -> ... -> CPU platforms
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