Base: Added Quantities for Optic/Chemical mechanics (#27944)

* Base: Added Quantities for Optic/Chemical mechanics

* [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>
This commit is contained in:
PeterfoxUwU
2026-03-07 21:10:40 +01:00
committed by GitHub
co-authored by pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent 1027be1efa
commit ecb188fe4c
14 changed files with 6699 additions and 7064 deletions
+2
View File
@@ -102,6 +102,7 @@ constexpr auto unitSpecs = std::to_array<UnitSpec>({
{ "VacuumPermittivity" , { -3, -1, 4, 2 } },
{ "Velocity" , { 1, 0, -1 } },
{ "Volume" , { 3 } },
{ "Concentration" , { -3, 0, 0, 0, 0, 1 } },
{ "VolumeChargeDensity" , { -3, 0, 1, 1 } },
{ "VolumeFlowRate" , { 3, 0, -1 } },
{ "VolumetricThermalExpansionCoefficient" , { 0, 0, 0, 0, -1 } },
@@ -327,6 +328,7 @@ constexpr Unit Unit::Angle = make("Angle"
constexpr Unit Unit::Acceleration = make("Acceleration" );
constexpr Unit Unit::AngleOfFriction = make("Angle" );
constexpr Unit Unit::Area = make("Area" );
constexpr Unit Unit::Concentration = make("Concentration" );
constexpr Unit Unit::CompressiveStrength = make("Pressure" );
constexpr Unit Unit::CurrentDensity = make("CurrentDensity" );
constexpr Unit Unit::Density = make("Density" );