DeltaCarbon-class: A class to represent a difference between two scenarios of...

Description Slots See Also Examples

Description

A delta is basically a substraction between two scenarios. This enable to compare the carbon emission between two scenario. The only way to create a DeltaCarbon is the substraction of two scenarios. This object is evaluted lazily. Indeed it simply contains a list of two objects evaluted lazily. When the object is not being evaluted it does not contains any data but a list of two objects.

Slots

scenarios

A list with two scenarios.

See Also

Other GHGBalance classes: CarbonProcess-class, CarbonProcessForest-class, ScenarioCarbon-class, SystemCarbon-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
p1 = Process(a*t, a = 3.14)
p2 = Process(b*t+c, b = 0.57, c = 2.3)
p3 = Process(q_1*exp(-t), q_1 = 0.92)
p4 = Process(abio*t^2, abio = 5)
p5 = Process(-log(g*t), g = 5.57)

s1 = p1 + p2 + p3
s2 = p3 + p4 + p5

d = s1 - s2
print(d)
plot(d)

Jean-Romain/BilanGES documentation built on April 7, 2018, 12:15 p.m.