Skip to content

Commit

Permalink
More updates (#322)
Browse files Browse the repository at this point in the history
* Update some docs and add a few more conversions from the standards

* move most definitions to brace initialization

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
phlptp and pre-commit-ci[bot] authored Nov 16, 2023
1 parent a767d36 commit 15aa1fe
Show file tree
Hide file tree
Showing 2 changed files with 281 additions and 290 deletions.
8 changes: 4 additions & 4 deletions docs/user-guide/equation_units.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Current equation definitions
- 13: 20*log10(x)
- 14: log10(x)/log10(3)
- 15: 0.5*ln(x)
- 16: UNDEFINED
- 17: UNDEFINED
- 18: UNDEFINED
- 16: API Gravity
- 17: Degree Baume Light
- 18: Degree Baume Heavy
- 19: UNDEFINED
- 20: UNDEFINED
- 21: UNDEFINED
Expand All @@ -46,7 +46,7 @@ Current equation definitions


The wind scales are not very accurate since they match up a slightly fuzzier notion to actual wind speed. There are general charts and the equations in use utilize a polynomial to approximate them to a continuous scale. So the units when used are generally convertible to a velocity unit such as m/s. There are currently 10 undefined equation units available if needed.

The density scales (API Gravity, Degree Baume Heavy and Light ) are based on handbook definitions at typical temperature scales. A few more like this might be added in the near future.
Equation Value conversions
-----------------------------
The actual definitions of the equations are found in the `unit::precise::equation` namespace. Two functions are provided that convert values from equation values to units and vice versa.
Expand Down
Loading

0 comments on commit 15aa1fe

Please sign in to comment.