{
  "name": "Tanques Acoplados Edificio 8 Pisos",
  "author": "Cátedra Dinámica Industrial UADE - Ing. Nahuel Romera",
  "description": "Modelo de simulación de tanques acoplados (Planta Baja y Terraza) con llaves reguladoras Ke y Ks.",
  "timeSettings": {
    "startTime": 0,
    "stopTime": 48,
    "timeStep": 1.0,
    "method": "Euler"
  },
  "nodes": [
    { "key": "cloud1", "type": "cloud", "x": 50, "y": 150 },
    { "key": "stock1", "type": "stock", "label": "tanquePB", "initVal": 6000, "isNN": true, "x": 220, "y": 150 },
    { "key": "valve1", "type": "valve", "label": "entradaPB", "equation": "ke * Math.max(0, capPB - tanquePB)", "isNN": true, "x": 135, "y": 150 },
    { "key": "param1", "type": "variable", "label": "capPB", "equation": "10000", "x": 135, "y": 60 },
    { "key": "param2", "type": "variable", "label": "ke", "equation": "0.10", "x": 60, "y": 80 },
    
    { "key": "stock2", "type": "stock", "label": "tanqueTerraza", "initVal": 1500, "isNN": true, "x": 450, "y": 150 },
    { "key": "valve2", "type": "valve", "label": "salidaBombeo", "equation": "tanquePB > 6000 ? ks * Math.max(0, capTer - tanqueTerraza) : ks * tanquePB", "isNN": true, "x": 335, "y": 150 },
    { "key": "param3", "type": "variable", "label": "capTer", "equation": "50000", "x": 335, "y": 60 },
    { "key": "param4", "type": "variable", "label": "ks", "equation": "0.10", "x": 400, "y": 60 },

    { "key": "cloud2", "type": "cloud", "x": 620, "y": 150 },
    { "key": "valve3", "type": "valve", "label": "consumoEdificio", "equation": "consumoBase * ( (time % 24 >= 7 && time % 24 <= 9) || (time % 24 >= 19 && time % 24 <= 21) ? 1.6 : (time % 24 <= 5 ? 0.3 : 1.0) )", "isNN": true, "x": 535, "y": 150 },
    { "key": "param5", "type": "variable", "label": "consumoBase", "equation": "300", "x": 535, "y": 60 }
  ],
  "links": [
    { "from": "cloud1", "to": "stock1", "type": "flow", "labelKey": "entradaPB" },
    { "from": "stock1", "to": "stock2", "type": "flow", "labelKey": "salidaBombeo" },
    { "from": "stock2", "to": "cloud2", "type": "flow", "labelKey": "consumoEdificio" },
    { "from": "param1", "to": "valve1", "type": "influence" },
    { "from": "param2", "to": "valve1", "type": "influence" },
    { "from": "stock1", "to": "valve1", "type": "influence" },
    { "from": "stock1", "to": "valve2", "type": "influence" },
    { "from": "stock2", "to": "valve2", "type": "influence" },
    { "from": "param3", "to": "valve2", "type": "influence" },
    { "from": "param4", "to": "valve2", "type": "influence" },
    { "from": "stock2", "to": "valve3", "type": "influence" },
    { "from": "param5", "to": "valve3", "type": "influence" }
  ]
}
