Table of Contents

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 double

The numeric value to construct this quantity with.

unit PressureUnit

The 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

double

Bars

Gets a double value of this quantity converted into Bar

public double Bars { get; }

Property Value

double

BaseUnit

The base unit of Pressure, which is Second. All conversions go via this value.

public static PressureUnit BaseUnit { get; }

Property Value

PressureUnit

Centibars

Gets a double value of this quantity converted into Centibar

public double Centibars { get; }

Property Value

double

CentimetersOfWaterColumn

Gets a double value of this quantity converted into CentimeterOfWaterColumn

public double CentimetersOfWaterColumn { get; }

Property Value

double

Decapascals

Gets a double value of this quantity converted into Decapascal

public double Decapascals { get; }

Property Value

double

Decibars

Gets a double value of this quantity converted into Decibar

public double Decibars { get; }

Property Value

double

DynesPerSquareCentimeter

Gets a double value of this quantity converted into DynePerSquareCentimeter

public double DynesPerSquareCentimeter { get; }

Property Value

double

FeetOfElevation

Gets a double value of this quantity converted into FootOfElevation

public double FeetOfElevation { get; }

Property Value

double

FeetOfHead

Gets a double value of this quantity converted into FootOfHead

public double FeetOfHead { get; }

Property Value

double

Gigapascals

Gets a double value of this quantity converted into Gigapascal

public double Gigapascals { get; }

Property Value

double

Hectopascals

Gets a double value of this quantity converted into Hectopascal

public double Hectopascals { get; }

Property Value

double

InchesOfMercury

Gets a double value of this quantity converted into InchOfMercury

public double InchesOfMercury { get; }

Property Value

double

InchesOfWaterColumn

Gets a double value of this quantity converted into InchOfWaterColumn

public double InchesOfWaterColumn { get; }

Property Value

double

Kilobars

Gets a double value of this quantity converted into Kilobar

public double Kilobars { get; }

Property Value

double

KilogramsForcePerSquareCentimeter

Gets a double value of this quantity converted into KilogramForcePerSquareCentimeter

public double KilogramsForcePerSquareCentimeter { get; }

Property Value

double

KilogramsForcePerSquareMeter

Gets a double value of this quantity converted into KilogramForcePerSquareMeter

public double KilogramsForcePerSquareMeter { get; }

Property Value

double

KilogramsForcePerSquareMillimeter

Gets a double value of this quantity converted into KilogramForcePerSquareMillimeter

public double KilogramsForcePerSquareMillimeter { get; }

Property Value

double

KilonewtonsPerSquareCentimeter

Gets a double value of this quantity converted into KilonewtonPerSquareCentimeter

public double KilonewtonsPerSquareCentimeter { get; }

Property Value

double

KilonewtonsPerSquareMeter

Gets a double value of this quantity converted into KilonewtonPerSquareMeter

public double KilonewtonsPerSquareMeter { get; }

Property Value

double

KilonewtonsPerSquareMillimeter

Gets a double value of this quantity converted into KilonewtonPerSquareMillimeter

public double KilonewtonsPerSquareMillimeter { get; }

Property Value

double

Kilopascals

Gets a double value of this quantity converted into Kilopascal

public double Kilopascals { get; }

Property Value

double

KilopoundsForcePerSquareFoot

Gets a double value of this quantity converted into KilopoundForcePerSquareFoot

public double KilopoundsForcePerSquareFoot { get; }

Property Value

double

KilopoundsForcePerSquareInch

Gets a double value of this quantity converted into KilopoundForcePerSquareInch

public double KilopoundsForcePerSquareInch { get; }

Property Value

double

KilopoundsForcePerSquareMil

Gets a double value of this quantity converted into KilopoundForcePerSquareMil

public double KilopoundsForcePerSquareMil { get; }

Property Value

double

MaxValue

Represents the largest possible value of Pressure.

public static Pressure MaxValue { get; }

Property Value

Pressure

Megabars

Gets a double value of this quantity converted into Megabar

public double Megabars { get; }

Property Value

double

MeganewtonsPerSquareMeter

Gets a double value of this quantity converted into MeganewtonPerSquareMeter

public double MeganewtonsPerSquareMeter { get; }

Property Value

double

Megapascals

Gets a double value of this quantity converted into Megapascal

public double Megapascals { get; }

Property Value

double

MetersOfElevation

Gets a double value of this quantity converted into MeterOfElevation

public double MetersOfElevation { get; }

Property Value

double

MetersOfHead

Gets a double value of this quantity converted into MeterOfHead

public double MetersOfHead { get; }

Property Value

double

MetersOfWaterColumn

Gets a double value of this quantity converted into MeterOfWaterColumn

public double MetersOfWaterColumn { get; }

Property Value

double

Microbars

Gets a double value of this quantity converted into Microbar

public double Microbars { get; }

Property Value

double

Micropascals

Gets a double value of this quantity converted into Micropascal

public double Micropascals { get; }

Property Value

double

Millibars

Gets a double value of this quantity converted into Millibar

public double Millibars { get; }

Property Value

double

MillimetersOfMercury

Gets a double value of this quantity converted into MillimeterOfMercury

public double MillimetersOfMercury { get; }

Property Value

double

MillimetersOfWaterColumn

Gets a double value of this quantity converted into MillimeterOfWaterColumn

public double MillimetersOfWaterColumn { get; }

Property Value

double

Millipascals

Gets a double value of this quantity converted into Millipascal

public double Millipascals { get; }

Property Value

double

MinValue

Represents the smallest possible value of Pressure.

public static Pressure MinValue { get; }

Property Value

Pressure

NewtonsPerSquareCentimeter

Gets a double value of this quantity converted into NewtonPerSquareCentimeter

public double NewtonsPerSquareCentimeter { get; }

Property Value

double

NewtonsPerSquareMeter

Gets a double value of this quantity converted into NewtonPerSquareMeter

public double NewtonsPerSquareMeter { get; }

Property Value

double

NewtonsPerSquareMillimeter

Gets a double value of this quantity converted into NewtonPerSquareMillimeter

public double NewtonsPerSquareMillimeter { get; }

Property Value

double

Pascals

Gets a double value of this quantity converted into Pascal

public double Pascals { get; }

Property Value

double

PoundsForcePerSquareFoot

Gets a double value of this quantity converted into PoundForcePerSquareFoot

public double PoundsForcePerSquareFoot { get; }

Property Value

double

PoundsForcePerSquareInch

Gets a double value of this quantity converted into PoundForcePerSquareInch

public double PoundsForcePerSquareInch { get; }

Property Value

double

PoundsForcePerSquareMil

Gets a double value of this quantity converted into PoundForcePerSquareMil

public double PoundsForcePerSquareMil { get; }

Property Value

double

PoundsPerInchSecondSquared

Gets a double value of this quantity converted into PoundPerInchSecondSquared

public double PoundsPerInchSecondSquared { get; }

Property Value

double

TechnicalAtmospheres

Gets a double value of this quantity converted into TechnicalAtmosphere

public double TechnicalAtmospheres { get; }

Property Value

double

TonnesForcePerSquareCentimeter

Gets a double value of this quantity converted into TonneForcePerSquareCentimeter

public double TonnesForcePerSquareCentimeter { get; }

Property Value

double

TonnesForcePerSquareMeter

Gets a double value of this quantity converted into TonneForcePerSquareMeter

public double TonnesForcePerSquareMeter { get; }

Property Value

double

TonnesForcePerSquareMillimeter

Gets a double value of this quantity converted into TonneForcePerSquareMillimeter

public double TonnesForcePerSquareMillimeter { get; }

Property Value

double

Torrs

Gets a double value of this quantity converted into Torr

public double Torrs { get; }

Property Value

double

Unit

public PressureUnit Unit { get; }

Property Value

PressureUnit

Value

The numeric value this quantity was constructed with.

public double Value { get; }

Property Value

double

Zero

Gets an instance of this quantity with a value of 0 in the base unit Second.

public static Pressure Zero { get; }

Property Value

Pressure

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 double

Value to convert from.

fromUnit PressureUnit

Unit 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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromBars(double)

Creates a Pressure from Bar.

public static Pressure FromBars(double bars)

Parameters

bars double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentibars(double)

Creates a Pressure from Centibar.

public static Pressure FromCentibars(double centibars)

Parameters

centibars double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentimetersOfWaterColumn(double)

public static Pressure FromCentimetersOfWaterColumn(double centimetersofwatercolumn)

Parameters

centimetersofwatercolumn double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDecibars(double)

Creates a Pressure from Decibar.

public static Pressure FromDecibars(double decibars)

Parameters

decibars double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDynesPerSquareCentimeter(double)

public static Pressure FromDynesPerSquareCentimeter(double dynespersquarecentimeter)

Parameters

dynespersquarecentimeter double

Returns

Pressure

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

Pressure

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

Pressure

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

Pressure

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

Pressure

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

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilobars(double)

Creates a Pressure from Kilobar.

public static Pressure FromKilobars(double kilobars)

Parameters

kilobars double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsForcePerSquareCentimeter(double)

public static Pressure FromKilogramsForcePerSquareCentimeter(double kilogramsforcepersquarecentimeter)

Parameters

kilogramsforcepersquarecentimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsForcePerSquareMeter(double)

public static Pressure FromKilogramsForcePerSquareMeter(double kilogramsforcepersquaremeter)

Parameters

kilogramsforcepersquaremeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsForcePerSquareMillimeter(double)

public static Pressure FromKilogramsForcePerSquareMillimeter(double kilogramsforcepersquaremillimeter)

Parameters

kilogramsforcepersquaremillimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilonewtonsPerSquareCentimeter(double)

public static Pressure FromKilonewtonsPerSquareCentimeter(double kilonewtonspersquarecentimeter)

Parameters

kilonewtonspersquarecentimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilonewtonsPerSquareMeter(double)

public static Pressure FromKilonewtonsPerSquareMeter(double kilonewtonspersquaremeter)

Parameters

kilonewtonspersquaremeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilonewtonsPerSquareMillimeter(double)

public static Pressure FromKilonewtonsPerSquareMillimeter(double kilonewtonspersquaremillimeter)

Parameters

kilonewtonspersquaremillimeter double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilopoundsForcePerSquareFoot(double)

public static Pressure FromKilopoundsForcePerSquareFoot(double kilopoundsforcepersquarefoot)

Parameters

kilopoundsforcepersquarefoot double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilopoundsForcePerSquareInch(double)

public static Pressure FromKilopoundsForcePerSquareInch(double kilopoundsforcepersquareinch)

Parameters

kilopoundsforcepersquareinch double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilopoundsForcePerSquareMil(double)

public static Pressure FromKilopoundsForcePerSquareMil(double kilopoundsforcepersquaremil)

Parameters

kilopoundsforcepersquaremil double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMegabars(double)

Creates a Pressure from Megabar.

public static Pressure FromMegabars(double megabars)

Parameters

megabars double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMeganewtonsPerSquareMeter(double)

public static Pressure FromMeganewtonsPerSquareMeter(double meganewtonspersquaremeter)

Parameters

meganewtonspersquaremeter double

Returns

Pressure

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

Pressure

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

Pressure

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

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrobars(double)

Creates a Pressure from Microbar.

public static Pressure FromMicrobars(double microbars)

Parameters

microbars double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMillibars(double)

Creates a Pressure from Millibar.

public static Pressure FromMillibars(double millibars)

Parameters

millibars double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMillimetersOfWaterColumn(double)

public static Pressure FromMillimetersOfWaterColumn(double millimetersofwatercolumn)

Parameters

millimetersofwatercolumn double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNewtonsPerSquareCentimeter(double)

public static Pressure FromNewtonsPerSquareCentimeter(double newtonspersquarecentimeter)

Parameters

newtonspersquarecentimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNewtonsPerSquareMeter(double)

public static Pressure FromNewtonsPerSquareMeter(double newtonspersquaremeter)

Parameters

newtonspersquaremeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNewtonsPerSquareMillimeter(double)

public static Pressure FromNewtonsPerSquareMillimeter(double newtonspersquaremillimeter)

Parameters

newtonspersquaremillimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPascals(double)

Creates a Pressure from Pascal.

public static Pressure FromPascals(double pascals)

Parameters

pascals double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsForcePerSquareFoot(double)

public static Pressure FromPoundsForcePerSquareFoot(double poundsforcepersquarefoot)

Parameters

poundsforcepersquarefoot double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsForcePerSquareInch(double)

public static Pressure FromPoundsForcePerSquareInch(double poundsforcepersquareinch)

Parameters

poundsforcepersquareinch double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsForcePerSquareMil(double)

public static Pressure FromPoundsForcePerSquareMil(double poundsforcepersquaremil)

Parameters

poundsforcepersquaremil double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsPerInchSecondSquared(double)

public static Pressure FromPoundsPerInchSecondSquared(double poundsperinchsecondsquared)

Parameters

poundsperinchsecondsquared double

Returns

Pressure

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

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesForcePerSquareCentimeter(double)

public static Pressure FromTonnesForcePerSquareCentimeter(double tonnesforcepersquarecentimeter)

Parameters

tonnesforcepersquarecentimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesForcePerSquareMeter(double)

public static Pressure FromTonnesForcePerSquareMeter(double tonnesforcepersquaremeter)

Parameters

tonnesforcepersquaremeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesForcePerSquareMillimeter(double)

public static Pressure FromTonnesForcePerSquareMillimeter(double tonnesforcepersquaremillimeter)

Parameters

tonnesforcepersquaremillimeter double

Returns

Pressure

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTorrs(double)

Creates a Pressure from Torr.

public static Pressure FromTorrs(double torrs)

Parameters

torrs double

Returns

Pressure

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.