Struct Pressure
- Namespace
- UnitsNet
- Assembly
- UnitsNet.Pressure.dll
Pressure (symbol: P or p) is the ratio of force to the area over which that force is distributed. Pressure is force per unit area applied in a direction perpendicular to the surface of an object. Gauge pressure (also spelled gage pressure)[a] is the pressure relative to the local atmospheric or ambient pressure. Pressure is measured in any unit of force divided by any unit of area. The SI unit of pressure is the newton per square metre, which is called the pascal (Pa) after the seventeenth-century philosopher and scientist Blaise Pascal. A pressure of 1 Pa is small; it approximately equals the pressure exerted by a dollar bill resting flat on a table. Everyday pressures are often stated in kilopascals (1 kPa = 1000 Pa).
public struct Pressure
Constructors
Pressure(double, PressureUnit)
Creates the quantity with the given numeric value and unit.
public Pressure(double value, PressureUnit unit)
Parameters
value
doubleThe numeric value to construct this quantity with.
unit
PressureUnitThe unit representation to construct this quantity with.
Exceptions
- ArgumentException
If value is NaN or Infinity.
Properties
Atmospheres
Gets a double value of this quantity converted into Atmosphere
public double Atmospheres { get; }
Property Value
Bars
public double Bars { get; }
Property Value
BaseUnit
The base unit of Pressure, which is Second. All conversions go via this value.
public static PressureUnit BaseUnit { get; }
Property Value
Centibars
public double Centibars { get; }
Property Value
CentimetersOfWaterColumn
Gets a double value of this quantity converted into CentimeterOfWaterColumn
public double CentimetersOfWaterColumn { get; }
Property Value
Decapascals
Gets a double value of this quantity converted into Decapascal
public double Decapascals { get; }
Property Value
Decibars
public double Decibars { get; }
Property Value
DynesPerSquareCentimeter
Gets a double value of this quantity converted into DynePerSquareCentimeter
public double DynesPerSquareCentimeter { get; }
Property Value
FeetOfElevation
Gets a double value of this quantity converted into FootOfElevation
public double FeetOfElevation { get; }
Property Value
FeetOfHead
Gets a double value of this quantity converted into FootOfHead
public double FeetOfHead { get; }
Property Value
Gigapascals
Gets a double value of this quantity converted into Gigapascal
public double Gigapascals { get; }
Property Value
Hectopascals
Gets a double value of this quantity converted into Hectopascal
public double Hectopascals { get; }
Property Value
InchesOfMercury
Gets a double value of this quantity converted into InchOfMercury
public double InchesOfMercury { get; }
Property Value
InchesOfWaterColumn
Gets a double value of this quantity converted into InchOfWaterColumn
public double InchesOfWaterColumn { get; }
Property Value
Kilobars
public double Kilobars { get; }
Property Value
KilogramsForcePerSquareCentimeter
Gets a double value of this quantity converted into KilogramForcePerSquareCentimeter
public double KilogramsForcePerSquareCentimeter { get; }
Property Value
KilogramsForcePerSquareMeter
Gets a double value of this quantity converted into KilogramForcePerSquareMeter
public double KilogramsForcePerSquareMeter { get; }
Property Value
KilogramsForcePerSquareMillimeter
Gets a double value of this quantity converted into KilogramForcePerSquareMillimeter
public double KilogramsForcePerSquareMillimeter { get; }
Property Value
KilonewtonsPerSquareCentimeter
Gets a double value of this quantity converted into KilonewtonPerSquareCentimeter
public double KilonewtonsPerSquareCentimeter { get; }
Property Value
KilonewtonsPerSquareMeter
Gets a double value of this quantity converted into KilonewtonPerSquareMeter
public double KilonewtonsPerSquareMeter { get; }
Property Value
KilonewtonsPerSquareMillimeter
Gets a double value of this quantity converted into KilonewtonPerSquareMillimeter
public double KilonewtonsPerSquareMillimeter { get; }
Property Value
Kilopascals
Gets a double value of this quantity converted into Kilopascal
public double Kilopascals { get; }
Property Value
KilopoundsForcePerSquareFoot
Gets a double value of this quantity converted into KilopoundForcePerSquareFoot
public double KilopoundsForcePerSquareFoot { get; }
Property Value
KilopoundsForcePerSquareInch
Gets a double value of this quantity converted into KilopoundForcePerSquareInch
public double KilopoundsForcePerSquareInch { get; }
Property Value
KilopoundsForcePerSquareMil
Gets a double value of this quantity converted into KilopoundForcePerSquareMil
public double KilopoundsForcePerSquareMil { get; }
Property Value
MaxValue
Represents the largest possible value of Pressure.
public static Pressure MaxValue { get; }
Property Value
Megabars
public double Megabars { get; }
Property Value
MeganewtonsPerSquareMeter
Gets a double value of this quantity converted into MeganewtonPerSquareMeter
public double MeganewtonsPerSquareMeter { get; }
Property Value
Megapascals
Gets a double value of this quantity converted into Megapascal
public double Megapascals { get; }
Property Value
MetersOfElevation
Gets a double value of this quantity converted into MeterOfElevation
public double MetersOfElevation { get; }
Property Value
MetersOfHead
Gets a double value of this quantity converted into MeterOfHead
public double MetersOfHead { get; }
Property Value
MetersOfWaterColumn
Gets a double value of this quantity converted into MeterOfWaterColumn
public double MetersOfWaterColumn { get; }
Property Value
Microbars
public double Microbars { get; }
Property Value
Micropascals
Gets a double value of this quantity converted into Micropascal
public double Micropascals { get; }
Property Value
Millibars
public double Millibars { get; }
Property Value
MillimetersOfMercury
Gets a double value of this quantity converted into MillimeterOfMercury
public double MillimetersOfMercury { get; }
Property Value
MillimetersOfWaterColumn
Gets a double value of this quantity converted into MillimeterOfWaterColumn
public double MillimetersOfWaterColumn { get; }
Property Value
Millipascals
Gets a double value of this quantity converted into Millipascal
public double Millipascals { get; }
Property Value
MinValue
Represents the smallest possible value of Pressure.
public static Pressure MinValue { get; }
Property Value
NewtonsPerSquareCentimeter
Gets a double value of this quantity converted into NewtonPerSquareCentimeter
public double NewtonsPerSquareCentimeter { get; }
Property Value
NewtonsPerSquareMeter
Gets a double value of this quantity converted into NewtonPerSquareMeter
public double NewtonsPerSquareMeter { get; }
Property Value
NewtonsPerSquareMillimeter
Gets a double value of this quantity converted into NewtonPerSquareMillimeter
public double NewtonsPerSquareMillimeter { get; }
Property Value
Pascals
public double Pascals { get; }
Property Value
PoundsForcePerSquareFoot
Gets a double value of this quantity converted into PoundForcePerSquareFoot
public double PoundsForcePerSquareFoot { get; }
Property Value
PoundsForcePerSquareInch
Gets a double value of this quantity converted into PoundForcePerSquareInch
public double PoundsForcePerSquareInch { get; }
Property Value
PoundsForcePerSquareMil
Gets a double value of this quantity converted into PoundForcePerSquareMil
public double PoundsForcePerSquareMil { get; }
Property Value
PoundsPerInchSecondSquared
Gets a double value of this quantity converted into PoundPerInchSecondSquared
public double PoundsPerInchSecondSquared { get; }
Property Value
TechnicalAtmospheres
Gets a double value of this quantity converted into TechnicalAtmosphere
public double TechnicalAtmospheres { get; }
Property Value
TonnesForcePerSquareCentimeter
Gets a double value of this quantity converted into TonneForcePerSquareCentimeter
public double TonnesForcePerSquareCentimeter { get; }
Property Value
TonnesForcePerSquareMeter
Gets a double value of this quantity converted into TonneForcePerSquareMeter
public double TonnesForcePerSquareMeter { get; }
Property Value
TonnesForcePerSquareMillimeter
Gets a double value of this quantity converted into TonneForcePerSquareMillimeter
public double TonnesForcePerSquareMillimeter { get; }
Property Value
Torrs
public double Torrs { get; }
Property Value
Unit
public PressureUnit Unit { get; }
Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }
Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static Pressure Zero { get; }
Property Value
Methods
As(PressureUnit)
Convert to the unit representation unit
.
public double As(PressureUnit unit)
Parameters
unit
PressureUnit
Returns
- double
Value converted to the specified unit.
From(double, PressureUnit)
Dynamically convert from value and unit enum PressureUnit to Pressure.
public static Pressure From(double value, PressureUnit fromUnit)
Parameters
value
doubleValue to convert from.
fromUnit
PressureUnitUnit to convert from.
Returns
- Pressure
Pressure unit value.
FromAtmospheres(double)
Creates a Pressure from Atmosphere.
public static Pressure FromAtmospheres(double atmospheres)
Parameters
atmospheres
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromBars(double)
public static Pressure FromBars(double bars)
Parameters
bars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentibars(double)
public static Pressure FromCentibars(double centibars)
Parameters
centibars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentimetersOfWaterColumn(double)
Creates a Pressure from CentimeterOfWaterColumn.
public static Pressure FromCentimetersOfWaterColumn(double centimetersofwatercolumn)
Parameters
centimetersofwatercolumn
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecapascals(double)
Creates a Pressure from Decapascal.
public static Pressure FromDecapascals(double decapascals)
Parameters
decapascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecibars(double)
public static Pressure FromDecibars(double decibars)
Parameters
decibars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDynesPerSquareCentimeter(double)
Creates a Pressure from DynePerSquareCentimeter.
public static Pressure FromDynesPerSquareCentimeter(double dynespersquarecentimeter)
Parameters
dynespersquarecentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromFeetOfElevation(double)
Creates a Pressure from FootOfElevation.
public static Pressure FromFeetOfElevation(double feetofelevation)
Parameters
feetofelevation
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromFeetOfHead(double)
Creates a Pressure from FootOfHead.
public static Pressure FromFeetOfHead(double feetofhead)
Parameters
feetofhead
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGigapascals(double)
Creates a Pressure from Gigapascal.
public static Pressure FromGigapascals(double gigapascals)
Parameters
gigapascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromHectopascals(double)
Creates a Pressure from Hectopascal.
public static Pressure FromHectopascals(double hectopascals)
Parameters
hectopascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromInchesOfMercury(double)
Creates a Pressure from InchOfMercury.
public static Pressure FromInchesOfMercury(double inchesofmercury)
Parameters
inchesofmercury
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromInchesOfWaterColumn(double)
Creates a Pressure from InchOfWaterColumn.
public static Pressure FromInchesOfWaterColumn(double inchesofwatercolumn)
Parameters
inchesofwatercolumn
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilobars(double)
public static Pressure FromKilobars(double kilobars)
Parameters
kilobars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsForcePerSquareCentimeter(double)
Creates a Pressure from KilogramForcePerSquareCentimeter.
public static Pressure FromKilogramsForcePerSquareCentimeter(double kilogramsforcepersquarecentimeter)
Parameters
kilogramsforcepersquarecentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsForcePerSquareMeter(double)
Creates a Pressure from KilogramForcePerSquareMeter.
public static Pressure FromKilogramsForcePerSquareMeter(double kilogramsforcepersquaremeter)
Parameters
kilogramsforcepersquaremeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsForcePerSquareMillimeter(double)
Creates a Pressure from KilogramForcePerSquareMillimeter.
public static Pressure FromKilogramsForcePerSquareMillimeter(double kilogramsforcepersquaremillimeter)
Parameters
kilogramsforcepersquaremillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilonewtonsPerSquareCentimeter(double)
Creates a Pressure from KilonewtonPerSquareCentimeter.
public static Pressure FromKilonewtonsPerSquareCentimeter(double kilonewtonspersquarecentimeter)
Parameters
kilonewtonspersquarecentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilonewtonsPerSquareMeter(double)
Creates a Pressure from KilonewtonPerSquareMeter.
public static Pressure FromKilonewtonsPerSquareMeter(double kilonewtonspersquaremeter)
Parameters
kilonewtonspersquaremeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilonewtonsPerSquareMillimeter(double)
Creates a Pressure from KilonewtonPerSquareMillimeter.
public static Pressure FromKilonewtonsPerSquareMillimeter(double kilonewtonspersquaremillimeter)
Parameters
kilonewtonspersquaremillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopascals(double)
Creates a Pressure from Kilopascal.
public static Pressure FromKilopascals(double kilopascals)
Parameters
kilopascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopoundsForcePerSquareFoot(double)
Creates a Pressure from KilopoundForcePerSquareFoot.
public static Pressure FromKilopoundsForcePerSquareFoot(double kilopoundsforcepersquarefoot)
Parameters
kilopoundsforcepersquarefoot
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopoundsForcePerSquareInch(double)
Creates a Pressure from KilopoundForcePerSquareInch.
public static Pressure FromKilopoundsForcePerSquareInch(double kilopoundsforcepersquareinch)
Parameters
kilopoundsforcepersquareinch
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopoundsForcePerSquareMil(double)
Creates a Pressure from KilopoundForcePerSquareMil.
public static Pressure FromKilopoundsForcePerSquareMil(double kilopoundsforcepersquaremil)
Parameters
kilopoundsforcepersquaremil
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMegabars(double)
public static Pressure FromMegabars(double megabars)
Parameters
megabars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMeganewtonsPerSquareMeter(double)
Creates a Pressure from MeganewtonPerSquareMeter.
public static Pressure FromMeganewtonsPerSquareMeter(double meganewtonspersquaremeter)
Parameters
meganewtonspersquaremeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMegapascals(double)
Creates a Pressure from Megapascal.
public static Pressure FromMegapascals(double megapascals)
Parameters
megapascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMetersOfElevation(double)
Creates a Pressure from MeterOfElevation.
public static Pressure FromMetersOfElevation(double metersofelevation)
Parameters
metersofelevation
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMetersOfHead(double)
Creates a Pressure from MeterOfHead.
public static Pressure FromMetersOfHead(double metersofhead)
Parameters
metersofhead
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMetersOfWaterColumn(double)
Creates a Pressure from MeterOfWaterColumn.
public static Pressure FromMetersOfWaterColumn(double metersofwatercolumn)
Parameters
metersofwatercolumn
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrobars(double)
public static Pressure FromMicrobars(double microbars)
Parameters
microbars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicropascals(double)
Creates a Pressure from Micropascal.
public static Pressure FromMicropascals(double micropascals)
Parameters
micropascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillibars(double)
public static Pressure FromMillibars(double millibars)
Parameters
millibars
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillimetersOfMercury(double)
Creates a Pressure from MillimeterOfMercury.
public static Pressure FromMillimetersOfMercury(double millimetersofmercury)
Parameters
millimetersofmercury
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillimetersOfWaterColumn(double)
Creates a Pressure from MillimeterOfWaterColumn.
public static Pressure FromMillimetersOfWaterColumn(double millimetersofwatercolumn)
Parameters
millimetersofwatercolumn
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillipascals(double)
Creates a Pressure from Millipascal.
public static Pressure FromMillipascals(double millipascals)
Parameters
millipascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNewtonsPerSquareCentimeter(double)
Creates a Pressure from NewtonPerSquareCentimeter.
public static Pressure FromNewtonsPerSquareCentimeter(double newtonspersquarecentimeter)
Parameters
newtonspersquarecentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNewtonsPerSquareMeter(double)
Creates a Pressure from NewtonPerSquareMeter.
public static Pressure FromNewtonsPerSquareMeter(double newtonspersquaremeter)
Parameters
newtonspersquaremeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNewtonsPerSquareMillimeter(double)
Creates a Pressure from NewtonPerSquareMillimeter.
public static Pressure FromNewtonsPerSquareMillimeter(double newtonspersquaremillimeter)
Parameters
newtonspersquaremillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPascals(double)
public static Pressure FromPascals(double pascals)
Parameters
pascals
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsForcePerSquareFoot(double)
Creates a Pressure from PoundForcePerSquareFoot.
public static Pressure FromPoundsForcePerSquareFoot(double poundsforcepersquarefoot)
Parameters
poundsforcepersquarefoot
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsForcePerSquareInch(double)
Creates a Pressure from PoundForcePerSquareInch.
public static Pressure FromPoundsForcePerSquareInch(double poundsforcepersquareinch)
Parameters
poundsforcepersquareinch
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsForcePerSquareMil(double)
Creates a Pressure from PoundForcePerSquareMil.
public static Pressure FromPoundsForcePerSquareMil(double poundsforcepersquaremil)
Parameters
poundsforcepersquaremil
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsPerInchSecondSquared(double)
Creates a Pressure from PoundPerInchSecondSquared.
public static Pressure FromPoundsPerInchSecondSquared(double poundsperinchsecondsquared)
Parameters
poundsperinchsecondsquared
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTechnicalAtmospheres(double)
Creates a Pressure from TechnicalAtmosphere.
public static Pressure FromTechnicalAtmospheres(double technicalatmospheres)
Parameters
technicalatmospheres
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesForcePerSquareCentimeter(double)
Creates a Pressure from TonneForcePerSquareCentimeter.
public static Pressure FromTonnesForcePerSquareCentimeter(double tonnesforcepersquarecentimeter)
Parameters
tonnesforcepersquarecentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesForcePerSquareMeter(double)
Creates a Pressure from TonneForcePerSquareMeter.
public static Pressure FromTonnesForcePerSquareMeter(double tonnesforcepersquaremeter)
Parameters
tonnesforcepersquaremeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesForcePerSquareMillimeter(double)
Creates a Pressure from TonneForcePerSquareMillimeter.
public static Pressure FromTonnesForcePerSquareMillimeter(double tonnesforcepersquaremillimeter)
Parameters
tonnesforcepersquaremillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTorrs(double)
public static Pressure FromTorrs(double torrs)
Parameters
torrs
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
ToUnit(PressureUnit)
Converts this Pressure to another Pressure with the unit representation unit
.
public Pressure ToUnit(PressureUnit unit)
Parameters
unit
PressureUnit
Returns
- Pressure
A Pressure with the specified unit.