viewof dt_batch_value = Inputs.range([10000, 200000], {value: 50000, step: 5000, label: "Batch value ($)"})
viewof dt_batches_per_month = Inputs.range([10, 200], {value: 50, step: 10, label: "Batches per month"})
viewof dt_current_yield = Inputs.range([0.80, 0.98], {value: 0.94, step: 0.01, label: "Current average yield"})
viewof dt_improved_yield = Inputs.range([0.80, 0.99], {value: 0.975, step: 0.005, label: "Improved yield (after twin)"})
viewof dt_twin_cost = Inputs.range([50000, 500000], {value: 150000, step: 25000, label: "Digital twin cost ($)"})
{
const yield_improvement = dt_improved_yield - dt_current_yield;
const gallons_per_batch = 1000;
const price_per_gallon = dt_batch_value / gallons_per_batch;
const additional_gallons_month = yield_improvement * gallons_per_batch * dt_batches_per_month;
const monthly_revenue_increase = additional_gallons_month * price_per_gallon;
const annual_revenue_increase = monthly_revenue_increase * 12;
const payback_months = dt_twin_cost / monthly_revenue_increase;
const c = {navy: "#2C3E50", teal: "#16A085", orange: "#E67E22", blue: "#3498DB", gray: "#7F8C8D"};
return html`<div style="font-family:Arial;padding:20px;background:#f8f9fa;border-radius:8px;border-left:4px solid ${c.blue}"><div style="color:${c.navy};margin-top:0;font-size:1.1em;font-weight:bold">Digital Twin Impact</div><div style="display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px"><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.orange}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Yield Improvement</div><div style="color:${c.navy};font-size:1.8em;font-weight:bold">+${(yield_improvement*100).toFixed(2)}%</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">From ${(dt_current_yield*100).toFixed(1)}% to ${(dt_improved_yield*100).toFixed(1)}%</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.teal}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Additional Product/Month</div><div style="color:${c.navy};font-size:1.8em;font-weight:bold">${additional_gallons_month.toFixed(0)} gal</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">${dt_batches_per_month} batches × ${yield_improvement.toFixed(3)} × 1,000 gal</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.blue}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Monthly Revenue Increase</div><div style="color:${c.teal};font-size:1.8em;font-weight:bold">$${monthly_revenue_increase.toLocaleString()}</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">${additional_gallons_month.toFixed(0)} gal × $${price_per_gallon.toFixed(2)}/gal</div></div><div style="background:white;padding:15px;border-radius:6px;border-top:3px solid ${c.teal}"><div style="color:${c.gray};font-size:0.85em;margin-bottom:5px">Payback Period</div><div style="color:${payback_months<12?c.teal:c.orange};font-size:1.8em;font-weight:bold">${payback_months.toFixed(1)} months</div><div style="color:${c.gray};font-size:0.75em;margin-top:5px">Investment: $${dt_twin_cost.toLocaleString()}</div></div></div><div style="margin-top:20px;padding:15px;background:linear-gradient(to right,#e8f5f1,#e8f4f8);border-radius:6px;border-left:4px solid ${c.blue}"><strong style="color:${c.navy}">5-Year Value:</strong> <span style="color:${c.gray}">Annual revenue increase of $${annual_revenue_increase.toLocaleString()} delivers $${(annual_revenue_increase*5-dt_twin_cost).toLocaleString()} net value over 5 years (${((annual_revenue_increase*5/dt_twin_cost).toFixed(1))}× ROI).</span></div></div>`;
}Digital Twin Performance Impact
Digital Twin Performance Impact
animation
iiot
industrial-operations
Try Change Improved yield (after twin) while keeping Current average yield fixed. Then press Calculate financial impact.
Observe After pressing Calculate financial impact, watch monthly revenue increase and payback period as Improved yield (after twin) changes.
Explain Describe how Digital twin cost ($) and monthly revenue increase determine the payback period after you press Calculate financial impact.
Technical boundaries. The calculation assumes 1000 gallons per batch and derives price per gallon from batch value. The same annual revenue increase is used throughout the 5 years.
NoteDigital Twin Performance Impact
Explore how digital twin optimization improves process yield and calculate financial impact.