https://github.com/100prznt/rca.physical
Library to handle physical values, dimensions and units.
https://github.com/100prznt/rca.physical
physical physics units
Last synced: 11 months ago
JSON representation
Library to handle physical values, dimensions and units.
- Host: GitHub
- URL: https://github.com/100prznt/rca.physical
- Owner: 100prznt
- License: mit
- Created: 2023-02-23T15:24:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T14:38:41.000Z (over 2 years ago)
- Last Synced: 2025-06-09T01:33:34.227Z (about 1 year ago)
- Topics: physical, physics, units
- Language: C#
- Homepage:
- Size: 266 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: SupportedUnits.csv
Awesome Lists containing this project
README
[](https://ci.appveyor.com/project/100prznt/rca-physical) [](https://www.nuget.org/packages/Rca.Physical/) [](#) [](https://www.nuget.org/packages/Rca.Physical/)
# Rca.Physical
Library to handle physical values, dimensions and units.
## Core Features
* Basic calculation with physical values
## Usage
```csharp
//Use the helper classes, are provided for each physical dimension.
PhysicalValue myVoltageValue = Voltage.FromMillivolt(7410);
//Use the PhysicalValue constructor and select the unit from the common Units-Enum
PhysicalValue myCurrentValue = new(0.147, PhysicalUnits.Ampere);
//Use the overloaded ToString() method, to print out the value
Console.WriteLine(myVoltageValue);
//Fit the value to the best unit, and print in out with ToString(), also
Console.WriteLine(myCurrentValue.GetFittedPhysicalValue());
// The example displays the following output to the console:
// 7410 mV
// 147 mA
```
## Credits
This library is made possible by contributions from:
* [Elias Rümmler](http://www.100prznt.de) ([@rmmlr](https://github.com/rmmlr)) - core contributor
## License
Rca.Physical is licensed under [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form"). Refer to [LICENSE](https://github.com/100prznt/Rca.Physical/blob/master/LICENSE) for more information.
## Contributions
Contributions are welcome. Fork this repository and send a pull request if you have something useful to add.
## Related Projects
* [Rca.Physical.If97](https://github.com/100prznt/Rca.Physical.If97) - Property library for water and steam according to the industrial formulation IAPWS-IF97.