Total results
These methods return the overall results of the calculated product system related to its final demand: the inventory result, the impact assessment result (also normalized and weighted), and the total life cycle costs.
| Method | Parameters | Returns | Formula |
|---|---|---|---|
total-flows | List[EnviFlowValue] | \(g\) | |
total-flow-value-of | enviFlow | EnviFlowValue | \(g_i\) |
total-impacts | List[ImpactValue] | \(h\) | |
total-impact-value-of | impactCategory | ImpactValue | \(h_k\) |
total-impacts/normalized¹ | List[ImpactValue] | \(diag(nv)^{-1} h\) | |
total-impacts/weighted¹ | List[ImpactValue] | \(diag(w) diag(nv)^{-1} h\) | |
total-costs | CostValue | \(q^T s\) |
¹ Python: get_normalized_impacts and get_weighted_impacts; olca-ipc.ts:
getNormalizedImpacts and getWeightedImpacts
Inventory result
The inventory result \(g\) of the calculated product system is the amount \(g_i\) of each intervention flow \(i\) that crosses the boundary to the environment related to the final demand of the product system. It can be calculated by multiplying the intervention matrix \(B\) with the scaling vector \(s\):
$$ g = B s $$
The method total-flows returns the complete inventory result and
total-flow-value-of the result \(g_i\) of a single flow \(i\).
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/total-flows", {
"@id": "66dcc7d0-ce47-46bf-b77a-ada4b4c95169",
});
console.log(v);
// [
// { enviFlow: { flow: [Object], isInput: false }, amount: 5.316452367058923e-12 },
// { enviFlow: { flow: [Object], isInput: false }, amount: 0.0000020503441278781976 },
// { enviFlow: { flow: [Object], isInput: false }, amount: 2.2757672132330865e-10 },
// { enviFlow: { flow: [Object], isInput: false }, amount: 5.003477809709274e-7 },
// { enviFlow: { flow: [Object], isInput: true }, amount: 0.0013196599415652454 },
Impact assessment result
The impact assessment result \(h\) of the calculated product system can be calculated by multiplying the characterisation matrix \(C\) with the inventory result \(g\):
$$ h = C g $$
The method total-impacts returns the complete impact assessment result and
total-impact-value-of the result \(h_k\) of a single impact category
\(k\).
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/total-impacts", {
"@id": "86b36d3b-1dba-4804-bd61-dc5bcaf7c86c",
});
console.log(v);
// [
// {
// impactCategory: {
// "@type": "ImpactCategory",
// "@id": "3bc1c67f-d3e3-3891-9fea-4512107d88ef",
// name: "Climate change",
// category: "EF 3.0 Method (adapted)",
// refUnit: "kg CO2 eq"
// },
// amount: 0.6387478227404646
// },
// ...
Normalized results
If a normalization and weighting set was selected in the calculation setup, the normalized impact assessment result can be retrieved. Mathematically, it is the impact assessment result \(h\) divided by the respective normalization values \(nv\):
$$ diag(nv)^{-1} h $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/total-impacts/normalized", {
"@id": "15432ac4-7752-4066-a62d-31270f6a0dbd",
});
console.log(v);
// [
// {
// impactCategory: {
// "@type": "ImpactCategory",
// "@id": "248a3f3f-933e-3c45-a799-fad9f956e03c",
// name: "Photochemical ozone formation",
// category: "EF 3.0 Method (adapted)",
// refUnit: "kg NMVOC eq"
// },
// amount: 0.0010466725460636012
// },
Python IPC
import olca_ipc as ipc
import olca_schema as o
client = ipc.Client()
# get the impact assessment method
method = client.get(o.ImpactMethod, "bf665139-3159-45ef-9b00-f439251d2b5b")
# select the first normalisation & weighting set for the example;
# make sure the method has nw-sets
nwset = method.nw_sets[0]
# run a calculation
result = client.calculate(o.CalculationSetup(
target=o.Ref(
id="7d1cbce0-b5b3-47ba-95b5-014ab3c7f569",
ref_type=o.RefType.ProductSystem,
),
impact_method=method.to_ref(),
nw_set=nwset.to_ref(),
))
result.wait_until_ready()
# print the normalized results
for nr in result.get_normalized_impacts():
print(f"{nr.impact_category.name} :: {nr.amount}")
result.dispose()
Weighted results
If a normalization and weighting set was selected in the calculation setup, the weighted impact assessment result can be retrieved. Mathematically, it is the impact assessment result \(h\) divided by the respective normalization values \(nv\) and multiplied with the respective weighting factors \(w\):
$$ diag(w) \ diag(nv)^{-1} h $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/total-impacts/weighted", {
"@id": "546a1d13-3cae-4c9b-82d0-a18204b0c6eb",
});
console.log(v);
// [
// {
// impactCategory: {
// "@type": "ImpactCategory",
// "@id": "3bc1c67f-d3e3-3891-9fea-4512107d88ef",
// name: "Climate change",
// category: "EF 3.0 Method (adapted)",
// refUnit: "kg CO2 eq"
// },
// amount: 2.038186234380937
// },
// ...
Python IPC
import olca_ipc as ipc
import olca_schema as o
client = ipc.Client()
# get the impact assessment method
method = client.get(o.ImpactMethod, "bf665139-3159-45ef-9b00-f439251d2b5b")
# select the first normalisation & weighting set for the example;
# make sure the method has nw-sets
nwset = method.nw_sets[0]
# run a calculation
result = client.calculate(o.CalculationSetup(
target=o.Ref(
id="7d1cbce0-b5b3-47ba-95b5-014ab3c7f569",
ref_type=o.RefType.ProductSystem,
),
impact_method=method.to_ref(),
nw_set=nwset.to_ref(),
))
result.wait_until_ready()
# print the weighted results
for wr in result.get_weighted_impacts():
print(f"{wr.impact_category.name} :: {wr.amount} {nwset.weighted_score_unit}")
result.dispose()
Costs
If costs were included in the calculation setup, the method total-costs
returns the total life cycle costing (LCC) result of the calculated product
system. It is the vector \(q\) with the net-costs of the processes multiplied
with the scaling vector \(s\). The returned value contains the reference
currency of the database.
$$ q^T s $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const o = await import("https://cdn.jsdelivr.net/npm/olca-ipc@2.6.2/+esm");
const client = o.IpcClient.on(8080);
const result = await client.calculate(o.CalculationSetup.of({
target: o.Ref.of({
refType: o.RefType.ProductSystem,
id: "99ad5640-b73c-4387-b03c-ee0a9c6a7d6b",
}),
withCosts: true,
}));
await result.untilReady();
const totals = await result.getTotalCosts();
const code = totals.currency?.refUnit;
console.log(`total costs: ${totals.amount} ${code}`);
// total costs: 60 USD
result.dispose();