Skip to content

Free energy amplitude scaling - #670

Merged
buechlerm merged 8 commits into
mainfrom
buechler/hfe_scale
Nov 23, 2026
Merged

buechlerm merged 8 commits into
mainfrom
buechler/hfe_scale

Conversation

@buechlerm

@buechlerm buechlerm commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Yet another eos scaling. In this scaling, a scale factor is applied to the magnitude of a free energy potential (whether the eos exposes such a thing or not). Then carries that scaling through the Maxwell relations and chain rule derivatives to apply the scaling to all thermodynamic properties.

PR Summary

This is a capability requested by some singularity-eos users and is important in further adoption.

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by using the make format command after configuring with cmake.
  • Document any new features, update documentation for changes made.
  • Make sure the copyright notice on any files you modified is up to date.
  • After creating a pull request, note it in the CHANGELOG.md file.
  • LANL employees: make sure tests pass both on the github CI and on the Darwin CI
  • If ML was used, make sure to add a disclaimer at the top of a file indicating ML was used to assist in generating the file.
  • If Agentic AI was used, have the AI generate a "proposed changes" markdown file and store it in the plan_histories folder, with a filename the same as the MR number.

If preparing for a new release, in addition please check the following:

  • Update the version in cmake.
  • Move the changes in the CHANGELOG.md file under a new header for the new release, and reset the categories.
  • Maintainers: ensure spackages are up to date:
    • LANL-internal team, update XCAP spackages
    • Current maintainer of upstream spackages, submit MR to spack

// transformation is valid only while amplitude is positive and fixed with
// respect to thermodynamic derivatives.
template <typename T>
class FreeEnergyAmplitudeScaling : public EosBase<FreeEnergyAmplitudeScaling<T>> {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Descriptive but long. If someone proposed a shorter name, I wouldn't fight it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suppose ScaledFreeEnergy is along the lines of the existing ScaledEOS

@adamdempsey90 adamdempsey90 Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Actually, thinking more about it, we probably do want to use Scaled somewhere in the name to keep with the past tense theme

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, ScaledFreeEnergy it is.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agree with @adamdempsey90 👍

Comment thread CHANGELOG.md Resolved
Comment thread doc/sphinx/src/modifiers.rst Resolved
@Yurlungur

Copy link
Copy Markdown
Collaborator

Merge when ready (and tests pass on re-git)

@buechlerm
buechlerm merged commit 6bbe9cd into main Nov 23, 2026
10 checks passed
@buechlerm
buechlerm deleted the buechler/hfe_scale branch November 23, 2026 19:37
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.

3 participants