Project Description
PhysicalMeasure is a C# library for handling physical quantities by specifing value and unit. Scaling of units and conversions between multiple unit systems are supported.

Concept

This library is the C# implementation of the concepts of system of physical units. eg. as found on Wikipedia: http://en.wikipedia.org/wiki/International_System_of_Units.

Requries .NET framework 4.0.

It can be used to represent and handle physical measures and calculations of physical properties.

Examples

For example like this

using PhysicalMeasure;

public void CalculateEnergyIn1Gram()
{
   PhysicalQuantity m = new PhysicalQuantity(0.001, SI.kg);
   PhysicalQuantity c = new PhysicalQuantity(299792458, SI.m / SI.s);

   PhysicalQuantity E = m * c.Pow(2);

   PhysicalQuantity expected = new PhysicalQuantity(0.001 * 299792458 * 299792458, SI.J);
   Assert.AreEqual(expected, E);
}

PhysCalc console application

PhysCalc is a calculator using PhysicalMeasure to evaluate physical expressions.

Links

Additional information from Wikipedia on physical quantities and units:
- Physical quantity
- Units of measurement

Additional information from Wikipedia on SI units that I have covered in this library:
- SI base units
- SI derived units
- SI unit prefixes

Other .Net libraries and utilities related to unit conversion
- List of .Net libraries and utilities related to unit conversion

Last edited Oct 25 at 10:54 AM by KiloBravo, version 20