Skip to content

Universal Physical Constants#804

Draft
kdorheim wants to merge 4 commits intodevfrom
physical_constants
Draft

Universal Physical Constants#804
kdorheim wants to merge 4 commits intodevfrom
physical_constants

Conversation

@kdorheim
Copy link
Copy Markdown
Contributor

This is take 2 at implementing consistent physical constants across hector components based on Ben's feedback to #801. We have added a physical_constants.hpp file where physical constants used across hector components are defined.

So far I have only implemented the change for the CH4 component & seeking feedback if this is the way we would like to continue.

Copy link
Copy Markdown
Member

@bpbond bpbond left a comment

Choose a reason for hiding this comment

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

This looks exactly right to me @kdorheim ! It makes huge sense to centralize things in a physical constants header file.


// The number of moles in the atmosphere
constexpr double ATMOSPHERE_MOL = 1.727e20;
constexpr double CH4_molarMass = 16.043;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Change to ALL CAPS for consistency?

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