ome-common  5.5.0
pressure.h
Go to the documentation of this file.
1 /*
2  * #%L
3  * OME-COMMON C++ library for C++ compatibility/portability
4  * %%
5  * Copyright © 2015 Open Microscopy Environment:
6  * - Massachusetts Institute of Technology
7  * - National Institutes of Health
8  * - University of Dundee
9  * - Board of Regents of the University of Wisconsin-Madison
10  * - Glencoe Software, Inc.
11  * %%
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions are met:
14  *
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  *
33  * The views and conclusions contained in the software and documentation are
34  * those of the authors and should not be interpreted as representing official
35  * policies, either expressed or implied, of any organization.
36  * #L%
37  */
38 
47 #ifndef OME_COMMON_UNITS_PRESSURE_H
48 #define OME_COMMON_UNITS_PRESSURE_H
49 
50 #include <ome/common/config.h>
51 #include <ome/common/units/types.h>
52 
53 #include <boost/units/base_units/metric/bar.hpp>
54 #include <boost/units/base_units/metric/atmosphere.hpp>
55 #include <boost/units/base_units/metric/torr.hpp>
56 #include <boost/units/base_units/metric/mmHg.hpp>
57 #include <boost/units/unit.hpp>
58 #include <boost/units/quantity.hpp>
59 #include <boost/units/systems/si.hpp>
60 
61 #ifdef _MSC_VER
62 #pragma push_macro("pascal")
63 #undef pascal
64 #endif
65 
66 namespace ome
67 {
68  namespace common
69  {
70  namespace units
71  {
72 
73  // Pressure types, constants and quantities.
74 
76  typedef si::pressure pressure_unit;
78  typedef quantity<si::pressure> pressure_quantity;
79 
81  typedef make_scaled_unit<si::pressure,scale<10,static_rational<-24>>>::type yoctopascal_unit;
83  typedef make_scaled_unit<si::pressure,scale<10,static_rational<-21>>>::type zeptopascal_unit;
85  typedef make_scaled_unit<si::pressure,scale<10,static_rational<-18>>>::type attopascal_unit;
87  typedef make_scaled_unit<si::pressure,scale<10,static_rational<-15>>>::type femtopascal_unit;
89  typedef make_scaled_unit<si::pressure,scale<10,static_rational<-12>>>::type picopascal_unit;
91  typedef make_scaled_unit<si::pressure,scale<10,static_rational< -9>>>::type nanopascal_unit;
93  typedef make_scaled_unit<si::pressure,scale<10,static_rational< -6>>>::type micropascal_unit;
95  typedef make_scaled_unit<si::pressure,scale<10,static_rational< -3>>>::type millipascal_unit;
97  typedef make_scaled_unit<si::pressure,scale<10,static_rational< -2>>>::type centipascal_unit;
99  typedef make_scaled_unit<si::pressure,scale<10,static_rational< -1>>>::type decipascal_unit;
101  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 0>>>::type pascal_unit;
103  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 1>>>::type dekapascal_unit;
105  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 1>>>::type decapascal_unit;
107  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 2>>>::type hectopascal_unit;
109  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 3>>>::type kilopascal_unit;
111  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 6>>>::type megapascal_unit;
113  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 9>>>::type gigapascal_unit;
115  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 12>>>::type terapascal_unit;
117  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 15>>>::type petapascal_unit;
119  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 18>>>::type exapascal_unit;
121  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 21>>>::type zettapascal_unit;
123  typedef make_scaled_unit<si::pressure,scale<10,static_rational< 24>>>::type yottapascal_unit;
124 
126  BOOST_UNITS_STATIC_CONSTANT(yoctopascal, yoctopascal_unit);
128  BOOST_UNITS_STATIC_CONSTANT(zeptopascal, zeptopascal_unit);
130  BOOST_UNITS_STATIC_CONSTANT(attopascal, attopascal_unit);
132  BOOST_UNITS_STATIC_CONSTANT(femtopascal, femtopascal_unit);
134  BOOST_UNITS_STATIC_CONSTANT(picopascal, picopascal_unit);
136  BOOST_UNITS_STATIC_CONSTANT(nanopascal, nanopascal_unit);
138  BOOST_UNITS_STATIC_CONSTANT(micropascal, micropascal_unit);
140  BOOST_UNITS_STATIC_CONSTANT(millipascal, millipascal_unit);
142  BOOST_UNITS_STATIC_CONSTANT(centipascal, centipascal_unit);
144  BOOST_UNITS_STATIC_CONSTANT(decipascal, decipascal_unit);
146  BOOST_UNITS_STATIC_CONSTANT(pascal, pascal_unit);
148  BOOST_UNITS_STATIC_CONSTANT(dekapascal, dekapascal_unit);
150  BOOST_UNITS_STATIC_CONSTANT(decapascal, decapascal_unit);
152  BOOST_UNITS_STATIC_CONSTANT(hectopascal, hectopascal_unit);
154  BOOST_UNITS_STATIC_CONSTANT(kilopascal, kilopascal_unit);
156  BOOST_UNITS_STATIC_CONSTANT(megapascal, megapascal_unit);
158  BOOST_UNITS_STATIC_CONSTANT(gigapascal, gigapascal_unit);
160  BOOST_UNITS_STATIC_CONSTANT(terapascal, terapascal_unit);
162  BOOST_UNITS_STATIC_CONSTANT(petapascal, petapascal_unit);
164  BOOST_UNITS_STATIC_CONSTANT(exapascal, exapascal_unit);
166  BOOST_UNITS_STATIC_CONSTANT(zettapascal, zettapascal_unit);
168  BOOST_UNITS_STATIC_CONSTANT(yottapascal, yottapascal_unit);
169 
171  BOOST_UNITS_STATIC_CONSTANT(yoctopascals, yoctopascal_unit);
173  BOOST_UNITS_STATIC_CONSTANT(zeptopascals, zeptopascal_unit);
175  BOOST_UNITS_STATIC_CONSTANT(attopascals, attopascal_unit);
177  BOOST_UNITS_STATIC_CONSTANT(femtopascals, femtopascal_unit);
179  BOOST_UNITS_STATIC_CONSTANT(picopascals, picopascal_unit);
181  BOOST_UNITS_STATIC_CONSTANT(nanopascals, nanopascal_unit);
183  BOOST_UNITS_STATIC_CONSTANT(micropascals, micropascal_unit);
185  BOOST_UNITS_STATIC_CONSTANT(millipascals, millipascal_unit);
187  BOOST_UNITS_STATIC_CONSTANT(centipascals, centipascal_unit);
189  BOOST_UNITS_STATIC_CONSTANT(decipascals, decipascal_unit);
191  BOOST_UNITS_STATIC_CONSTANT(pascals, pascal_unit);
193  BOOST_UNITS_STATIC_CONSTANT(dekapascals, dekapascal_unit);
195  BOOST_UNITS_STATIC_CONSTANT(decapascals, decapascal_unit);
197  BOOST_UNITS_STATIC_CONSTANT(hectopascals, hectopascal_unit);
199  BOOST_UNITS_STATIC_CONSTANT(kilopascals, kilopascal_unit);
201  BOOST_UNITS_STATIC_CONSTANT(megapascals, megapascal_unit);
203  BOOST_UNITS_STATIC_CONSTANT(gigapascals, gigapascal_unit);
205  BOOST_UNITS_STATIC_CONSTANT(terapascals, terapascal_unit);
207  BOOST_UNITS_STATIC_CONSTANT(petapascals, petapascal_unit);
209  BOOST_UNITS_STATIC_CONSTANT(exapascals, exapascal_unit);
211  BOOST_UNITS_STATIC_CONSTANT(zettapascals, zettapascal_unit);
213  BOOST_UNITS_STATIC_CONSTANT(yottapascals, yottapascal_unit);
214 
216  typedef quantity<yoctopascal_unit> yoctopascal_quantity;
218  typedef quantity<zeptopascal_unit> zeptopascal_quantity;
220  typedef quantity<attopascal_unit> attopascal_quantity;
222  typedef quantity<femtopascal_unit> femtopascal_quantity;
224  typedef quantity<picopascal_unit> picopascal_quantity;
226  typedef quantity<nanopascal_unit> nanopascal_quantity;
228  typedef quantity<micropascal_unit> micropascal_quantity;
230  typedef quantity<millipascal_unit> millipascal_quantity;
232  typedef quantity<centipascal_unit> centipascal_quantity;
234  typedef quantity<decipascal_unit> decipascal_quantity;
236  typedef quantity<pascal_unit> pascal_quantity;
238  typedef quantity<dekapascal_unit> dekapascal_quantity;
240  typedef quantity<decapascal_unit> decapascal_quantity;
242  typedef quantity<hectopascal_unit> hectopascal_quantity;
244  typedef quantity<kilopascal_unit> kilopascal_quantity;
246  typedef quantity<megapascal_unit> megapascal_quantity;
248  typedef quantity<gigapascal_unit> gigapascal_quantity;
250  typedef quantity<terapascal_unit> terapascal_quantity;
252  typedef quantity<petapascal_unit> petapascal_quantity;
254  typedef quantity<exapascal_unit> exapascal_quantity;
256  typedef quantity<zettapascal_unit> zettapascal_quantity;
258  typedef quantity<yottapascal_unit> yottapascal_quantity;
259 
261  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -3>>>::unit_type millibar_unit;
263  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -2>>>::unit_type centibar_unit;
265  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -1>>>::unit_type decibar_unit;
267  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 0>>>::unit_type bar_unit;
269  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 1>>>::unit_type dekabar_unit;
271  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 1>>>::unit_type decabar_unit;
273  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 2>>>::unit_type hectobar_unit;
275  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 3>>>::unit_type kilobar_unit;
277  typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 6>>>::unit_type megabar_unit;
278 
280  BOOST_UNITS_STATIC_CONSTANT(millibar, millibar_unit);
282  BOOST_UNITS_STATIC_CONSTANT(centibar, centibar_unit);
284  BOOST_UNITS_STATIC_CONSTANT(decibar, decibar_unit);
286  BOOST_UNITS_STATIC_CONSTANT(bar, bar_unit);
288  BOOST_UNITS_STATIC_CONSTANT(dekabar, dekabar_unit);
290  BOOST_UNITS_STATIC_CONSTANT(decabar, decabar_unit);
292  BOOST_UNITS_STATIC_CONSTANT(hectobar, hectobar_unit);
294  BOOST_UNITS_STATIC_CONSTANT(kilobar, kilobar_unit);
296  BOOST_UNITS_STATIC_CONSTANT(megabar, megabar_unit);
297 
299  BOOST_UNITS_STATIC_CONSTANT(millibars, millibar_unit);
301  BOOST_UNITS_STATIC_CONSTANT(centibars, centibar_unit);
303  BOOST_UNITS_STATIC_CONSTANT(decibars, decibar_unit);
305  BOOST_UNITS_STATIC_CONSTANT(bars, bar_unit);
307  BOOST_UNITS_STATIC_CONSTANT(dekabars, dekabar_unit);
309  BOOST_UNITS_STATIC_CONSTANT(decabars, decabar_unit);
311  BOOST_UNITS_STATIC_CONSTANT(hectobars, hectobar_unit);
313  BOOST_UNITS_STATIC_CONSTANT(kilobars, kilobar_unit);
315  BOOST_UNITS_STATIC_CONSTANT(megabars, megabar_unit);
316 
318  typedef quantity<millibar_unit> millibar_quantity;
320  typedef quantity<centibar_unit> centibar_quantity;
322  typedef quantity<decibar_unit> decibar_quantity;
324  typedef quantity<bar_unit> bar_quantity;
326  typedef quantity<dekabar_unit> dekabar_quantity;
328  typedef quantity<decabar_unit> decabar_quantity;
330  typedef quantity<hectobar_unit> hectobar_quantity;
332  typedef quantity<kilobar_unit> kilobar_quantity;
334  typedef quantity<megabar_unit> megabar_quantity;
335 
337  typedef boost::units::metric::atmosphere_base_unit::unit_type atmosphere_unit;
339  BOOST_UNITS_STATIC_CONSTANT(atmosphere, atmosphere_unit);
341  BOOST_UNITS_STATIC_CONSTANT(atmospheres, atmosphere_unit);
343  typedef quantity<atmosphere_unit> atmosphere_quantity;
344 
346  struct psi_base_unit : boost::units::base_unit<psi_base_unit,
347  boost::units::pressure_dimension, 3> { };
349  typedef psi_base_unit::unit_type psi_unit;
351  BOOST_UNITS_STATIC_CONSTANT(psi, psi_unit);
353  typedef quantity<psi_unit> psi_quantity;
354 
356  typedef boost::units::metric::torr_base_unit::unit_type torr_unit;
358  BOOST_UNITS_STATIC_CONSTANT(torr, torr_unit);
360  typedef quantity<torr_unit> torr_quantity;
361 
363  typedef scaled_base_unit<boost::units::metric::torr_base_unit,scale<10,static_rational< -3>>>::unit_type millitorr_unit;
365  BOOST_UNITS_STATIC_CONSTANT(millitorr, millitorr_unit);
367  typedef quantity<millitorr_unit> millitorr_quantity;
368 
370  typedef boost::units::metric::mmHg_base_unit::unit_type mmHg_unit;
372  BOOST_UNITS_STATIC_CONSTANT(mmHg, mmHg_unit);
374  typedef quantity<mmHg_unit> mmHg_quantity;
375 
376  }
377  }
378 }
379 
381 // Conversion factor for pound-force per square inch (psi) to pascal.
382 BOOST_UNITS_DEFINE_CONVERSION_FACTOR(ome::common::units::psi_base_unit, si::pressure, double, 6894.7573); // exact conversion
383 // Default conversion for pound-force per square inch (psi) to is to SI pressure units (pascals).
384 BOOST_UNITS_DEFAULT_CONVERSION(ome::common::units::psi_base_unit, si::pressure);
386 
387 namespace boost
388 {
389  namespace units
390  {
391 
393  template<> struct base_unit_info<ome::common::units::psi_base_unit>
394  {
399  static std::string name() { return "pound-force per square inch"; }
404  static std::string symbol() { return "lbf/in^2"; }
405  };
406 
407  }
408 }
409 
410 #ifdef _MSC_VER
411 #pragma pop_macro("pascal")
412 #endif
413 
414 #endif // OME_COMMON_UNITS_PRESSURE_H
415 
416 /*
417  * Local Variables:
418  * mode:C++
419  * End:
420  */
quantity< atmosphere_unit > atmosphere_quantity
Measured quantity in atmospheres.
Definition: pressure.h:343
BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit)
Numeric constant for radian.
make_scaled_unit< si::pressure, scale< 10, static_rational<-18 > > >::type attopascal_unit
Unit definition for attopascal pressure.
Definition: pressure.h:85
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type dekapascal_unit
Unit definition for dekapascal pressure.
Definition: pressure.h:103
boost::units::metric::mmHg_base_unit::unit_type mmHg_unit
Unit definition for mmHg pressure.
Definition: pressure.h:370
make_scaled_unit< si::pressure, scale< 10, static_rational< 18 > > >::type exapascal_unit
Unit definition for exapascal pressure.
Definition: pressure.h:119
make_scaled_unit< si::pressure, scale< 10, static_rational< 24 > > >::type yottapascal_unit
Unit definition for yottapascal pressure.
Definition: pressure.h:123
make_scaled_unit< si::pressure, scale< 10, static_rational< -3 > > >::type millipascal_unit
Unit definition for millipascal pressure.
Definition: pressure.h:95
quantity< mmHg_unit > mmHg_quantity
Measured quantity in mmHg.
Definition: pressure.h:374
quantity< femtopascal_unit > femtopascal_quantity
Measured quantity in femtopascals.
Definition: pressure.h:222
Base unit for pound-force per square inch (psi) pressure.
Definition: pressure.h:346
Definition: length.h:576
quantity< hectopascal_unit > hectopascal_quantity
Measured quantity in hectopascals.
Definition: pressure.h:242
quantity< dekabar_unit > dekabar_quantity
Measured quantity in dekabars.
Definition: pressure.h:326
quantity< kilopascal_unit > kilopascal_quantity
Measured quantity in kilopascals.
Definition: pressure.h:244
make_scaled_unit< si::pressure, scale< 10, static_rational<-15 > > >::type femtopascal_unit
Unit definition for femtopascal pressure.
Definition: pressure.h:87
make_scaled_unit< si::pressure, scale< 10, static_rational<-12 > > >::type picopascal_unit
Unit definition for picopascal pressure.
Definition: pressure.h:89
make_scaled_unit< si::pressure, scale< 10, static_rational< -6 > > >::type micropascal_unit
Unit definition for micropascal pressure.
Definition: pressure.h:93
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 1 > > >::unit_type decabar_unit
Unit definition for decabar pressure.
Definition: pressure.h:271
quantity< zeptopascal_unit > zeptopascal_quantity
Measured quantity in zeptopascals.
Definition: pressure.h:218
quantity< si::pressure > pressure_quantity
Measured quantity (pressure, pascals).
Definition: pressure.h:78
make_scaled_unit< si::pressure, scale< 10, static_rational< 9 > > >::type gigapascal_unit
Unit definition for gigapascal pressure.
Definition: pressure.h:113
make_scaled_unit< si::pressure, scale< 10, static_rational< -9 > > >::type nanopascal_unit
Unit definition for nanopascal pressure.
Definition: pressure.h:91
quantity< dekapascal_unit > dekapascal_quantity
Measured quantity in dekapascals.
Definition: pressure.h:238
quantity< nanopascal_unit > nanopascal_quantity
Measured quantity in nanopascals.
Definition: pressure.h:226
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -3 > > >::unit_type millibar_unit
Unit definition for millibar pressure.
Definition: pressure.h:261
quantity< torr_unit > torr_quantity
Measured quantity in Torrs.
Definition: pressure.h:360
quantity< decibar_unit > decibar_quantity
Measured quantity in decibars.
Definition: pressure.h:322
make_scaled_unit< si::pressure, scale< 10, static_rational< 15 > > >::type petapascal_unit
Unit definition for petapascal pressure.
Definition: pressure.h:117
quantity< kilobar_unit > kilobar_quantity
Measured quantity in kilobars.
Definition: pressure.h:332
make_scaled_unit< si::pressure, scale< 10, static_rational<-21 > > >::type zeptopascal_unit
Unit definition for zeptopascal pressure.
Definition: pressure.h:83
quantity< exapascal_unit > exapascal_quantity
Measured quantity in exapascals.
Definition: pressure.h:254
quantity< psi_unit > psi_quantity
Measured quantity in pound-force per square inch (psi).
Definition: pressure.h:353
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 0 > > >::unit_type bar_unit
Unit definition for bar pressure.
Definition: pressure.h:267
quantity< petapascal_unit > petapascal_quantity
Measured quantity in petapascals.
Definition: pressure.h:252
make_scaled_unit< si::pressure, scale< 10, static_rational< -1 > > >::type decipascal_unit
Unit definition for decipascal pressure.
Definition: pressure.h:99
quantity< megapascal_unit > megapascal_quantity
Measured quantity in megapascals.
Definition: pressure.h:246
quantity< millitorr_unit > millitorr_quantity
Measured quantity in milliTorrs.
Definition: pressure.h:367
quantity< millibar_unit > millibar_quantity
Measured quantity in millibars.
Definition: pressure.h:318
make_scaled_unit< si::pressure, scale< 10, static_rational<-24 > > >::type yoctopascal_unit
Unit definition for yoctopascal pressure.
Definition: pressure.h:81
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 3 > > >::unit_type kilobar_unit
Unit definition for kilobar pressure.
Definition: pressure.h:275
quantity< hectobar_unit > hectobar_quantity
Measured quantity in hectobars.
Definition: pressure.h:330
make_scaled_unit< si::pressure, scale< 10, static_rational< 6 > > >::type megapascal_unit
Unit definition for megapascal pressure.
Definition: pressure.h:111
boost::units::metric::torr_base_unit::unit_type torr_unit
Unit definition for Torr pressure.
Definition: pressure.h:356
quantity< attopascal_unit > attopascal_quantity
Measured quantity in attopascals.
Definition: pressure.h:220
psi_base_unit::unit_type psi_unit
Unit definition for pound-force per square inch (psi) pressure.
Definition: pressure.h:349
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 6 > > >::unit_type megabar_unit
Unit definition for megabar pressure.
Definition: pressure.h:277
Open Microscopy Environment C++.
Definition: base64.h:48
quantity< zettapascal_unit > zettapascal_quantity
Measured quantity in zettapascals.
Definition: pressure.h:256
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -2 > > >::unit_type centibar_unit
Unit definition for centibar pressure.
Definition: pressure.h:263
quantity< megabar_unit > megabar_quantity
Measured quantity in megabars.
Definition: pressure.h:334
make_scaled_unit< si::pressure, scale< 10, static_rational< -2 > > >::type centipascal_unit
Unit definition for centipascal pressure.
Definition: pressure.h:97
quantity< micropascal_unit > micropascal_quantity
Measured quantity in micropascals.
Definition: pressure.h:228
quantity< decapascal_unit > decapascal_quantity
Measured quantity in decapascals.
Definition: pressure.h:240
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 1 > > >::unit_type dekabar_unit
Unit definition for dekabar pressure.
Definition: pressure.h:269
quantity< decabar_unit > decabar_quantity
Measured quantity in decabars.
Definition: pressure.h:328
quantity< gigapascal_unit > gigapascal_quantity
Measured quantity in gigapascals.
Definition: pressure.h:248
quantity< centipascal_unit > centipascal_quantity
Measured quantity in centipascals.
Definition: pressure.h:232
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 2 > > >::unit_type hectobar_unit
Unit definition for hectobar pressure.
Definition: pressure.h:273
quantity< pascal_unit > pascal_quantity
Measured quantity in pascals.
Definition: pressure.h:236
si::pressure pressure_unit
Unit definition for pressure.
Definition: pressure.h:76
scaled_base_unit< boost::units::metric::torr_base_unit, scale< 10, static_rational< -3 > > >::unit_type millitorr_unit
Unit definition for milliTorr pressure.
Definition: pressure.h:363
make_scaled_unit< si::pressure, scale< 10, static_rational< 3 > > >::type kilopascal_unit
Unit definition for kilopascal pressure.
Definition: pressure.h:109
make_scaled_unit< si::pressure, scale< 10, static_rational< 0 > > >::type pascal_unit
Unit definition for pascal pressure.
Definition: pressure.h:101
quantity< decipascal_unit > decipascal_quantity
Measured quantity in decipascals.
Definition: pressure.h:234
quantity< terapascal_unit > terapascal_quantity
Measured quantity in terapascals.
Definition: pressure.h:250
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -1 > > >::unit_type decibar_unit
Unit definition for decibar pressure.
Definition: pressure.h:265
boost::units::metric::atmosphere_base_unit::unit_type atmosphere_unit
Unit definition for atmosphere pressure.
Definition: pressure.h:337
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type decapascal_unit
Unit definition for decapascal pressure.
Definition: pressure.h:105
make_scaled_unit< si::pressure, scale< 10, static_rational< 2 > > >::type hectopascal_unit
Unit definition for hectopascal pressure.
Definition: pressure.h:107
make_scaled_unit< si::pressure, scale< 10, static_rational< 12 > > >::type terapascal_unit
Unit definition for terapascal pressure.
Definition: pressure.h:115
quantity< centibar_unit > centibar_quantity
Measured quantity in centibars.
Definition: pressure.h:320
quantity< bar_unit > bar_quantity
Measured quantity in bars.
Definition: pressure.h:324
quantity< yottapascal_unit > yottapascal_quantity
Measured quantity in yottapascals.
Definition: pressure.h:258
quantity< millipascal_unit > millipascal_quantity
Measured quantity in millipascals.
Definition: pressure.h:230
static std::string symbol()
Unit symbol.
Definition: pressure.h:404
static std::string name()
Unit name.
Definition: pressure.h:399
quantity< picopascal_unit > picopascal_quantity
Measured quantity in picopascals.
Definition: pressure.h:224
make_scaled_unit< si::pressure, scale< 10, static_rational< 21 > > >::type zettapascal_unit
Unit definition for zettapascal pressure.
Definition: pressure.h:121
quantity< yoctopascal_unit > yoctopascal_quantity
Measured quantity in yoctopascals.
Definition: pressure.h:216