Lyo.Scientific.Functions 2.0.0

dotnet add package Lyo.Scientific.Functions --version 2.0.0
                    
NuGet\Install-Package Lyo.Scientific.Functions -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lyo.Scientific.Functions" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Scientific.Functions" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Scientific.Functions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.Scientific.Functions --version 2.0.0
                    
#r "nuget: Lyo.Scientific.Functions, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lyo.Scientific.Functions@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.Scientific.Functions&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Scientific.Functions&version=2.0.0
                    
Install as a Cake Tool

Lyo.Scientific.Functions

F# formulas for chemistry, orbital mechanics, thermodynamics, fluid and compressible flow, rigid-body style mechanics, and solid mechanics — built on Lyo.Scientific models and Lyo.Mathematics quantities.

Target frameworks: netstandard2.0, net10.0

Dependencies


Calling from C#

using Lyo.Mathematics;
using Lyo.Scientific.Engineering;
using Lyo.Scientific.Functions;

var balanced = ChemistryFunctions.BalanceReaction(new[] { "CH4", "O2" }, new[] { "CO2", "H2O" });
var shock = CompressibleFlowFunctions.ObliqueShock(new ObliqueShockInput(2.0, Angle.FromDegrees(40), 1.4));
var life = SolidMechanicsFunctions.FatigueLifeCycles(
    new SNCurveInput(Pressure.FromPascals(250e6), 900e6, -0.12));

Discovery: ScientificFormulaRegistry.All in Lyo.Scientific.


ChemistryFunctions

Member Summary
AllElements / AllIsotopes Arrays from PeriodicTable / Isotopes.Common.
GetElementByAtomicNumber / GetElementBySymbol / GetElementByName Lookup or throw.
GetIsotopesBySymbol Filtered isotope array.
ParseFormula Parses formula string (incl. parentheses) to structured parts.
MolarMass Grams per mole from formula string.
MolesFromMass / MassFromMoles Stoichiometry helpers.
StoichiometricMassRatio Mass ratio between formulas given balanced stoichiometry assumption.
BalanceReaction(string[] reactants, string[] products) Integer coefficients; string array overload.
BalanceReaction(ChemicalReaction) Record overload.
StoichiometricProductMass Product mass from reactant mass + balanced result.

AstronomyFunctions

Member Summary
AllPlanetaryBodies PlanetaryBodies.All as array.
GetPlanetaryBodyByName Case-insensitive.
SurfaceGravity / EscapeVelocity / OrbitalCircumference From PlanetaryBody.
OrbitalVelocity / OrbitalPeriod Mass + Length (circular-orbit style helpers).
SurfaceFlux / EquilibriumTemperature Radiation sketches from luminosity, distance, albedo.
DistanceInAstronomicalUnits / DistanceFromAstronomicalUnits Length ↔ AU.
ApparentFluxFromLuminosity Inverse-square flux scaling.
GetStarByName / GetMoonByName / GetExoplanetByName / GetAsteroidByName / GetCometByName Catalog lookups.
PeriapsisDistance / ApoapsisDistance From OrbitalElements.
MeanMotion From central mass + elements.
SemiMajorAxisFromPeriod Kepler-related conversion.
LuminosityRatioFromMagnitudeDifference / MagnitudeDifferenceFromLuminosityRatio Log flux ratios.
AbsoluteMagnitudeFromLuminosity / ApparentMagnitudeFromFlux Magnitude conventions.

ThermodynamicsFunctions

Member Summary
HeatEnergy HeatTransferInput.
ConductionRate ConductionInput.
ThermalExpansion ThermalExpansionInput.
CarnotEfficiency Two reservoir temperatures.
EntropyChange (Q/T) style helper.
InternalEnergyChange Idealized degrees-of-freedom model.
SpeedOfSoundIdealGas From (T), (\gamma), molar mass.
ConvectiveHeatTransferRate ConvectiveHeatTransferInput.
RadiativeHeatTransferRate RadiativeHeatTransferInput.
HeatExchanger HeatExchangerInput effectiveness-NTU style helper.
PrandtlNumber From (c_p), (\mu), (k).
GrashofNumber NaturalConvectionInput.
NusseltDittusBoelter / HeatTransferCoefficientFromNusselt ConvectionCorrelationInput.
RadiationExchangeRate RadiationExchangeInput.

FluidDynamicsFunctions

Member Summary
ReynoldsNumber ReynoldsNumberInput.
DynamicPressure (\frac{1}{2}\rho v^2).
VolumetricFlowRate / VelocityFromFlowRate Duct relations.
DragForce DragForceInput.
BuoyantForce BuoyancyInput.
DarcyWeisbachPressureDrop PipeFlowInput.
BernoulliTotalPressure Static + dynamic head.
MachNumber Velocity / speed of sound.

CompressibleFlowFunctions

Member Summary
StaticTemperature / StaticPressure CompressibleFlowInput isentropic relations.
ChokedMassFlowRate NozzleFlowInput + throat Area.
NozzleExitVelocity Exit speed from nozzle input.
NozzleFlow Mass flow + exit velocity tuple-style result.
IsentropicAreaMachRatio Area–Mach relation for given (\gamma).
SolveMachFromAreaRatio Subsonic vs supersonic branch flag.
DownstreamMachNormalShock / PressureRatioNormalShock / TemperatureRatioNormalShock NormalShockInput.
ObliqueShock ObliqueShockInputObliqueShockResult.

MechanicsFunctions

Member Summary
MomentOfInertiaSolidCylinder / MomentOfInertiaSolidSphere RotationalInertiaInput.
MomentOfInertiaRodAboutCenter Thin rod, center axis.
RotationalKineticEnergy RotationalEnergyInput.
AngularMomentum AngularMomentumInput.
SpringOscillationPeriod SpringOscillatorInput.
PendulumPeriod Small-angle style PendulumInput.
MechanicalAdvantage Force ratio.

SolidMechanicsFunctions

Member Summary
NormalStress / NormalStrain / YoungsModulus StressStrainInput.
HookeExtension Axial deformation from force/geometry/modulus.
CantileverEndDeflection BeamBendingInput (simple cantilever model).
BeamBendingStress BeamBendingInput and overload with BeamSectionProfile.
CriticalFractureStress FractureInput.
FactorOfSafety Allowable vs applied stress.
RectangularAreaMomentOfInertia / CircularAreaMomentOfInertia Section properties.
RectangularSectionModulus Elastic section modulus.
GoodmanFactorOfSafety FatigueInput (Goodman criterion).
FatigueLifeCycles SNCurveInput (Basquin-style exponent model).
FatigueDamageFraction Miner-style damage ratio from cycles.

Repository

GitHub Repository

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 91 9/9/2026
1.0.13 102 8/25/2026
1.0.11 100 8/23/2026
1.0.9 103 8/22/2026
1.0.6 98 8/20/2026
1.0.4 100 8/20/2026
1.0.3 95 8/19/2026
1.0.2 95 8/19/2026
1.0.1 97 8/18/2026
1.0.0 107 8/16/2026