=================================================================

Units Converter plug-in

written by: James Lockley, ABAQUS UK
last modified: Feb 2005
=================================================================

This plugin provides a simple units converter from one units system to another.
All conversions are contained within the file units.py as a series of
nested python dictionaries.

Each property is added to the dictionary in the following way:
The keys of the top level dictionary are the physical property;
the keys of the second level are the units of the input variable
and the keys of the third level are possible output units.

The conversion is performed by replacing 'x' with the input amount and
evaluating the resulting expression.

eg:
properties['Time'] = {'sec' : {'min' : 'x/60.'
                      'hour': 'x/3600.},
                      'min':  {'sec' : 'x*60.',
                      'hour': 'x/60.' },
                      'hour': {'sec' : 'x/3600.',
                      'min  : x/60.}
              }

to convert 2.5 hrs to seconds: the following is performed:
>>> eqn = properties['Time']['hour']['sec']
>>> eval(eqn.replace('x', '%s')%2.5)


Any unwanted conversions can simply be commneted out (as is 'Currency'
in the supplied units.py.

The units.py can be modified and reloaded using the reload button, without
having to restart /CAE.

Properties are listed in the pulldown menu in alphabetical order.