Evcharger
[Residential loads (residential)]

There are only two types of electric vehicles supported:. More...

Typedefs

typedef struct
s_evdemandprofilelist 
EVPROFILEITEM
 EV Demand Profiles.

Functions

EVPROFILEITEMadd_demand_profile (EVDEMAND *data)
 Add an EV demand profile.
EVDEMAND * find_demand_profile (char *name)
 Find an EV demand profile.

Detailed Description

There are only two types of electric vehicles supported:.

The evcharger simulation is based on demand state profile of the vehicle. When the vehicle is at home, it has a probability of leaving on one of 3 trips.

Slide1.PNG

Figure 1 - EV charger state diagram

Slide2.PNG

Figure 2 - EV charger home/work arrival/departure statistics

When away, the probability of a return is used to determine when the vehicle returns.

The charger power can have one of three levels:

The trip distances is used to estimate the battery charge upon return according to the following rules:

1. A work trip discharges the battery depending on whether charge_at_work is defined. If charging at work is allowed, the battery will discharge for 1 trip, otherwise it will discharge for 2 trips.

2. A short trip discharges the battery based on the distance traveled.

3. A long trip discharges the battery to 25%, but is only possible with hybrids.

In all cases, if the trip distance is greater than 50 miles and the car is a hybrid, the discharge will be down to 25%.

Heat fraction ratio is used to calculate the internal gain from plug loads.

Demand profiles

The format of the demand profile is as follows:

	[DAYTYPE]
	DIRTRIP,DIRTRIP,...
	#.###,#.###,...
	#.###,#.###,...
	.
	.
	.
	#.###,#.###,...
	

where DAYTYPE is either WEEKDAY or WEEKEND, DIR is either ARR or DEP, and TRIP is either HOME, WORK, SHRT, or LONG. There must be 24 rows of numbers, the numbers must be positive numbers between 0 and 1, and each column must be normalized (they must add up to 1.000 over the 24 hour period).

You may introduce as many daytype blocks as are supported simultaneously (2 max at this time).

Todo:
the 24 rows are not check for compliance with the 24 hour rule, the 0-1 rule, or the normalized rule.

Function Documentation

EVPROFILEITEM* add_demand_profile ( EVDEMAND *  data  ) 

Add an EV demand profile.

Returns:
pointer to the new EVPROFILEITEM structure

Definition at line 112 of file evcharger.cpp.

EVDEMAND* find_demand_profile ( char *  name  ) 

Find an EV demand profile.

Returns:
pointer to the matching EVPROFILEITEM structure
Parameters:
name name of profile

Definition at line 98 of file evcharger.cpp.


GridLAB-D™ Version 4.1
An open-source smart grid simulator created by PNNL for the US Department of Energy Office of Electricity