![]() |
VOOZH | about |
dotnet add package ChemSharp.UnitConversion --version 2.1.1
NuGet\Install-Package ChemSharp.UnitConversion -Version 2.1.1
<PackageReference Include="ChemSharp.UnitConversion" Version="2.1.1" />
<PackageVersion Include="ChemSharp.UnitConversion" Version="2.1.1" />Directory.Packages.props
<PackageReference Include="ChemSharp.UnitConversion" />Project file
paket add ChemSharp.UnitConversion --version 2.1.1
#r "nuget: ChemSharp.UnitConversion, 2.1.1"
#:package ChemSharp.UnitConversion@2.1.1
#addin nuget:?package=ChemSharp.UnitConversion&version=2.1.1Install as a Cake Addin
#tool nuget:?package=ChemSharp.UnitConversion&version=2.1.1Install as a Cake Tool
<p align="center"> <img src="https://raw.githubusercontent.com/JensKrumsieck/ChemSharp/master/icon.png" height="125px" /></p> <h1 align="center" >ChemSharp.UnitConversion</h1>
Use given Converter:
//create converter instance (energy)
var converter = new EnergyUnitConverter("nm", "cm^-1");
//convert using Convert or ConvertInverted
var wavenumbers = converter.Convert(500) / 1000;
var nanometers = converter.ConvertInverted(50000) * 1000
Create own Converter EnergyUnitConverter:
namespace ChemSharp.UnitConversion
{
public class EnergyUnitConverter : AbstractUnitConverter
{
public EnergyUnitConverter(string from, string to) : base(from, to)
{
AddConversion("J", 1);
AddConversion("eV", Constants.ElectronCharge);
AddConversion("kJ/mol", 1000 / Constants.Avogadro);
AddConversion("cal", 4.184);
AddConversion("kcal/mol", 4184 / Constants.Avogadro);
AddConversion("hartree", Constants.Hartree);
AddConversion("cm^-1", Constants.Planck * Constants.SpeedOfLight * 100);
AddConversion("Hz", Constants.Planck);
AddConversion("Kelvin", Constants.Boltzmann);
AddConversion("nm", new MappedFunction()
{
Function = i => Constants.Planck * Constants.SpeedOfLight / (i * 1e-9),
Reciprocal = true
});
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.1.1 | 367 | 2/19/2024 | |
| 2.1.0 | 370 | 7/31/2023 | |
| 2.0.1 | 325 | 6/20/2023 | |
| 2.0.0 | 416 | 3/1/2023 | |
| 2.0.0-beta.1 | 272 | 12/1/2022 | |
| 2.0.0-alpha.3 | 281 | 9/13/2022 | |
| 2.0.0-alpha.2 | 271 | 9/5/2022 | |
| 2.0.0-alpha.1 | 268 | 9/2/2022 | |
| 1.1.0-beta.2 | 367 | 7/26/2022 | 1.1.0-beta.2 is deprecated because it has critical bugs. |
| 1.1.0-beta.1 | 403 | 5/16/2022 | 1.1.0-beta.1 is deprecated because it has critical bugs. |
| 1.0.15 | 739 | 1/27/2022 | |
| 1.0.14 | 675 | 1/24/2022 | |
| 1.0.13 | 541 | 12/5/2021 | |
| 1.0.12 | 546 | 12/5/2021 | |
| 1.0.11 | 3,229 | 11/25/2021 | |
| 1.0.10 | 583 | 8/6/2021 | |
| 1.0.9 | 616 | 7/2/2021 | |
| 1.0.8 | 610 | 6/18/2021 | |
| 1.0.7 | 634 | 6/16/2021 | |
| 1.0.6 | 523 | 5/20/2021 |