Unit System: Difference between revisions

From GREET.net Help
Jump to navigation Jump to search
Line 19: Line 19:


To switch back to the original units simply follow the same procedure and select the previous units chosen. Their is no harm in switching back and forth the unit system was implemented for the convenience of scientists and engineers to avoid worrying about trivial unit systems.
To switch back to the original units simply follow the same procedure and select the previous units chosen. Their is no harm in switching back and forth the unit system was implemented for the convenience of scientists and engineers to avoid worrying about trivial unit systems.
===How to Define a New Unit===


===Technical Notes on Unit System===
===Technical Notes on Unit System===

Revision as of 22:45, January 21, 2012

The GREET unit system facilitates tracking which measurements each parameter is recorded in and allows changing what units the parameter uses for display in the graphical user interface.

Setting Unit Preferences

The primary reason for creating a flexible unit system was to allow a user to change the way various parameters are displayed. The design now allows users to view input parameters and results in imperial units if that is what they are familiar with, or S.I. units if they prefer, or create their own units entirely. In addition the user has the ability to define the unit in which they would want to input their data. For example if your one set of data is in pounds, and your second set of data is in kilograms you can adjust the software to fit your application, and avoid tedious manual unit conversions.

Preferences from General Settings

Change Unit Options Using General Settings

Units can be adjusted via the "General Settings" page of Greet. To access the "General Settings" press "Preferences" and choose "General Settings". A window should pop up similar to the one shown on the right. The unit settings can be adjusted via the "Preferred Units" tab. This tab should be selected by default when opening "General Settings".

Once open you will be presented with a table. This table can be used to adjust unit preferences. The first column represents what type of unit, the second represents its default unit and the third column represents the user preferred unit. The third column can be modified by using the tiny gray down arrows that reveal a drop down menu of available units. For example with the current settings shown in the screen shot process inputs will be displayed in BTU's. However, if I were to utilize the drop down menu and choose J (for joules) as the user defined unit for energy the inputs will be displayed in Joules instead.

Other settings can also be adjusted via the "Preferred Units" tab. These settings pertain to how the numbers are displayed in the selected units. If the "Automatically add prefixes" check box is checked the software will automatically display numbers like 1000000 btu as 1 mmbtu for aesthetics, if toggled off it will just display 1000000 btu. In addition because number can be represented in so many ways the user has three main ways to view numbers in Greet. Currently in the screen shot shown "Display Numbers with database preferences" is selected. This is fine for most cases. However, the user also has the ability to "Display number with maximum precision". Using this option will display all 16 digits of precision Greet uses in calculations. Alternatively you can also select "Display number in scientific notation", and specify the "Significant digits to use".

Preferences from textbox context menu

Change Unit preferences from the context menu

The preferred unit for a parameter can also be changed by right clicking on a textbox and going to "Change Unit". This will open a small window which allows changing what unit the value will be displayed in. If the value has multiple units associated with it, such as with the "Heating Value Liquid" in the picture below, then the preferred unit can be selected for each unit group.

Note that changing the preferred units in this way will still change the unit of all other parameters of that unit group so in this case all "Heating Value Liquid" parameters will be affected with the new unit selection.

To switch back to the original units simply follow the same procedure and select the previous units chosen. Their is no harm in switching back and forth the unit system was implemented for the convenience of scientists and engineers to avoid worrying about trivial unit systems.

How to Define a New Unit

Technical Notes on Unit System

Essentially the unit system works by storing a value's unit for every parameter in the database, and then defining conversions to other defined units. The units in Greet are split up into groups. These groups contain valid units that the value can be converted in to. There are two types of groups: base groups and derived groups.

A base group stores the units for basic unit measurements such as distance, area, and mass. A derived group contains multiple base groups. This system allows independently storing preferred units for each group. Each group defines default units for conversion which determines what conversion mathematics that need to be done to convert to other units. The conversion is a two stage process in which the original value is converted to the group's default units and then converted to the desired unit.

Internal Links