File indexing completed on 2024-06-16 05:30:14

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category  Zend
0016  * @package   Zend_Measure
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license   http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version   $Id$
0020  */
0021 
0022 /**
0023  * Implement needed classes
0024  */
0025 // require_once 'Zend/Measure/Abstract.php';
0026 // require_once 'Zend/Locale.php';
0027 
0028 /**
0029  * Class for handling acceleration conversions
0030  *
0031  * @category   Zend
0032  * @package    Zend_Measure
0033  * @subpackage Zend_Measure_Viscosity_Kinematic
0034  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0035  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0036  */
0037 class Zend_Measure_Viscosity_Kinematic extends Zend_Measure_Abstract
0038 {
0039     const STANDARD = 'SQUARE_METER_PER_SECOND';
0040 
0041     const CENTISTOKES                     = 'CENTISTOKES';
0042     const LENTOR                          = 'LENTOR';
0043     const LITER_PER_CENTIMETER_DAY        = 'LITER_PER_CENTIMETER_DAY';
0044     const LITER_PER_CENTIMETER_HOUR       = 'LITER_PER_CENTIMETER_HOUR';
0045     const LITER_PER_CENTIMETER_MINUTE     = 'LITER_PER_CENTIMETER_MINUTE';
0046     const LITER_PER_CENTIMETER_SECOND     = 'LITER_PER_CENTIMETER_SECOND';
0047     const POISE_CUBIC_CENTIMETER_PER_GRAM = 'POISE_CUBIC_CENTIMETER_PER_GRAM';
0048     const SQUARE_CENTIMETER_PER_DAY       = 'SQUARE_CENTIMETER_PER_DAY';
0049     const SQUARE_CENTIMETER_PER_HOUR      = 'SQUARE_CENTIMETER_PER_HOUR';
0050     const SQUARE_CENTIMETER_PER_MINUTE    = 'SQUARE_CENTIMETER_PER_MINUTE';
0051     const SQUARE_CENTIMETER_PER_SECOND    = 'SQUARE_CENTIMETER_PER_SECOND';
0052     const SQUARE_FOOT_PER_DAY             = 'SQUARE_FOOT_PER_DAY';
0053     const SQUARE_FOOT_PER_HOUR            = 'SQUARE_FOOT_PER_HOUR';
0054     const SQUARE_FOOT_PER_MINUTE          = 'SQUARE_FOOT_PER_MINUTE';
0055     const SQUARE_FOOT_PER_SECOND          = 'SQUARE_FOOT_PER_SECOND';
0056     const SQUARE_INCH_PER_DAY             = 'SQUARE_INCH_PER_DAY';
0057     const SQUARE_INCH_PER_HOUR            = 'SQUARE_INCH_PER_HOUR';
0058     const SQUARE_INCH_PER_MINUTE          = 'SQUARE_INCH_PER_MINUTE';
0059     const SQUARE_INCH_PER_SECOND          = 'SQUARE_INCH_PER_SECOND';
0060     const SQUARE_METER_PER_DAY            = 'SQUARE_METER_PER_DAY';
0061     const SQUARE_METER_PER_HOUR           = 'SQUARE_METER_PER_HOUR';
0062     const SQUARE_METER_PER_MINUTE         = 'SQUARE_METER_PER_MINUTE';
0063     const SQUARE_METER_PER_SECOND         = 'SQUARE_METER_PER_SECOND';
0064     const SQUARE_MILLIMETER_PER_DAY       = 'SQUARE_MILLIMETER_PER_DAY';
0065     const SQUARE_MILLIMETER_PER_HOUR      = 'SQUARE_MILLIMETER_PER_HOUR';
0066     const SQUARE_MILLIMETER_PER_MINUTE    = 'SQUARE_MILLIMETER_PER_MINUTE';
0067     const SQUARE_MILLIMETER_PER_SECOND    = 'SQUARE_MILLIMETER_PER_SECOND';
0068     const STOKES                          = 'STOKES';
0069 
0070     /**
0071      * Calculations for all kinematic viscosity units
0072      *
0073      * @var array
0074      */
0075     protected $_units = array(
0076         'CENTISTOKES'                  => array('0.000001',        'cSt'),
0077         'LENTOR'                       => array('0.0001',          'lentor'),
0078         'LITER_PER_CENTIMETER_DAY'     => array(array('' => '1', '/' => '864000'), 'l/cm day'),
0079         'LITER_PER_CENTIMETER_HOUR'    => array(array('' => '1', '/' => '36000'),  'l/cm h'),
0080         'LITER_PER_CENTIMETER_MINUTE'  => array(array('' => '1', '/' => '600'),    'l/cm m'),
0081         'LITER_PER_CENTIMETER_SECOND'  => array('0.1',             'l/cm s'),
0082         'POISE_CUBIC_CENTIMETER_PER_GRAM' => array('0.0001',       'P cm³/g'),
0083         'SQUARE_CENTIMETER_PER_DAY'    => array(array('' => '1', '/' => '864000000'),'cm²/day'),
0084         'SQUARE_CENTIMETER_PER_HOUR'   => array(array('' => '1', '/' => '36000000'),'cm²/h'),
0085         'SQUARE_CENTIMETER_PER_MINUTE' => array(array('' => '1', '/' => '600000'),'cm²/m'),
0086         'SQUARE_CENTIMETER_PER_SECOND' => array('0.0001',          'cm²/s'),
0087         'SQUARE_FOOT_PER_DAY'          => array('0.0000010752667', 'ft²/day'),
0088         'SQUARE_FOOT_PER_HOUR'         => array('0.0000258064',    'ft²/h'),
0089         'SQUARE_FOOT_PER_MINUTE'       => array('0.001548384048',  'ft²/m'),
0090         'SQUARE_FOOT_PER_SECOND'       => array('0.09290304',      'ft²/s'),
0091         'SQUARE_INCH_PER_DAY'          => array('7.4671296e-9',    'in²/day'),
0092         'SQUARE_INCH_PER_HOUR'         => array('0.00000017921111', 'in²/h'),
0093         'SQUARE_INCH_PER_MINUTE'       => array('0.000010752667',  'in²/m'),
0094         'SQUARE_INCH_PER_SECOND'       => array('0.00064516',      'in²/s'),
0095         'SQUARE_METER_PER_DAY'         => array(array('' => '1', '/' => '86400'), 'm²/day'),
0096         'SQUARE_METER_PER_HOUR'        => array(array('' => '1', '/' => '3600'),  'm²/h'),
0097         'SQUARE_METER_PER_MINUTE'      => array(array('' => '1', '/' => '60'),    'm²/m'),
0098         'SQUARE_METER_PER_SECOND'      => array('1',               'm²/s'),
0099         'SQUARE_MILLIMETER_PER_DAY'    => array(array('' => '1', '/' => '86400000000'), 'mm²/day'),
0100         'SQUARE_MILLIMETER_PER_HOUR'   => array(array('' => '1', '/' => '3600000000'),  'mm²/h'),
0101         'SQUARE_MILLIMETER_PER_MINUTE' => array(array('' => '1', '/' => '60000000'),    'mm²/m'),
0102         'SQUARE_MILLIMETER_PER_SECOND' => array('0.000001',        'mm²/s'),
0103         'STOKES'                       => array('0.0001',          'St'),
0104         'STANDARD'                     => 'SQUARE_METER_PER_SECOND'
0105     );
0106 }