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.
16
* @package Zend_Measure
17
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
* @version $Id: Kinematic.php 9508 2008-05-23 10:56:41Z thomas $
23
* Implement needed classes
25
require_once 'Zend/Measure/Exception.php';
26
require_once 'Zend/Measure/Abstract.php';
27
require_once 'Zend/Locale.php';
30
* Class for handling acceleration conversions
33
* @package Zend_Measure
34
* @subpackage Zend_Measure_Viscosity_Kinematic
35
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
36
* @license http://framework.zend.com/license/new-bsd New BSD License
38
class Zend_Measure_Viscosity_Kinematic extends Zend_Measure_Abstract
40
const STANDARD = 'SQUARE_METER_PER_SECOND';
42
const CENTISTOKES = 'CENTISTOKES';
43
const LENTOR = 'LENTOR';
44
const LITER_PER_CENTIMETER_DAY = 'LITER_PER_CENTIMETER_DAY';
45
const LITER_PER_CENTIMETER_HOUR = 'LITER_PER_CENTIMETER_HOUR';
46
const LITER_PER_CENTIMETER_MINUTE = 'LITER_PER_CENTIMETER_MINUTE';
47
const LITER_PER_CENTIMETER_SECOND = 'LITER_PER_CENTIMETER_SECOND';
48
const POISE_CUBIC_CENTIMETER_PER_GRAM = 'POISE_CUBIC_CENTIMETER_PER_GRAM';
49
const SQUARE_CENTIMETER_PER_DAY = 'SQUARE_CENTIMETER_PER_DAY';
50
const SQUARE_CENTIMETER_PER_HOUR = 'SQUARE_CENTIMETER_PER_HOUR';
51
const SQUARE_CENTIMETER_PER_MINUTE = 'SQUARE_CENTIMETER_PER_MINUTE';
52
const SQUARE_CENTIMETER_PER_SECOND = 'SQUARE_CENTIMETER_PER_SECOND';
53
const SQUARE_FOOT_PER_DAY = 'SQUARE_FOOT_PER_DAY';
54
const SQUARE_FOOT_PER_HOUR = 'SQUARE_FOOT_PER_HOUR';
55
const SQUARE_FOOT_PER_MINUTE = 'SQUARE_FOOT_PER_MINUTE';
56
const SQUARE_FOOT_PER_SECOND = 'SQUARE_FOOT_PER_SECOND';
57
const SQUARE_INCH_PER_DAY = 'SQUARE_INCH_PER_DAY';
58
const SQUARE_INCH_PER_HOUR = 'SQUARE_INCH_PER_HOUR';
59
const SQUARE_INCH_PER_MINUTE = 'SQUARE_INCH_PER_MINUTE';
60
const SQUARE_INCH_PER_SECOND = 'SQUARE_INCH_PER_SECOND';
61
const SQUARE_METER_PER_DAY = 'SQUARE_METER_PER_DAY';
62
const SQUARE_METER_PER_HOUR = 'SQUARE_METER_PER_HOUR';
63
const SQUARE_METER_PER_MINUTE = 'SQUARE_METER_PER_MINUTE';
64
const SQUARE_METER_PER_SECOND = 'SQUARE_METER_PER_SECOND';
65
const SQUARE_MILLIMETER_PER_DAY = 'SQUARE_MILLIMETER_PER_DAY';
66
const SQUARE_MILLIMETER_PER_HOUR = 'SQUARE_MILLIMETER_PER_HOUR';
67
const SQUARE_MILLIMETER_PER_MINUTE = 'SQUARE_MILLIMETER_PER_MINUTE';
68
const SQUARE_MILLIMETER_PER_SECOND = 'SQUARE_MILLIMETER_PER_SECOND';
69
const STOKES = 'STOKES';
72
* Calculations for all kinematic viscosity units
76
protected $_units = array(
77
'CENTISTOKES' => array('0.000001', 'cSt'),
78
'LENTOR' => array('0.0001', 'lentor'),
79
'LITER_PER_CENTIMETER_DAY' => array(array('' => '1', '/' => '864000'), 'l/cm day'),
80
'LITER_PER_CENTIMETER_HOUR' => array(array('' => '1', '/' => '36000'), 'l/cm h'),
81
'LITER_PER_CENTIMETER_MINUTE' => array(array('' => '1', '/' => '600'), 'l/cm m'),
82
'LITER_PER_CENTIMETER_SECOND' => array('0.1', 'l/cm s'),
83
'POISE_CUBIC_CENTIMETER_PER_GRAM' => array('0.0001', 'P cm³/g'),
84
'SQUARE_CENTIMETER_PER_DAY' => array(array('' => '1', '/' => '864000000'),'cm²/day'),
85
'SQUARE_CENTIMETER_PER_HOUR' => array(array('' => '1', '/' => '36000000'),'cm²/h'),
86
'SQUARE_CENTIMETER_PER_MINUTE' => array(array('' => '1', '/' => '600000'),'cm²/m'),
87
'SQUARE_CENTIMETER_PER_SECOND' => array('0.0001', 'cm²/s'),
88
'SQUARE_FOOT_PER_DAY' => array('0.0000010752667', 'ft²/day'),
89
'SQUARE_FOOT_PER_HOUR' => array('0.0000258064', 'ft²/h'),
90
'SQUARE_FOOT_PER_MINUTE' => array('0.001548384048', 'ft²/m'),
91
'SQUARE_FOOT_PER_SECOND' => array('0.09290304', 'ft²/s'),
92
'SQUARE_INCH_PER_DAY' => array('7.4671296e-9', 'in²/day'),
93
'SQUARE_INCH_PER_HOUR' => array('0.00000017921111', 'in²/h'),
94
'SQUARE_INCH_PER_MINUTE' => array('0.000010752667', 'in²/m'),
95
'SQUARE_INCH_PER_SECOND' => array('0.00064516', 'in²/s'),
96
'SQUARE_METER_PER_DAY' => array(array('' => '1', '/' => '86400'), 'm²/day'),
97
'SQUARE_METER_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'm²/h'),
98
'SQUARE_METER_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'm²/m'),
99
'SQUARE_METER_PER_SECOND' => array('1', 'm²/s'),
100
'SQUARE_MILLIMETER_PER_DAY' => array(array('' => '1', '/' => '86400000000'), 'mm²/day'),
101
'SQUARE_MILLIMETER_PER_HOUR' => array(array('' => '1', '/' => '3600000000'), 'mm²/h'),
102
'SQUARE_MILLIMETER_PER_MINUTE' => array(array('' => '1', '/' => '60000000'), 'mm²/m'),
103
'SQUARE_MILLIMETER_PER_SECOND' => array('0.000001', 'mm²/s'),
104
'STOKES' => array('0.0001', 'St'),
105
'STANDARD' => 'SQUARE_METER_PER_SECOND'