Skip to content

Commit

Permalink
Add operators for ReciprocalLength/-Area (v6) (#1385)
Browse files Browse the repository at this point in the history
Added additional operators that result in ReciprocalLength (Length/Area,
Area/Volume) and ReciprocalArea (Length/Volume)

(Mirrors functionality of v5 PR #1382)

---------

Co-authored-by: Travis Bement <U001TB7@exelonds.com>
Co-authored-by: Andreas Gullberg Larsen <andreas.larsen84@gmail.com>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent b9b4365 commit 3f71f26
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Common/UnitRelations.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"Angle.Radian = RotationalSpeed.RadianPerSecond * Duration.Second",
"Area.SquareMeter = KinematicViscosity.SquareMeterPerSecond * Duration.Second",
"Area.SquareMeter = Length.Meter * Length.Meter",
"Area.SquareMeter = Volume.CubicMeter * ReciprocalLength.InverseMeter",
"AreaMomentOfInertia.MeterToTheFourth = Volume.CubicMeter * Length.Meter",
"double = Density.KilogramPerCubicMeter * SpecificVolume.CubicMeterPerKilogram",
"double = SpecificEnergy.JoulePerKilogram * BrakeSpecificFuelConsumption.KilogramPerJoule",
Expand All @@ -30,7 +31,9 @@
"ForcePerLength.NewtonPerMeter = Pressure.NewtonPerSquareMeter * Length.Meter",
"ForcePerLength.NewtonPerMeter = SpecificWeight.NewtonPerCubicMeter * Area.SquareMeter",
"KinematicViscosity.SquareMeterPerSecond = Length.Meter * Speed.MeterPerSecond",
"Length.Meter = Area.SquareMeter * ReciprocalLength.InverseMeter",
"Length.Meter = Speed.MeterPerSecond * Duration.Second",
"Length.Meter = Volume.CubicMeter * ReciprocalArea.InverseSquareMeter",
"LinearDensity.KilogramPerMeter = Area.SquareMeter * Density.KilogramPerCubicMeter",
"LuminousIntensity.Candela = Luminance.CandelaPerSquareMeter * Area.SquareMeter",
"Mass.Gram = AmountOfSubstance.Mole * MolarMass.GramPerMole",
Expand Down
21 changes: 21 additions & 0 deletions UnitsNet/GeneratedCode/Quantities/Area.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions UnitsNet/GeneratedCode/Quantities/Length.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions UnitsNet/GeneratedCode/Quantities/Volume.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f71f26

Please sign in to comment.