{
  "name": "Retraso Material Erlang y Verificación de Ley de Little",
  "author": "Cátedra Dinámica Industrial UADE - Ing. Nahuel Romera",
  "description": "Modelo de cascada Erlang de 3er orden para verificar MT = Inflow * TR en equilibrio dinámico.",
  "timeSettings": {
    "startTime": 0,
    "stopTime": 50,
    "timeStep": 0.05,
    "method": "RK4"
  },
  "nodes": [
    { "key": "cloud1", "type": "cloud", "x": 40, "y": 140 },
    { "key": "valveIn", "type": "valve", "label": "flujoEntrada", "equation": "time >= 5 ? 100 : 0", "isNN": true, "x": 130, "y": 140 },
    
    { "key": "stock1", "type": "stock", "label": "etapaTransito1", "initVal": 0, "isNN": true, "x": 220, "y": 140 },
    { "key": "valveE1", "type": "valve", "label": "salidaEtapa1", "equation": "etapaTransito1 / tauErlang", "isNN": true, "x": 310, "y": 140 },
    
    { "key": "stock2", "type": "stock", "label": "etapaTransito2", "initVal": 0, "isNN": true, "x": 400, "y": 140 },
    { "key": "valveE2", "type": "valve", "label": "salidaEtapa2", "equation": "etapaTransito2 / tauErlang", "isNN": true, "x": 490, "y": 140 },
    
    { "key": "stock3", "type": "stock", "label": "etapaTransito3", "initVal": 0, "isNN": true, "x": 580, "y": 140 },
    { "key": "valveE3", "type": "valve", "label": "flujoSalidaFinal", "equation": "etapaTransito3 / tauErlang", "isNN": true, "x": 670, "y": 140 },
    { "key": "cloud2", "type": "cloud", "x": 760, "y": 140 },

    { "key": "paramTR", "type": "variable", "label": "tiempoRetrasoTotal", "equation": "6.0", "x": 350, "y": 250 },
    { "key": "auxTau", "type": "variable", "label": "tauErlang", "equation": "tiempoRetrasoTotal / 3.0", "x": 490, "y": 250 },
    { "key": "auxMT", "type": "variable", "label": "materialEnTransitoTotal", "equation": "etapaTransito1 + etapaTransito2 + etapaTransito3", "x": 400, "y": 40 }
  ],
  "links": [
    { "from": "cloud1", "to": "stock1", "type": "flow", "labelKey": "flujoEntrada" },
    { "from": "stock1", "to": "stock2", "type": "flow", "labelKey": "salidaEtapa1" },
    { "from": "stock2", "to": "stock3", "type": "flow", "labelKey": "salidaEtapa2" },
    { "from": "stock3", "to": "cloud2", "type": "flow", "labelKey": "flujoSalidaFinal" },
    
    { "from": "stock1", "to": "valveE1", "type": "influence" },
    { "from": "auxTau", "to": "valveE1", "type": "influence" },
    
    { "from": "stock2", "to": "valveE2", "type": "influence" },
    { "from": "auxTau", "to": "valveE2", "type": "influence" },
    
    { "from": "stock3", "to": "valveE3", "type": "influence" },
    { "from": "auxTau", "to": "valveE3", "type": "influence" },
    
    { "from": "paramTR", "to": "auxTau", "type": "influence" },
    { "from": "stock1", "to": "auxMT", "type": "influence" },
    { "from": "stock2", "to": "auxMT", "type": "influence" },
    { "from": "stock3", "to": "auxMT", "type": "influence" }
  ]
}
