Kinematic.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Measure
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * Implement needed classes
  23. */
  24. #require_once 'Zend/Measure/Abstract.php';
  25. #require_once 'Zend/Locale.php';
  26. /**
  27. * Class for handling acceleration conversions
  28. *
  29. * @category Zend
  30. * @package Zend_Measure
  31. * @subpackage Zend_Measure_Viscosity_Kinematic
  32. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  33. * @license http://framework.zend.com/license/new-bsd New BSD License
  34. */
  35. class Zend_Measure_Viscosity_Kinematic extends Zend_Measure_Abstract
  36. {
  37. const STANDARD = 'SQUARE_METER_PER_SECOND';
  38. const CENTISTOKES = 'CENTISTOKES';
  39. const LENTOR = 'LENTOR';
  40. const LITER_PER_CENTIMETER_DAY = 'LITER_PER_CENTIMETER_DAY';
  41. const LITER_PER_CENTIMETER_HOUR = 'LITER_PER_CENTIMETER_HOUR';
  42. const LITER_PER_CENTIMETER_MINUTE = 'LITER_PER_CENTIMETER_MINUTE';
  43. const LITER_PER_CENTIMETER_SECOND = 'LITER_PER_CENTIMETER_SECOND';
  44. const POISE_CUBIC_CENTIMETER_PER_GRAM = 'POISE_CUBIC_CENTIMETER_PER_GRAM';
  45. const SQUARE_CENTIMETER_PER_DAY = 'SQUARE_CENTIMETER_PER_DAY';
  46. const SQUARE_CENTIMETER_PER_HOUR = 'SQUARE_CENTIMETER_PER_HOUR';
  47. const SQUARE_CENTIMETER_PER_MINUTE = 'SQUARE_CENTIMETER_PER_MINUTE';
  48. const SQUARE_CENTIMETER_PER_SECOND = 'SQUARE_CENTIMETER_PER_SECOND';
  49. const SQUARE_FOOT_PER_DAY = 'SQUARE_FOOT_PER_DAY';
  50. const SQUARE_FOOT_PER_HOUR = 'SQUARE_FOOT_PER_HOUR';
  51. const SQUARE_FOOT_PER_MINUTE = 'SQUARE_FOOT_PER_MINUTE';
  52. const SQUARE_FOOT_PER_SECOND = 'SQUARE_FOOT_PER_SECOND';
  53. const SQUARE_INCH_PER_DAY = 'SQUARE_INCH_PER_DAY';
  54. const SQUARE_INCH_PER_HOUR = 'SQUARE_INCH_PER_HOUR';
  55. const SQUARE_INCH_PER_MINUTE = 'SQUARE_INCH_PER_MINUTE';
  56. const SQUARE_INCH_PER_SECOND = 'SQUARE_INCH_PER_SECOND';
  57. const SQUARE_METER_PER_DAY = 'SQUARE_METER_PER_DAY';
  58. const SQUARE_METER_PER_HOUR = 'SQUARE_METER_PER_HOUR';
  59. const SQUARE_METER_PER_MINUTE = 'SQUARE_METER_PER_MINUTE';
  60. const SQUARE_METER_PER_SECOND = 'SQUARE_METER_PER_SECOND';
  61. const SQUARE_MILLIMETER_PER_DAY = 'SQUARE_MILLIMETER_PER_DAY';
  62. const SQUARE_MILLIMETER_PER_HOUR = 'SQUARE_MILLIMETER_PER_HOUR';
  63. const SQUARE_MILLIMETER_PER_MINUTE = 'SQUARE_MILLIMETER_PER_MINUTE';
  64. const SQUARE_MILLIMETER_PER_SECOND = 'SQUARE_MILLIMETER_PER_SECOND';
  65. const STOKES = 'STOKES';
  66. /**
  67. * Calculations for all kinematic viscosity units
  68. *
  69. * @var array
  70. */
  71. protected $_units = array(
  72. 'CENTISTOKES' => array('0.000001', 'cSt'),
  73. 'LENTOR' => array('0.0001', 'lentor'),
  74. 'LITER_PER_CENTIMETER_DAY' => array(array('' => '1', '/' => '864000'), 'l/cm day'),
  75. 'LITER_PER_CENTIMETER_HOUR' => array(array('' => '1', '/' => '36000'), 'l/cm h'),
  76. 'LITER_PER_CENTIMETER_MINUTE' => array(array('' => '1', '/' => '600'), 'l/cm m'),
  77. 'LITER_PER_CENTIMETER_SECOND' => array('0.1', 'l/cm s'),
  78. 'POISE_CUBIC_CENTIMETER_PER_GRAM' => array('0.0001', 'P cm³/g'),
  79. 'SQUARE_CENTIMETER_PER_DAY' => array(array('' => '1', '/' => '864000000'),'cm²/day'),
  80. 'SQUARE_CENTIMETER_PER_HOUR' => array(array('' => '1', '/' => '36000000'),'cm²/h'),
  81. 'SQUARE_CENTIMETER_PER_MINUTE' => array(array('' => '1', '/' => '600000'),'cm²/m'),
  82. 'SQUARE_CENTIMETER_PER_SECOND' => array('0.0001', 'cm²/s'),
  83. 'SQUARE_FOOT_PER_DAY' => array('0.0000010752667', 'ft²/day'),
  84. 'SQUARE_FOOT_PER_HOUR' => array('0.0000258064', 'ft²/h'),
  85. 'SQUARE_FOOT_PER_MINUTE' => array('0.001548384048', 'ft²/m'),
  86. 'SQUARE_FOOT_PER_SECOND' => array('0.09290304', 'ft²/s'),
  87. 'SQUARE_INCH_PER_DAY' => array('7.4671296e-9', 'in²/day'),
  88. 'SQUARE_INCH_PER_HOUR' => array('0.00000017921111', 'in²/h'),
  89. 'SQUARE_INCH_PER_MINUTE' => array('0.000010752667', 'in²/m'),
  90. 'SQUARE_INCH_PER_SECOND' => array('0.00064516', 'in²/s'),
  91. 'SQUARE_METER_PER_DAY' => array(array('' => '1', '/' => '86400'), 'm²/day'),
  92. 'SQUARE_METER_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'm²/h'),
  93. 'SQUARE_METER_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'm²/m'),
  94. 'SQUARE_METER_PER_SECOND' => array('1', 'm²/s'),
  95. 'SQUARE_MILLIMETER_PER_DAY' => array(array('' => '1', '/' => '86400000000'), 'mm²/day'),
  96. 'SQUARE_MILLIMETER_PER_HOUR' => array(array('' => '1', '/' => '3600000000'), 'mm²/h'),
  97. 'SQUARE_MILLIMETER_PER_MINUTE' => array(array('' => '1', '/' => '60000000'), 'mm²/m'),
  98. 'SQUARE_MILLIMETER_PER_SECOND' => array('0.000001', 'mm²/s'),
  99. 'STOKES' => array('0.0001', 'St'),
  100. 'STANDARD' => 'SQUARE_METER_PER_SECOND'
  101. );
  102. }