/*
	This object enumerates energy types
	
	Energy types are object literals which have two properties:
		name: The name to display to the user
		cost: The cost in USD of this energy

	NOTE: All calculations are done internally in USD, so costs ( like co2cost ) are
	set in USD. They're translated into other currencies when displayed to the user.
	
	NOTE: If only one energy type is specified, the energy dropdown will be replaced with
	a static text label.
*/
var energy_types = {
	electric: {
		name: "Grid Electricity",
		cost: 0.09
	}
};

/*
	This object represents the state of the motors.
	The values here are what the user sees on first visiting the page, thus
	reasonable defaults should be assigned.
*/

var motor_states = {
	gearboxes: {
		num: 5,
		kw: 40,
		efficiency: 1 - 0.28,
		hours: 8,
		days: 240
	},

	pumps: {
		num: 10,
		kw: 15,
		efficiency: 1 - 0.04,
		hours: 8,
		days: 240
	},

	compressors: {
		num: 15,
		kw: 10,
		efficiency: 1 - 0.05,
		hours: 8,
		days: 240
	},

	fans: {
		num: 2,
		kw: 25,
		efficiency: 1 - 0.02,
		hours: 8,
		days: 150
	}	
};

/*
	This object represents the state of the assumptions.
	Reasonable default values should be assigned here, the select field in the UI are synced.
	
	currency: The default currency, should be either "usd", "euro", "yen" or "yuan"
	energy: Refers to one of the energy_types above
	co2cost: The default cost ( in USD ) of co2

	NOTE: All calculations are done internally in USD, so costs ( like co2cost ) are
	set in USD. They're translated into other currencies when displayed to the user.
*/

var assumptions = {
	currency:   "usd",
	energy:     energy_types.electric,
	co2cost:    20
}
