{% macro render_fuentes(fuentes, titulo="Fuentes de dimensionamiento") %} {% if fuentes %}
{{ titulo }}
{% for fuente in fuentes %} {% set demanda_fuente = fuente.demanda_fuente_kva|default(fuente.demanda_kva, true) %} {% set subtotal_dimensionamiento = fuente.demanda_aguas_abajo_kva|default(demanda_fuente, true) %} {% set factor_equipo = fuente.factor_demanda_equipo|default(1.0, true) %} {% set criterio_equipo = fuente.criterio_dimensionamiento|default("Demanda aguas abajo", true) %} {% endfor %}
FuenteRutaFases conectadas (kVA)Carga baseFD fuenteDemanda fuenteCriterio equipoDemanda diseño
{{ fuente.nombre }} {{ fuente.ruta|join(" → ") }} {% if fuente.fases_kva is not none %}{% for fase_kva in fuente.fases_kva %}{{ "%.2f"|format(fase_kva) }}{% if not loop.last %} / {% endif %}{% endfor %}{% else %}No aplica{% endif %} {{ "%.2f"|format(fuente.carga_total_kva) }} kVA {{ "%.2f"|format(fuente.factor_demanda) }} {{ "%.2f"|format(demanda_fuente) }} kVA {{ criterio_equipo }} × {{ "%.2f"|format(factor_equipo) }}
Subtotal: {{ "%.2f"|format(subtotal_dimensionamiento) }} kVA
{{ "%.2f"|format(fuente.demanda_kva) }} kVA
Las fases muestran carga conectada. Demanda diseño = subtotal del criterio del equipo × FD equipo; el FD fuente se conserva por separado.
{% endif %} {% endmacro %}

RESUMEN DE EQUIPOS ELÉCTRICOS ESPECIALES

{{ project_name }}

{% for gen in generadores %}
{{ gen.display_title or gen.nombre }} GENERADOR
Sistema: {{ gen.fase }}F {{ gen.tension_v }}
Carga Diseño: {{ gen.carga_diseno_kw_str or (gen.carga_diseno_kva|round(2) ~ ' kVA') }}
Factor Potencia: {{ gen.factor_potencia_str }}
Corriente: {{ gen.corriente_a }}
Capacidad Generador {{ gen.capacidad_kw_str }}
{{ render_fuentes(gen.fuentes_dimensionamiento) }}
Alimentadores ({{ gen.alimentadores|length }})
{% for alim in gen.alimentadores[:2] %}
{{ alim.id_alimentador }}: {{ alim.panel_origen }} → {{ alim.panel_destino }} | {{ alim.breaker_str }} | {{ alim.calibre }}
{% endfor %}
Paneles ({{ gen.cantidad_paneles }})
{% for panel in gen.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% for ups in ups_list %}
{{ ups.display_title or ups.nombre }} UPS
Sistema: {{ ups.fase }}F {{ ups.tension_v }}
Carga Diseño: {{ ups.carga_diseno_kva|round(2) }} kVA
Tiempo Recarga: {{ ups.tiempo_recarga_str }}
Corriente: {{ ups.corriente_a }}
Capacidad UPS {{ ups.capacidad_kva_str }}
Alimentadores ({{ ups.alimentadores|length }})
{% for alim in ups.alimentadores[:2] %}
{{ alim.id_alimentador }}: {{ alim.panel_origen }} → {{ alim.panel_destino }} | {{ alim.breaker_str }} | {{ alim.calibre }}
{% endfor %}
Paneles ({{ ups.cantidad_paneles }})
{% for panel in ups.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% for inv in inversores %}
{{ inv.display_title or inv.nombre }} INVERSOR
Sistema: {{ inv.fase }}F {{ inv.tension_v }}
Carga Diseño: {{ inv.carga_diseno_kva|round(2) }} kVA
Tensión Inversor: {{ inv.tension_inversor_str }}
Corriente: {{ inv.corriente_a }}
Capacidad Inversor {{ inv.capacidad_kva_str }}
Banco de Baterías {{ inv.cantidad_baterias }} unidades
Config: {{ inv.configuracion_str }} | {{ inv.capacidad_bateria_str }}
Autonomía: {{ inv.autonomia_str }} | DoD: {{ inv.profundidad_descarga_percent }}
Paneles ({{ inv.cantidad_paneles }})
{% for panel in inv.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% for cont in controles %}
{{ cont.display_title or cont.nombre }} CONTROL
Sistema: {{ cont.fase }}F {{ cont.tension_v }}
Carga Diseño: {{ cont.carga_diseno_kva|round(2) }} kVA
Corriente Base: {{ cont.corriente_base_a }}
Corriente Diseño (×{{ cont.factor_continuidad }}): {{ cont.corriente_diseno_a }}
Capacidad Control {{ cont.control_size_str }}
Alimentadores ({{ cont.alimentadores|length }})
{% for alim in cont.alimentadores[:2] %}
{{ alim.id_alimentador }}: {{ alim.panel_origen }} → {{ alim.panel_destino }} | {{ alim.breaker_str }} | {{ alim.calibre }}
{% endfor %}
Paneles ({{ cont.cantidad_paneles }})
{% for panel in cont.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% for trfs in transformadores_secundarios %}
{{ trfs.display_title or trfs.nombre }} TRFS
Sistema: {{ trfs.fase }}F
Primario: {{ trfs.tension_primaria_v }}
Secundario: {{ trfs.tension_secundaria_v }}
Carga Diseño: {{ trfs.carga_diseno_kva|round(2) }} kVA
I Primaria: {{ trfs.corriente_primaria_str }}
I Secundaria: {{ trfs.corriente_secundaria_str }}
Capacidad Transformador {{ trfs.transformador_size_str }}
Conexiones físicas ({{ trfs.cantidad_paneles }})
{% for panel in trfs.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{{ render_fuentes(trfs.fuentes_dimensionamiento) }}
{% endfor %} {% for trf in transformadores_principales %}
{{ trf.display_title or trf.nombre or trf.panel_destino }} TRF PRINCIPAL
Sistema: {{ trf.fase }}F {{ trf.tension_v }}
Carga Diseño: {{ trf.carga_diseno_kva|round(2) }} kVA
Corriente: {{ trf.corriente_a }}
Main Breaker: {{ trf.main_breaker_size_str }}
Capacidad Transformador {{ trf.transformador_size }}
Conexiones físicas ({{ trf.paneles_alimentados|length }})
{% for panel in trf.paneles_alimentados %}
{{ panel.name }}
{{ panel.total }} kVA MB: {{ panel.mb }}
{% endfor %}
{% if trf.seleccion is defined %}{{ render_fuentes(trf.seleccion.filas, "Fuentes efectivas de dimensionamiento") }}{% endif %}
{% endfor %} {% for ita in equipos_transferencia %}
{{ ita.display_title or ita.nombre }} {{ ita.tipo_equipo }}
Sistema: {{ ita.fase }}F {{ ita.tension_v }}
Carga Diseño: {{ ita.carga_diseno_kva|round(2) }} kVA
Corriente Base: {{ ita.corriente_base_a }}
Corriente Diseño (×{{ ita.factor_continuidad }}): {{ ita.corriente_diseno_a }}
N° Fuentes: {{ ita.cantidad_fuentes }}
Interruptor Transferencia {{ ita.interruptor_size_str }}
Fuentes
{{ ita.fuentes_multiples|join(' | ') }}
Paneles ({{ ita.cantidad_paneles }})
{% for panel in ita.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% for mb in main_breakers %}
{{ mb.display_title or mb.nombre }} {{ mb.tipo_equipo }}
Sistema: {{ mb.fase }}F {{ mb.tension_v }}
Carga Diseño: {{ mb.carga_diseno_kva|round(2) }} kVA
Corriente Base: {{ mb.corriente_base_a }}
Corriente Diseño (×{{ mb.factor_continuidad }}): {{ mb.corriente_diseno_a }}
Main Breaker {{ mb.main_breaker_size_str }}
Alimentadores ({{ mb.alimentadores|length }})
{% for alim in mb.alimentadores[:2] %}
{{ alim.id_alimentador }}: {{ alim.panel_origen }} → {{ alim.panel_destino }} | {{ alim.breaker_str }} | {{ alim.calibre }}
{% endfor %}
Paneles ({{ mb.cantidad_paneles }})
{% for panel in mb.paneles_detalle %}
{{ panel.nombre }}
{{ panel.carga_kva_str }} BRK: {{ panel.breaker_str }} {{ panel.cantidad_cables_fase }}F
{{ panel.alimentador }} {% if panel.cable_calibre %}Cable: {{ panel.cable_calibre }}{% endif %}
{% endfor %}
{% endfor %} {% if (not generadores or generadores|length == 0) and (not ups_list or ups_list|length == 0) and (not inversores or inversores|length == 0) and (not controles or controles|length == 0) and (not transformadores_secundarios or transformadores_secundarios|length == 0) and (not transformadores_principales or transformadores_principales|length == 0) and (not equipos_transferencia or equipos_transferencia|length == 0) and (not main_breakers or main_breakers|length == 0) %}

No se encontraron equipos eléctricos especiales en este proyecto.

{% endif %}