Skip to Content
TianGong LCA Documentation
Database & Methodology

Platform Modeling & Calculation Conventions

A complete reference to how TianGong LCA models calculate inventories and impacts: the eight core objects, linear scaling and demand summation, multi-product allocation with a worked example, matrix solving (I − A)x = y with feedback loops, Primary vs. Other Product Results, and the three model representations.

When you place processes on the TianGong LCA canvas, wire their exchanges, and click Save, the platform returns a solved life cycle inventory and 25 environmental impact indicators within seconds. How exactly does that math work? How are multi-product processes allocated? How do circular recycling loops converge? And how do Primary Product Results differ from Other Product Results?

This reference externalizes TianGong LCA's core modeling semantics and calculation rules in plain language with concrete worked examples.

At a Glance

  • Product-demand linear scaling: Every process inventory is anchored to its quantitative reference quantity. Models turn your functional unit into final demand y, solve (I − A)x = y across all activities (including feedback loops), then compute elementary flows g = Bx and impacts h = Cg.
  • Allocation happens before demand solving: Multi-product processes must declare explicit allocation rules before participating in demand equations; the engine never guesses shares for unallocated non-reference co-products.
  • Exact calculation semantics: Source unit processes calculate from meanAmount; LCIA uses the SHA-256-pinned 25-method static bundle under the non-regional default profile, matching exact (flow UUID, version, direction)—missing factors flag incomplete coverage while explicit finite zero factors remain valid zero.

1. Eight Core Objects in a Model

Core objectPlain meaningEveryday modeling example
FlowAn exchanged item with a unique UUID, version, and flow propertyAmmonia, industrial electricity, CO₂ emitted to air
ProcessAn input/output inventory recorded at one reference scaleInputs, energy, and emissions to produce 100 kg of a chemical
Process InstanceOne specific occurrence of a versioned Process inside a ModelTwo plant units on the canvas each referencing the same electricity process
ExchangeA single input or output row inside a ProcessInput 50 kg feedstock; Output 100 kg product
ConnectionDeclares which upstream Process supplies a downstream inputAmmonia output of synthesis unit linked to ammonia input of fertilizer unit
Quantitative ReferenceThe product output or treatment input that defines process scaleOutput 100 kg product, or waste-treatment Input 1 kg waste
Functional UnitThe final product or service and target quantity the study deliversDeliver 1 tonne of specification-grade methanol
Activity LevelTotal scaled activity required from a process to meet the functional unitScaling a 100 kg process by 100× to supply 10,000 kg

Every process, flow, and reference carries an exact version; multiple instances of the same process on one canvas participate independently in calculation.

2. Linear Scaling, Demand Summation, and System Boundaries

1. How Process Scaling Works

Suppose a process inventory is defined per 100 kg product output (50 kg raw material input, 20 kg CO₂ emission). When a model needs 10,000 kg of that product:

Scaling factor = Required product quantity / Reference product quantity
               = 10,000 / 100 = 100

Every exchange scales proportionally by 100×: raw material becomes 5,000 kg and CO₂ becomes 2,000 kg.

2. Multiple Consumers and Canvas Linking Rules

  • Canvas wiring rule: Each input flow of a process takes one explicit upstream provider on the canvas (wiring multiple providers directly raises MULTIPLE_PROVIDERS; see Supply Linking & Market Mechanism and System Modelling FAQ). Conversely, one product output can feed multiple downstream consumers.
  • Additive demand: When a product supplies multiple downstream units and/or final demand directly:
Total supplied quantity = Demand from Consumer A + Demand from Consumer B + Direct final demand

3. Final Demand, Intermediate Demand, Boundaries, and Waste Treatment

  • Final vs. intermediate demand: If your functional unit is 500 kg of finished product, 500 kg is final demand, while the ammonia, electricity, and freight required to manufacture it are intermediate demands.
  • System boundary: Connected internal deliveries cancel out in pairs. Unconnected technosphere exchanges remain as boundary inputs/outputs, while elementary flows remain as resource extractions and environmental emissions.
  • Input-reference treatment processes: Waste treatment or recycling processes typically define their quantitative reference as an Input (e.g., receiving 1 kg of waste for treatment). Their energy use, emissions, and recovered materials scale with the treated quantity.

3. Multi-Product Processes and Allocation (Worked Example)

When one process delivers multiple products (such as P and Q), allocation specifies how much of each input and emission belongs to each product. With product reference output q_p, exchange amount b_e, and decimal share α_(e,p) (e.g., 80% = 0.8):

Unit exchange for product p = b_e × α_(e,p) / q_p

Two Supported Allocation Conventions

  1. Standard target-based per-exchange allocation (recommended):
    • Every exchange carrying an allocation declaration must have shares summing to 100% (1.0); unlisted products receive 0%.
    • Any exchange with no allocation declaration belongs 100% to the process's quantitative reference product, with 0% to other products.
    • If the entire process has no allocation declarations at all, calculation supports only its quantitative reference; linking a non-reference co-product requires adding allocation in the source process first.
  2. Legacy uniform allocation (shares recorded on product outputs):
    • When declared output shares sum to 100%, unlisted non-reference products receive 0% (their unit inventory keeps only their own output with zero allocated inputs/emissions).
    • If non-reference outputs declare shares while the reference output omits one, declare the reference product's share explicitly (even if 0%) so all product shares sum to 100%.

Complete Worked Example: Co-Products P and Q (80% / 20% Split)

Suppose a process produces 100 kg of Product P and 20 kg of Product Q while consuming 50 kg of raw material and emitting 100 kg of CO₂, allocated 80% to P and 20% to Q:

Allocated single-product inventoryReference outputRaw material (b × α / q)CO₂ emission (b × α / q)
Product P unit inventory1 kg P50 × 0.8 / 100 = 0.4 kg100 × 0.8 / 100 = 0.8 kg
Product Q unit inventory1 kg Q50 × 0.2 / 20 = 0.5 kg100 × 0.2 / 20 = 1.0 kg

Under three different downstream demand combinations, the allocated inventories scale independently:

Demand for PDemand for QTotal raw materialTotal CO₂ emission
100 kg10 kg100×0.4 + 10×0.5 = 45 kg100×0.8 + 10×1.0 = 90 kg
100 kg20 kg100×0.4 + 20×0.5 = 50 kg100×0.8 + 20×1.0 = 100 kg
100 kg30 kg100×0.4 + 30×0.5 = 55 kg100×0.8 + 30×1.0 = 110 kg

Multifunctionality can also be resolved via subdivision or system expansion; the platform's demand equations assume input inventories already carry clear product attribution. For broader allocation theory, see the TianGong LCA Knowledge Base.

4. Matrix Solving, Circular Loops, and LCIA Calculation

1. Core Matrix Equations

With single-product activities normalized to 1 unit of reference output—activity vector x, technology matrix A, final-demand vector y, elementary-flow matrix B, and characterization-factor matrix C—calculation runs in three linear steps:

1. Solve activity levels:         (I − A) x = y
2. Aggregate elementary flows:    g = B x
3. Compute impact indicators:     h = C g

2. Circular Feedback Loop Example

Models containing internal reuse or mutual supply loops are solved simultaneously—no manual iteration needed. If producing 1 unit requires 0.2 units of the same product internally and final demand is y = 1:

x = 0.2 x + 1
0.8 x = 1
x = 1.25

Total activity is 1.25 units: 0.25 units circulate internally and 1.0 unit satisfies final demand. Disconnected activities not required by the functional unit receive activity 0.

3. Numeric Basis and LCIA Matching Rules

  • Exchange amount used: Ordinary source processes calculate from meanAmount (resultingAmount stays as evidence; formally published Result Processes display their frozen resultingAmount).
  • 25-method static bundle & exact matching: Frontend and Worker share one SHA-256-verified 25-method static bundle (lcia.static_cache_bundle.v1, non-regional default profile; see Database Overview). Factors match strictly on (method_id, method_version, flow_uuid, flow_version, direction)—never fuzzy names, and never summing regional alternatives.
  • Missing factor vs. explicit zero: An uncharacterized flow is flagged as incomplete coverage (never silent zero); an explicit finite 0 factor remains a valid numeric 0. Non-finite numbers or manifest hash mismatches refuse trusted numeric output (see LCIA Calculation & Results).

5. Primary Product Result vs. Other Product Results

After saving a Lifecycle Model, the Model Results view displays two sections—Primary Product and Other Products (see Generated Data & Release Artifacts and Save and Reuse Model Results):

  • Primary Product Result (primary): Matches the model's chosen reference process, reference exchange, and functional unit target; governs main model activity levels and instance scaling factors.
  • Other Product Results (secondary): Covers every other eligible product in the model—intermediate products, boundary products, and standalone nodes—regardless of whether they link downstream. Each solves its own demand vector at its source reference quantity (including loops) without altering main-model scaling and without silently normalizing to 1.
  • Allocated Unit Processes (allocated): Internal calculation dependencies split from multi-product nodes; kept out of summary result lists.
  • Explicit unexpanded boundaries: Unexpanded external inputs remain on the boundary (results never imply full cradle-to-grave coverage). Moving a product from boundary to intermediate position preserves its result identity rather than deleting it.

6. Three Representations of a Model and Save/Review Discipline

In TIDAS and on the platform, every Lifecycle Model maintains three linked views:

RepresentationStorage carrierWhat it holdsPurpose
Edit Graphjson_tg.xflowCanvas node layout, raw process version links, manual connections, reference targetVisual authoring and editing
Computation GraphStandard LifecycleModel datasetSingle-product processInstance references, supply links, @multiplicationFactor = x / qMatrix calculation and standardized exchange
Result InventoryResult Process (R(P))Aggregated inputs, emissions, and impacts for the functional unitInspection, comparison, and upstream reuse

@multiplicationFactor example: To supply 100 kg, a referenced process with q = 1 kg carries @multiplicationFactor = 100 / 1 = 100; a referenced process with q = 100 kg carries @multiplicationFactor = 100 / 100 = 1. Both yield identical physical exchange amounts.

Ten-Step Calculation & Save Flow

1. Edit process nodes & links on canvas
   → 2. Set reference product & functional unit
   → 3. Load exact-version processes & flows
   → 4. Apply allocation to form single-product inventories
   → 5. Build technology matrix A & final-demand vector y
   → 6. Solve activity levels x (including feedback loops)
   → 7. Aggregate boundary & elementary flows g = B x
   → 8. Compute impacts h = C g across 25 static methods & check coverage
   → 9. Generate processInstance entries & @multiplicationFactor
   → 10. Persist model plus Primary & Other Product Result Processes

Four Practical Authoring Rules

  1. Check validates current edits only: Submitting for review requires an explicit successful Save first—submission never saves or recalculates implicitly.
  2. Repair missing co-product allocations at the source: If diagnostics report an unallocated non-reference product, update allocation in the source process, point the model to the updated version, and re-save.
  3. Failed recalculations preserve prior saved results: Existing saved results remain intact until a new calculation succeeds and saves.
  4. Practice with the worked case study: Follow Partially Terminated System Modeling to see canvas linking and saving end to end.

Where to Go Next

On this page