The fuel line of a generator
Hybrid Systems: Solar with a Generator or the Grid
On this page
The grid fails at five in the evening, the generator starts, and for six hours a machine of 12 kVA runs to feed a few lights and a compressor. The fuel bill at the end of the month is larger than the electricity bill, and the solar array on the roof did nothing to reduce it, because its inverter stopped the moment the grid went away. Most sites with an unreliable grid pay for three sources of energy and let the most expensive one work the longest. This lesson shows what each source costs for a kWh, what happens in a grid failure, and how the sources are made to work together. #HybridSolar #GeneratorFuel #GridFailure
Learning Objectives
By the end of this lesson, you will be able to:
- Describe grid-tied, off-grid and hybrid systems, and what each does when the grid fails
- Explain in words why an inverter must stop feeding a failed grid, and who sets the rules for it
- Calculate the fuel and the cost of a kWh from a generator at any load from its fuel line
- Compare the cost of a kWh from solar, from the battery, from the grid and from the generator, with the assumptions stated
- Calculate the generator hours and the fuel on a day with a grid failure, with and without a battery, for a stated dispatch rule
Real-World System Problem: A workshop with three sources
The site of this course has an array of 9.9 kWp, a hybrid inverter of 8 kW, a battery of 15.36 kWh, a grid connection and a standby generator of 12 kVA. The nameplate of the array is its power at standard test conditions, which a hot roof never meets. All equipment values are examples typical of the class; for real equipment, the maker’s data sheet decides.
The grid is unreliable. When it fails in the evening, the array gives little or nothing and the workshop takes 0.5 to 1.75 kW. A 12 kVA generator carrying 1.75 kW works at less than one fifth of its rating, yet still turns at full speed, drives its fan and pumps, and overcomes its own friction. Most of the fuel it burns in those hours does no work for the load.
So the question of this lesson is which source should carry each hour, and what each hour costs.
Fundamental Theory: Sources that work together
Three kinds of system
A solar system is named by what it is connected to.
| Grid-tied | Off-grid | Hybrid | |
|---|---|---|---|
| Connected to the grid | yes | no | yes |
| Battery | no | yes | yes |
| Who sets voltage and frequency | the grid | the inverter | the grid, or the inverter when the grid is absent |
| In a grid failure | stops | not affected | separates from the grid and carries the load |
| Surplus solar energy | exported, if allowed | spilled when the battery is full | stored, then exported or spilled |
A grid-tied inverter is a follower: it measures the grid’s voltage wave and pushes current in step with it, and cannot make a wave alone. An off-grid inverter makes the wave, and the loads follow. A hybrid inverter can do both, with a battery behind it to cover the difference between what the array gives and what the load takes.
Self-consumption and export
When the array gives more than the load takes, the surplus is stored until the battery is full, then exported if the utility allows and pays for export, or else spilled: the inverter holds the array back.
Two shares describe how well a site uses its array: the self-consumption, the share of the array’s energy that the site uses, and the solar share, the share of the load that the solar system supplies.
This lesson takes the case where export is not paid, as a stated assumption, so a spilled kWh has no value. Then every kWh of solar energy that the site uses replaces a kWh from the grid or the generator, and a low self-consumption makes each used kWh more expensive.
What happens in a grid failure
Think of the street outside a site whose array feeds the grid. The utility opens a switch to repair a line. If the inverter went on feeding, the line the workers believe dead would be live. The inverter and nearby loads would form an island with a voltage and frequency nobody controls, and the returning grid would close onto a wave out of step with it.
So an inverter that feeds the grid must detect the loss of the grid and stop within a short time: anti-islanding. It watches the voltage and frequency at its terminals and stops when they leave an allowed range; many inverters also disturb their own output a little, all the time, to see whether a grid holds the wave steady. The limits, times and tests are set by the local grid code, and the utility decides whether an inverter may be connected. This lesson gives no values, because they differ from one country to another.
A grid-tied system without a battery therefore gives nothing in a grid failure, even at noon in full sun.
A hybrid inverter has a switch between the grid and the site. When the grid fails it first opens that switch, then makes its own wave from the battery and the array for the loads behind it. The street is dead, as the grid code requires, and the site has power.
The generator and its fuel line
A generator burns fuel even when it gives no power: the engine must turn at full speed for the right frequency, feeding friction, a fan, pumps and its own heat losses (like a car’s engine running in a traffic jam). Above that, each kWh needs a nearly constant amount of extra fuel, so the fuel use in an hour is close to a straight line:
For the generator of the site the example line is
The fuel line is an example. The maker’s data sheet gives the fuel use of a real generator, usually at a quarter, a half, three quarters and the full load, and a straight line through those points gives
The rating of a generator is given in kVA. The power it can give in kW is the kVA multiplied by the power factor of the rating. This lesson takes 0.8 as an assumption, so 12 kVA is 9.6 kW.
Dispatch rules
A dispatch rule says which source supplies the load at each moment. The inverter and the generator controller apply it locally, with no need of any network. A good rule for this site uses the sources in the order of their cost:
The last box hides a choice. When the generator runs, it can carry only the load, or it can be loaded well and charge the battery with what the load does not take. This lesson names the two rules.
- Rule A, follow the load. The generator starts when the grid is absent and the battery is at its lower limit, carries the load only, and stops when the grid returns.
- Rule B, run loaded and charge. The generator starts in the same way but runs at a set power; what the load does not take charges the battery. It stops when the battery reaches a set state of charge, or when the grid returns, and the battery then carries the load again.
Rule B gives each kWh at a better point of the fuel line, but it passes generator energy through the battery, which loses some of it.
Application 1: The cost of a kWh from each source
Step 1: The generator at three loads
Click to reveal the calculation
-
Fuel in an hour. At 2 kW:
L/h. At 5 kW: 2.25 L/h. At 9 kW: 3.33 L/h. ✅ -
Fuel for each kWh. Divide by the load.
✅
-
Cost of each kWh. Multiply by 180.
Load (kW) Share of rating L/h L/kWh No-load share of the fuel Cost per kWh 2 21 percent 1.44 0.72 62.5 percent 129.6 5 52 percent 2.25 0.45 40.0 percent 81.0 9 94 percent 3.33 0.37 27.0 percent 66.6 ✅
-
Read the table. At 2 kW, 62.5 percent of the fuel only keeps the engine turning, and a kWh costs almost twice what it costs at 9 kW. The load of 2 kW is also below the assumed minimum loading of
kW. ✅
Step 2: Solar energy
Click to reveal the calculation
-
Energy in the life of the system.
kWh. ✅ -
Cost of each kWh generated.
✅
-
Cost of each kWh used. Only the energy that the site uses pays for the system. If 70 percent is used, each used kWh costs
. If 50 percent is used, it costs 6.64. ✅ -
Through the battery. Each kWh taken out needs
kWh put in, and it carries the wear of the battery. ✅
Step 3: Compare and check
Click to reveal the comparison
-
The four sources.
Source Cost per kWh (currency units) Solar, used directly 3.32 to 6.64 Solar, through the battery 10.46 Grid 22 Generator at 9 kW, fuel only 66.6 Generator at 2 kW, fuel only 129.6 ✅
-
Check by a limiting case. At a very large load the no-load fuel is shared among so many kWh that it disappears, and the fuel for each kWh tends to
L/kWh. That is currency units per kWh. No real load reaches this limit: at the rating of 9.6 kW the fuel is 0.364 L/kWh. So the generator can never be cheaper than 48.6, which is more than twice the grid price, and the values of 66.6 to 129.6 in the table lie above it, as they must. ✅
Application 2: A day with a six-hour grid failure
Step 1: Without a battery
Click to reveal the calculation
-
Load in the failure. From 17:00 to 18:30 the load is 1.55 kW, from 18:30 to 22:30 it is 1.75 kW, and from 22:30 to 23:00 it is 0.50 kW.
✅
-
Generator loading. The mean load is
kW, which is 17 percent of 9.6 kW. For all 6 hours the generator is below its assumed minimum loading of 2.88 kW. ✅ -
Fuel.
That is 0.83 L for each kWh. Two thirds of the fuel is no-load fuel. ✅
-
The rest of the clear day. Outside the failure the array supplies 16.22 kWh of the load directly and the grid supplies 4.21 kWh. The array could have given 0.57 kWh more between 17:00 and 18:30, but its inverter was stopped. ✅
-
Cost of the day.
currency units. On the same day with no failure the grid supplies 13.23 kWh and the day costs 291. The failure of 6 hours multiplies the cost of the day by more than five. ✅
Step 2: With the battery on the clear day
Click to reveal the calculation
-
The battery at 17:00. The battery is full at 13:05 and starts to discharge at 16:40, when the array stops covering the load. At 17:00 its state of charge is 89.4 percent. ✅
-
Energy needed in the failure. The load takes
kWh of direct current. The array still gives 0.57 kWh before sunset. The battery gives kWh. ✅ -
State of charge at 23:00. The cells give
kWh, which is 63.1 percent of 15.36 kWh. This is above the lower limit of 10 percent, so the generator does not start. Rule A and rule B give the same day. ✅
-
Where the load comes from. Array directly 16.77 kWh, battery 11.63 kWh, grid 1.60 kWh, generator 0. The grid energy is the same 1.60 kWh as on a day with no failure, taken between 03:40 and 07:20 when the battery is at its lower limit. ✅
-
What is saved. Generator hours: 6.00 against 0. Fuel: 7.99 L against 0. Cost of the day: 1,530 against
currency units, a saving of 1,495. ✅ -
The wear of the battery. The 9.69 kWh that pass through the cells in the failure cost
currency units of wear, against 1,437 of fuel. ✅
Step 3: With the battery on the cloudy day
Click to reveal the result
-
The battery at 17:00. On the cloudy day the array gives 24.05 kWh and the battery never fills. At 17:00 it is at 50.8 percent. ✅
-
When the generator starts. The battery reaches 10 percent at 20:40, with the grid still absent for 2 hours and 20 minutes. The generator starts. ✅
-
Rule A. The generator carries the load from 20:40 to 23:00: 2.33 hours and 3.46 kWh.
That is 0.88 L for each kWh, and all 2.33 hours are below the minimum loading. ✅
-
Rule B. The generator runs at 7.0 kW from 20:40. The load takes 1.75 kW, and the other 5.25 kW charges the battery. The battery reaches 30 percent at 21:20 and the generator stops, after 0.67 hours and 4.67 kWh.
That is 0.40 L for each kWh, at 73 percent of the rating. The battery carries the load from 21:20 and is at 15.4 percent when the grid returns. ✅
-
The three cases on the cloudy day.
Case Generator hours Fuel (L) Grid (kWh) Cost of the day No battery 6.00 7.99 8.66 1,628 Battery, rule A 2.33 3.03 4.11 637 Battery, rule B 0.67 1.86 3.38 409 ✅
-
What is saved. Against no battery, rule A saves 4.95 L and 991 currency units, and rule B saves 6.13 L and 1,219 currency units. Rule B also cuts the running time from 2.33 hours to 40 minutes. ✅
Step 4: Check the balance
Click to reveal the check
-
The load is fully supplied. Clear day without a battery:
kWh. Clear day with the battery: kWh. ✅ -
Cloudy day. Rule A:
kWh. Rule B: kWh, which is 30.00 before rounding. Under rule B the battery column holds the energy that the generator stored. ✅ -
Two methods. The state of charge at 23:00 on the clear day is 26.3 percent by the hand calculation of Step 2 and by the step by step balance of the script. ✅
-
The charge of rule B. The generator gives
kW of direct current to the battery, which is 99 A at 51.2 V, inside the limit of 150 A. Of this, 4.88 kW reaches the cells. The 20 percent that the battery needs is 3.07 kWh, and hours, which the 5-minute steps round to 40 minutes. ✅
Verify It in Python
The script holds the irradiance generator of the course, the load of the site and the fuel line. It calculates the cost of each source, runs the day with the grid failure on a clear and a cloudy day, without a battery and with the battery under both rules, and plots the state of charge and the generator power.
"""Cost of each source, and a day with a grid failure from 17:00 to 23:00."""import numpy as npimport matplotlib.pyplot as plt
def daily_irradiance(day=0, seed=5, step_min=5, psh=5.5, cloud=0.0): """Plane-of-array irradiance (W/m2) through one day near the equator. Clear shape: sine squared between 06:30 and 18:30 scaled to `psh` peak sun hours. `cloud` between 0 and 1 adds passing cloud. Returns hours, irradiance.""" rng = np.random.default_rng(seed + day) h = np.arange(0, 24, step_min / 60.0) x = np.clip((h - 6.5) / 12.0, 0, 1) g = np.sin(np.pi * x) ** 2 g = g * psh / (g.sum() * step_min / 60.0) * 1000.0 if cloud > 0: k = np.ones_like(h) for _ in range(int(12 * cloud)): c = rng.uniform(7, 18); w = rng.uniform(0.1, 0.6) k *= 1 - 0.6 * np.exp(-0.5 * ((h - c) / w) ** 2) g = g * k return h, g
LOAD_EDGES = [0.0, 6.5, 8.0, 8.5, 10.5, 11.0, 11.5, 12.0, 13.0, 14.0, 16.5, 18.5, 22.5, 24.0]LOAD_KW = [0.50, 0.30, 0.90, 1.30, 4.30, 6.50, 3.50, 1.30, 0.70, 1.30, 1.55, 1.75, 0.50]
def load_kw(h): """AC load (kW) of the site at clock hour h (0 to 24): constant in each block.""" i = np.searchsorted(LOAD_EDGES, np.asarray(h) + 1e-9, side="right") - 1 return np.array(LOAD_KW)[i]
KWP, PR_DC, ETA_INV = 9.9, 0.78, 0.97E_NOM, ETA_ONE, P_MAX = 15.36, np.sqrt(0.92), 7.68 # kWh, one-way efficiency, kWDT = 5.0 / 60.0FUEL_0, FUEL_1 = 0.9, 0.27 # L/h at no load, L per kWhGRID, DIESEL = 22.0, 180.0 # currency units per kWh and per litreGEN_KW = 12.0 * 0.8 # 12 kVA at an assumed power factor of 0.8GEN_MIN = 0.30 * GEN_KW # assumed minimum loadingFAIL = (17.0, 23.0) # the grid is absent between these hoursP_SET, SOC_STOP = 7.0, 0.30 # rule B: generator power and stop level
def clock(x): """Clock time as text from an hour number.""" m = int(round(x * 60)) return f"{m // 60:02d}:{m % 60:02d}"
def run_day(g, load, h, battery=True, fail=FAIL, rule="A", days=40): """Repeat the same day until the state of charge at midnight repeats. rule A: the generator starts when the battery is at 10 % in a grid failure, carries the load only, and stops when the grid returns. rule B: same start, but it runs at P_SET, the surplus charges the battery, and it stops at SOC_STOP or when the grid returns. Returns the SoC trace, the generator power trace and the day's energies (kWh).""" pv = KWP * g / 1000.0 * PR_DC # kW of direct current from the array need = load / ETA_INV # kW of direct current that the load takes lo, hi = 0.10 * E_NOM, 0.90 * E_NOM off = np.zeros(len(h), bool) if fail is None else (h + 1e-9 >= fail[0]) & (h + 1e-9 < fail[1]) e = 0.5 * E_NOM for _ in range(days): soc, gen = np.zeros(len(h)), np.zeros(len(h)) r = dict(solar=0.0, batt=0.0, grid=0.0, gen_load=0.0, gen=0.0, hours=0.0, spilled=0.0, stopped=0.0) on = False for k in range(len(h)): if not off[k]: on = False if not battery: if off[k]: # the inverter is stopped, the generator carries the load gen[k] = load[k] r["stopped"] += pv[k] * DT else: d = min(pv[k], need[k]) r["solar"] += d * ETA_INV * DT r["spilled"] += (pv[k] - d) * DT r["grid"] += (need[k] - d) * ETA_INV * DT else: net = pv[k] - need[k] if off[k] and not on and net < 0 and (e - lo) * ETA_ONE / DT < -net - 1e-9: on = True # the battery cannot carry this step if on: room = (hi - e) / (ETA_ONE * DT) p_chg = 0.0 if rule == "B": p_chg = max(0.0, min((P_SET - load[k]) * ETA_INV, P_MAX, room)) p_pv = max(0.0, min(pv[k], P_MAX - p_chg, room - p_chg)) e += (p_chg + p_pv) * ETA_ONE * DT r["spilled"] += (pv[k] - p_pv) * DT gen[k] = load[k] + p_chg / ETA_INV if rule == "B" and e >= SOC_STOP * E_NOM - 1e-9: on = False elif net >= 0: p = min(net, P_MAX, (hi - e) / (ETA_ONE * DT)) e += p * ETA_ONE * DT r["spilled"] += (net - p) * DT r["solar"] += load[k] * DT else: p = min(-net, P_MAX, (e - lo) * ETA_ONE / DT) e -= p / ETA_ONE * DT r["solar"] += pv[k] * ETA_INV * DT r["batt"] += p * ETA_INV * DT r["grid"] += (-net - p) * ETA_INV * DT soc[k] = e / E_NOM run = gen > 0 r["gen"], r["hours"] = gen.sum() * DT, run.sum() * DT r["gen_load"] = load[run].sum() * DT r["fuel"] = FUEL_0 * r["hours"] + FUEL_1 * r["gen"] r["cost"] = GRID * r["grid"] + DIESEL * r["fuel"] r["pv"] = pv.sum() * DT r["start"] = clock(h[run][0]) if run.any() else "none" r["stop"] = clock(h[run][-1] + DT) if run.any() else "none" r["below"] = (run & (gen < GEN_MIN)).sum() * DT return soc, gen, r
# ---------- Application 1: the cost of each source ----------print("Application 1: fuel and cost of the generator")print(f" rating {GEN_KW:.1f} kW, assumed minimum loading {GEN_MIN:.2f} kW")print(" load kW L/h L/kWh no-load share cost per kWh")for p in (2.0, 5.0, 9.0): lph = FUEL_0 + FUEL_1 * p print(f" {p:5.1f} {lph:5.2f} {lph / p:5.3f} {100 * FUEL_0 / lph:8.1f} % {DIESEL * lph / p:10.1f}")print(f" limit at very high load: {FUEL_1} L/kWh, {DIESEL * FUEL_1:.1f} per kWh; " f"at the rating {FUEL_0 / GEN_KW + FUEL_1:.3f} L/kWh")SYSTEM, LIFE, YEAR_KWH = 990000.0, 20.0, 14906.0 # stated assumptions; year at PR 0.75WEAR, ETA_RT = 6.85, 0.92 # battery wear per kWh, round tripc_gen = SYSTEM / (YEAR_KWH * LIFE)print("Application 1: the cost of solar energy")print(f" {SYSTEM:,.0f} / ({YEAR_KWH:,.0f} x {LIFE:.0f}) = {SYSTEM:,.0f} / {YEAR_KWH * LIFE:,.0f} " f"= {c_gen:.2f} per kWh generated")for share in (1.0, 0.7, 0.5): print(f" with {100 * share:3.0f} % of the energy used: {c_gen / share:.2f} per kWh used")print(f" through the battery: {c_gen:.2f} / {ETA_RT} + {WEAR} = {c_gen / ETA_RT + WEAR:.2f} per kWh")print(f" grid {GRID:.0f}; generator at 2 kW is {DIESEL * (FUEL_0 / 2 + FUEL_1) / GRID:.1f} times the grid " f"and {DIESEL * (FUEL_0 / 2 + FUEL_1) / c_gen:.0f} times solar as generated")
# ---------- Application 2: the day with a grid failure ----------h, g = daily_irradiance()load = load_kw(h)win = (h + 1e-9 >= FAIL[0]) & (h + 1e-9 < FAIL[1])e_win = load[win].sum() * DTprint("Application 2: grid failure from 17:00 to 23:00")print(f" load in the failure: {e_win:.3f} kWh, mean {e_win / 6:.2f} kW, " f"{100 * e_win / 6 / GEN_KW:.0f} % of the generator rating")print(f" generator alone: {FUEL_0} x 6 + {FUEL_1} x {e_win:.3f} = " f"{FUEL_0 * 6 + FUEL_1 * e_win:.2f} L, {(FUEL_0 * 6 + FUEL_1 * e_win) / e_win:.2f} L/kWh")HEAD = (" case solar battery grid gen hours fuel L " "start stop cost")
def line(name, r): print(f" {name:24s} {r['solar']:6.2f} {r['batt']:6.2f} {r['grid']:5.2f} {r['gen_load']:5.2f} " f"{r['hours']:5.2f} {r['fuel']:6.2f} {r['start']:>5s} {r['stop']:>5s} {r['cost']:6.0f}")
traces = {}for name, gg in (("clear day, 5.5 peak sun hours", g), ("cloudy day, cloud=1.0", daily_irradiance(cloud=1.0)[1])): print(f" {name}: where the 30 kWh of load comes from (kWh at the load)") print(HEAD) s0, _, r0 = run_day(gg, load, h, battery=False, fail=None) line("no battery, no failure", r0) s1, g1, r1 = run_day(gg, load, h, battery=False) line("no battery, failure", r1) s2, _, r2 = run_day(gg, load, h, fail=None) line("battery, no failure", r2) sa, ga, ra = run_day(gg, load, h, rule="A") line("battery, failure, rule A", ra) sb, gb, rb = run_day(gg, load, h, rule="B") line("battery, failure, rule B", rb) traces[name] = (sa, sb, ga, gb) k17, k23 = int(17 * 12), int(23 * 12) print(f" array {r1['pv']:.2f} kWh; array energy not produced while the inverter is " f"stopped (no battery): {r1['stopped']:.2f}") print(f" energy used of what the array gave, no failure: without battery " f"{100 * (r0['pv'] - r0['spilled']) / r0['pv']:.1f} %, with battery " f"{100 * (r2['pv'] - r2['spilled']) / r2['pv']:.1f} %") print(f" battery, rule A: SoC {100 * sa[k17 - 1]:.1f} % at 17:00, " f"{100 * sa[k23 - 1]:.1f} % at 23:00") print(f" battery, rule B: SoC {100 * sb[k17 - 1]:.1f} % at 17:00, " f"{100 * sb[k23 - 1]:.1f} % at 23:00; generator output {rb['gen']:.2f} kWh, " f"{rb['fuel'] / rb['gen'] if rb['gen'] else 0:.2f} L/kWh") print(f" hours below the minimum loading: no battery {r1['below']:.2f}, " f"rule A {ra['below']:.2f}, rule B {rb['below']:.2f}") print(f" saved against no battery: rule A {r1['fuel'] - ra['fuel']:.2f} L and " f"{r1['cost'] - ra['cost']:.0f}; rule B {r1['fuel'] - rb['fuel']:.2f} L and " f"{r1['cost'] - rb['cost']:.0f} currency units")
# check by hand, clear day with batterypv = KWP * g / 1000.0 * PR_DCdc = (load[win] / ETA_INV).sum() * DT - pv[win].sum() * DTprint(" check, clear day with battery")print(f" direct current needed in the failure {(load[win] / ETA_INV).sum() * DT:.2f}, " f"array gives {pv[win].sum() * DT:.2f}, battery gives {dc:.2f}")print(f" from the cells {dc / ETA_ONE:.2f} kWh, {100 * dc / ETA_ONE / E_NOM:.1f} % of capacity")
# ---------- Plot ----------fig, ax = plt.subplots(2, 1, figsize=(8, 8), sharex=True)for name, (sa, sb, ga, gb) in traces.items(): ax[0].plot(h, 100 * sa, label=f"{name}, rule A") ax[1].step(h, ga, where="post", label=f"{name}, rule A")sa, sb, ga, gb = traces["cloudy day, cloud=1.0"]ax[0].plot(h, 100 * sb, "--", label="cloudy day, rule B")ax[1].step(h, gb, "--", where="post", label="cloudy day, rule B")for a in ax: a.axvspan(FAIL[0], FAIL[1], color="gray", alpha=0.15)ax[0].set_ylabel("state of charge (%)")ax[0].set_title("Battery with a grid failure from 17:00 to 23:00")ax[0].legend()ax[1].axhline(GEN_MIN, color="gray", lw=0.8)ax[1].set_xlabel("hour of the day")ax[1].set_ylabel("generator power (kW)")ax[1].legend()fig.tight_layout()fig.savefig("hybrid_day.png", dpi=120)print("Saved hybrid_day.png")Expected output
Application 1: fuel and cost of the generator rating 9.6 kW, assumed minimum loading 2.88 kW load kW L/h L/kWh no-load share cost per kWh 2.0 1.44 0.720 62.5 % 129.6 5.0 2.25 0.450 40.0 % 81.0 9.0 3.33 0.370 27.0 % 66.6 limit at very high load: 0.27 L/kWh, 48.6 per kWh; at the rating 0.364 L/kWhApplication 1: the cost of solar energy 990,000 / (14,906 x 20) = 990,000 / 298,120 = 3.32 per kWh generated with 100 % of the energy used: 3.32 per kWh used with 70 % of the energy used: 4.74 per kWh used with 50 % of the energy used: 6.64 per kWh used through the battery: 3.32 / 0.92 + 6.85 = 10.46 per kWh grid 22; generator at 2 kW is 5.9 times the grid and 39 times solar as generatedApplication 2: grid failure from 17:00 to 23:00 load in the failure: 9.575 kWh, mean 1.60 kW, 17 % of the generator rating generator alone: 0.9 x 6 + 0.27 x 9.575 = 7.99 L, 0.83 L/kWh clear day, 5.5 peak sun hours: where the 30 kWh of load comes from (kWh at the load) case solar battery grid gen hours fuel L start stop cost no battery, no failure 16.77 0.00 13.23 0.00 0.00 0.00 none none 291 no battery, failure 16.22 0.00 4.21 9.57 6.00 7.99 17:00 23:00 1530 battery, no failure 16.77 11.63 1.60 0.00 0.00 0.00 none none 35 battery, failure, rule A 16.77 11.63 1.60 0.00 0.00 0.00 none none 35 battery, failure, rule B 16.77 11.63 1.60 0.00 0.00 0.00 none none 35 array 42.47 kWh; array energy not produced while the inverter is stopped (no battery): 0.57 energy used of what the array gave, no failure: without battery 40.7 %, with battery 71.4 % battery, rule A: SoC 89.4 % at 17:00, 26.3 % at 23:00 battery, rule B: SoC 89.4 % at 17:00, 26.3 % at 23:00; generator output 0.00 kWh, 0.00 L/kWh hours below the minimum loading: no battery 6.00, rule A 0.00, rule B 0.00 saved against no battery: rule A 7.99 L and 1495; rule B 7.99 L and 1495 currency units cloudy day, cloud=1.0: where the 30 kWh of load comes from (kWh at the load) case solar battery grid gen hours fuel L start stop cost no battery, no failure 12.10 0.00 17.90 0.00 0.00 0.00 none none 394 no battery, failure 11.77 0.00 8.66 9.57 6.00 7.99 17:00 23:00 1628 battery, no failure 12.10 10.33 7.57 0.00 0.00 0.00 none none 167 battery, failure, rule A 12.10 10.33 4.11 3.46 2.33 3.03 20:40 23:00 637 battery, failure, rule B 12.10 13.36 3.38 1.17 0.67 1.86 20:40 21:20 409 array 24.05 kWh; array energy not produced while the inverter is stopped (no battery): 0.34 energy used of what the array gave, no failure: without battery 51.9 %, with battery 100.0 % battery, rule A: SoC 50.8 % at 17:00, 10.3 % at 23:00 battery, rule B: SoC 50.8 % at 17:00, 15.4 % at 23:00; generator output 4.67 kWh, 0.40 L/kWh hours below the minimum loading: no battery 6.00, rule A 2.33, rule B 0.00 saved against no battery: rule A 4.95 L and 991; rule B 6.13 L and 1219 currency units check, clear day with battery direct current needed in the failure 9.87, array gives 0.57, battery gives 9.30 from the cells 9.69 kWh, 63.1 % of capacitySaved hybrid_day.pngCommon Mistakes
- Expecting a grid-tied array without a battery to supply the building in a grid failure. Its inverter must stop when the grid is lost, even at noon.
- Judging a generator by its fuel use at full load. At one fifth of the rating the fuel for each kWh is about twice the full-load value, and most standby generators spend their life at a light load.
- Choosing a large generator “to be safe”. A larger engine has a larger no-load fuel use, and the same small load becomes a smaller share of its rating.
- Charging the battery from the generator up to full. The energy is expensive, part of it is lost in the battery, and it may replace grid or solar energy that would have cost far less.
- Counting the cost of solar energy on all the kWh that the array can give. Only the energy that the site uses pays for the system.
Summary
- A grid-tied inverter follows the grid and stops when it fails. A hybrid inverter separates the site from the grid and makes its own wave from the battery and the array. The local grid code sets the rules for the loss of the grid.
- The fuel of a generator is a no-load part plus a part for each kWh. For the example line, a kWh needs 0.72 L at 2 kW and 0.37 L at 9 kW, which is 129.6 and 66.6 currency units.
- On the stated assumptions, a kWh costs 3.32 from the array as generated, 10.46 through the battery, 22 from the grid, and 48.6 or more from the generator.
- With a grid failure from 17:00 to 23:00 and no battery, the generator runs 6 hours at 17 percent of its rating and burns 7.99 L. With the site battery on a clear day it does not start, and the day costs 35 currency units in place of 1,530.
- On a cloudy day the generator must run. Carrying the load only, it runs 2.33 hours and burns 3.03 L. Loaded to 7 kW and charging the battery to 30 percent, it runs 40 minutes and burns 1.86 L.
Exercises
1. A generator has the fuel line 0.9 L/h plus 0.27 L per kWh. Find its fuel use in an hour, the fuel for each kWh and the fuel cost of each kWh at a load of 3 kW, with diesel at 180 currency units a litre.
Answer
2. A solar system of 6 kWp costs 600,000 currency units and gives 1,500 kWh a year for each kWp for 20 years. Find the cost of each kWh generated, and the cost of each kWh used if the site uses 60 percent of the energy. Count no interest or maintenance.
Answer
3. On one day an array gives 40 kWh. The load takes 18 kWh of it directly, 10 kWh goes into a battery with a round-trip efficiency of 0.92 and all of it is taken out the same night, and the rest is spilled. The load of the day is 30 kWh. Find the self-consumption and the solar share. Ignore the inverter loss.
Answer
Self-consumption:
4. The grid fails for 4 hours. The load is constant at 2.4 kW. A battery holds 5 kWh of usable energy at the cells, its discharge efficiency is 0.96 and the inverter efficiency is 0.97. The generator (0.9 L/h plus 0.27 L per kWh) starts when the battery is empty and carries the load only. Find the generator hours and the fuel, and the fuel saved against a site with no battery.
Answer
The battery delivers
5. The same generator runs for one hour at 7 kW. The load takes 2.4 kW and the other 4.6 kW charges a battery. The charged energy returns to the load later through an inverter efficiency of 0.97 on charge, a round-trip efficiency of 0.92 and an inverter efficiency of 0.97 on discharge. Find the fuel for each kWh that reaches the load, and compare it with the generator carrying 2.4 kW only.
Answer
Fuel:
References
- G. M. Masters, Renewable and Efficient Electric Power Systems, 2nd edition, Wiley, 2013.
- R. A. Messenger and A. Abtahi, Photovoltaic Systems Engineering, 4th edition, CRC Press, 2017.
In a six-hour grid failure a 12 kVA generator carries the evening load of the workshop, about 1.6 kW, a sixth of its rating. Of the fuel it burns, how much only keeps the engine turning and does no work for the load?
This is the day model of Application 2: the 9.9 kWp array on the course's generated clear or cloudy day, the load of the site, the 15.36 kWh battery used between 10 and 90 percent, and a grid failure from 17:00. The day is repeated until it settles. The generator starts only when the grid is absent and the battery is at 10 percent. Diesel 180 and grid 22 currency units. Try rule B with a high stop level: the generator then fills the battery with diesel energy that the returning grid would have given more cheaply.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. The generator of the site (0.9 L/h at no load plus 0.27 L for each kWh) carries a load of 3 kW. Diesel costs 180 currency units a litre. What does one kWh cost in fuel?
2. A clinic has a grid-tied solar system with no battery. The grid fails at noon on a bright day. What does the solar system give the clinic?
3. On the cloudy day with rule B, the owner raises the stop level from 30 to 50 percent, so that the generator leaves the battery fuller. The grid returns at 23:00 as before. What happens to the cost of the day?
- The engine burns 0.9 L/h at no load, then 0.27 L more for each kWh: a straight line.
- At 1.75 kW each kWh takes 0.78 L; at 9.6 kW only 0.36 L. Light load is the dear load.
- Long hours below 30 percent load, here 2.88 kW, leave soot in the engine.
- 12 kVA at the assumed power factor of 0.8 gives 9.6 kW, the end of the line.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.