FluidProperties 1.0.0
dotnet add package FluidProperties --version 1.0.0
NuGet\Install-Package FluidProperties -Version 1.0.0
<PackageReference Include="FluidProperties" Version="1.0.0" />
paket add FluidProperties --version 1.0.0
#r "nuget: FluidProperties, 1.0.0"
// Install FluidProperties as a Cake Addin
#addin nuget:?package=FluidProperties&version=1.0.0
// Install FluidProperties as a Cake Tool
#tool nuget:?package=FluidProperties&version=1.0.0
About Package
The FliuidProperties package aid and facilitates developers to execute calculations based on fluid properties inside their project. It employs fundamental properties such as force, weight, mass, etc to simplify accounting for properties such as density(mass and weight), specific weight, specific gravity, specific volume, and viscosity(dynamic and kinematic) of fluids.
Target Language
C#, F# and Visual Basic
Version
version 1.0.0
Prerequisites
Basic understanding of .NET NuGet packages, c#, and Visual Studio(Optional)
Getting Started With the Package
There are more than one(1) ways to start using the FluidProperties package
- Using the .NET CLI
- Using Visual Studio
Using the .NET CLI
To install this package using the .NET CLI, run the following code:
dotnet add package FluidProperties --version 1.0.0
Installation using Visual Studio
- Right-click on Project dependencies
- Select Nuget Packages Manager
- Click on Browse to search FliuidProperties
- Finally click on install.
How to use
This package contains multiple methods that are able to calculate different properties of a fluid
To calculate the Density
Hint: mass should be in kg and volume should be in m³
using PropertiesOfFluids.DensityAndSG
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var Density = CalculateFluidProperty.GetDensity(double mass, double volume)
Console.Writeline(Density);
}
}
}
To calculate Weight Density
Hint: mass should be in kN and volume should be in m³
using PropertiesOfFluids.DensityAndSG
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var WetDensity = CalculateFluidProperty.GetWeightDensity(double mass, double volume)
Console.Writeline(WetDensity);
}
}
}
To calculate Specific weight
Hint: mass should be in kN and volume should be in m³
using PropertiesOfFluids.DensityAndSG
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var SpecificWeight = CalculateFluidProperty.GetSpecificWeight(double mass, double volume)
Console.Writeline(SpecificWeight);
}
}
}
To calculate Specific gravity
Hint: mass should be in kN and volume should be in m³
using PropertiesOfFluids.DensityAndSG
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var SpecificGravity = CalculateFluidProperty.GetSpecificGravity(double mass, double volume)
Console.Writeline(SpecificWeight);
}
}
}
To calculate Specific volume
Hint: mass should be in kN and volume should be in m³
using PropertiesOfFluids.DensityAndSG
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var SpecificGravity = CalculateFluidProperty.GetSpecificVolume(double mass, double volume)
Console.Writeline(SpecificWeight);
}
}
}
To calculate Dynamic Viscosity
Hint: velocity should be in m/s thickness in mm and other vector parameters in m²
using PropertiesOfFluids.Viscosity
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var dynamicViscosity = CalculateFluidProperty.DynamicViscosity(double force, double area, double VelocityOfUpper, double VelocityOfLower, double thickness)
Console.Writeline(dynamicViscosity);
}
}
}
To calculate Kinematic Viscosity
Hint: velocity should be in m/s thickness in mm and other vector parameters in m²
using PropertiesOfFluids.Viscosity
namespace UsingFluidPropertiesPackage
{
internal class Program
{
static void Main(string[] args)
{
var kinematicViscosity = CalculateFluidProperty.KinematicViscosity(double force, double area, double VelocityOfUpper, double VelocityOfLower, double thickness, double specificgravity)
Console.Writeline(kinematicViscosity);
}
}
}
Contibutions
Contributions, complaints, and other feedback will be appreciated.
Product | Versions 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. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- No dependencies.
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 |
---|---|---|
1.0.0 | 180 | 1/17/2023 |