commit
This commit is contained in:
commit
b5ca2d50ac
337 changed files with 24672 additions and 0 deletions
13
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.d.ts
vendored
Normal file
13
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.d.ts
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { type tipoFonteObjeto } from "../../interfaces";
|
||||
export declare const fontesEscopo2PerdasTDEsc: tipoFonteObjeto<[
|
||||
"tipoFonte",
|
||||
"combustivel",
|
||||
"possuiFator",
|
||||
"eficiencia"
|
||||
], [
|
||||
"eletricidade",
|
||||
"fatorEmissao",
|
||||
"fatorEmissaoCH4",
|
||||
"fatorEmissaoN2O",
|
||||
"fatorEmissaoBio"
|
||||
]>;
|
||||
112
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.js
vendored
Normal file
112
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.js
vendored
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fontesEscopo2PerdasTDEsc = void 0;
|
||||
const resposta_1 = require("../../../resposta");
|
||||
const gwp_1 = require("../../ListasFatoresEmissao/gwp");
|
||||
const listaEnergia_1 = require("../../ListasFatoresEmissao/listaEnergia");
|
||||
const listas_1 = require("../../ListasFatoresEmissao/listas");
|
||||
const interfaces_1 = require("../../interfaces");
|
||||
exports.fontesEscopo2PerdasTDEsc = {
|
||||
escopo: "Escopo2",
|
||||
idTipoFonte: "PerdasTDLoc",
|
||||
descricao: "Perdas T&D Escolha de compra",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "tipoFonte",
|
||||
descricao: "Tipo de fonte de geração de energia",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: [
|
||||
"Eólica",
|
||||
"Fotovoltaica",
|
||||
"Heliotérmica",
|
||||
"Geotérmica",
|
||||
"Hidroelétrica",
|
||||
"Termoelétrica",
|
||||
"Maremotriz",
|
||||
],
|
||||
},
|
||||
{
|
||||
idCampo: "combustivel",
|
||||
descricao: "Combustível",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaEnergiaEmissoes,
|
||||
},
|
||||
{
|
||||
idCampo: "possuiFator",
|
||||
descricao: "Você possui o fator de emissão para essa fonte?",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: ["Sim", "Não"],
|
||||
},
|
||||
{
|
||||
idCampo: "eficiencia",
|
||||
descricao: "Qual a eficiência da planta geradora?",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "eletricidade",
|
||||
descricao: "Eletricidade abordagem Esc.Compra",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "fatorEmissao",
|
||||
descricao: "Fator de emissão CO2 sugerido",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "fatorEmissaoCH4",
|
||||
descricao: "Fator de emissão CH4 sugerido",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "fatorEmissaoN2O",
|
||||
descricao: "Fator de emissão N2O sugerido",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "fatorEmissaoBio",
|
||||
descricao: "Fator de emissão CO2 Biogênico sugerido",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg }) => {
|
||||
const tipoFonte = cad.tipoFonte;
|
||||
if (!tipoFonte) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado eficiencia");
|
||||
}
|
||||
const combustivel = listaEnergia_1.listaEnergia.find((a) => a.ref == cad.combustivel);
|
||||
if (!combustivel) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel");
|
||||
}
|
||||
const possuiFator = cad.possuiFator;
|
||||
if (!possuiFator) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel");
|
||||
}
|
||||
const eficiencia = cad.eficiencia;
|
||||
if (!eficiencia) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel");
|
||||
}
|
||||
let [CH4, CO2, N2O, BIO, i] = [0, 0, 0, 0, 0];
|
||||
const fatores = (index, TipoComb) => {
|
||||
if (combustivel.combustivel == TipoComb) {
|
||||
CH4 = listaEnergia_1.listaEnergia[index].fator_emissao_CH4;
|
||||
CO2 = listaEnergia_1.listaEnergia[index].fator_emissao_CO2;
|
||||
N2O = listaEnergia_1.listaEnergia[index].fator_emissao_N2O;
|
||||
BIO = 1;
|
||||
}
|
||||
};
|
||||
for (i = 0; i < 50; i++) {
|
||||
fatores(i, listaEnergia_1.listaEnergia[i].combustivel);
|
||||
}
|
||||
const emissaoCO2 = (Number(reg.eletricidade) / (cad.eficiencia / 100)) * CO2;
|
||||
const emissaoCH4 = (Number(reg.eletricidade) / (cad.eficiencia / 100)) * CH4;
|
||||
const emissaoN2O = (Number(reg.eletricidade) / (cad.eficiencia / 100)) * N2O;
|
||||
const carbono = emissaoCO2 * Number(gwp_1.gwp[0].gwp) +
|
||||
emissaoCH4 * Number(gwp_1.gwp[1].gwp) +
|
||||
emissaoN2O * Number(gwp_1.gwp[2].gwp);
|
||||
const bio = BIO * 1;
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=perdasTDEsc.js.map
|
||||
1
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.js.map
vendored
Normal file
1
dist/GEE/Escopo2/perdasTDEsc/perdasTDEsc.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"perdasTDEsc.js","sourceRoot":"","sources":["../../../../src/GEE/Escopo2/perdasTDEsc/perdasTDEsc.ts"],"names":[],"mappings":";;;AAAA,gDAA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.d.ts
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { type tipoFonteObjeto } from "../../interfaces";
|
||||
export declare const PerdasTDEscNaoRastreada: tipoFonteObjeto<[
|
||||
"descricao"
|
||||
], [
|
||||
"eletricidade"
|
||||
]>;
|
||||
35
dist/GEE/Escopo2/perdasTDEsc/perdasTDEscNaoRastreada.js
vendored
Normal file
35
dist/GEE/Escopo2/perdasTDEsc/perdasTDEscNaoRastreada.js
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PerdasTDEscNaoRastreada = void 0;
|
||||
const resposta_1 = require("../../../resposta");
|
||||
const listaFatorAno_1 = require("../../ListasFatoresEmissao/listaFatorAno");
|
||||
const interfaces_1 = require("../../interfaces");
|
||||
exports.PerdasTDEscNaoRastreada = {
|
||||
escopo: "Escopo2",
|
||||
idTipoFonte: "PerdasTDEscNaoRastreada",
|
||||
descricao: "Perdas T&D Escolha de compra não rastreadas",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Descrição da Fonte",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "eletricidade",
|
||||
descricao: "Perdas por Transmissão e Distribuição (MWh)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg, inventario }) => {
|
||||
const desc = cad.descricao;
|
||||
if (!desc) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado descrição");
|
||||
}
|
||||
const feSin = listaFatorAno_1.listaFatorAno[Number(inventario.anoInventario) - 2000].feSin;
|
||||
const carbono = Number(reg.eletricidade) * feSin;
|
||||
return resposta_1.respostaCM.addResultado([carbono, null]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=perdasTDEscNaoRastreada.js.map
|
||||
1
dist/GEE/Escopo2/perdasTDEsc/perdasTDEscNaoRastreada.js.map
vendored
Normal file
1
dist/GEE/Escopo2/perdasTDEsc/perdasTDEscNaoRastreada.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"perdasTDEscNaoRastreada.js","sourceRoot":"","sources":["../../../../src/GEE/Escopo2/perdasTDEsc/perdasTDEscNaoRastreada.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAC/C,4EAAyE;AACzE,iDAAwE;AAE3D,QAAA,uBAAuB,GAGhC;IACF,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,yBAAyB;IACtC,SAAS,EAAE,6CAA6C;IACxD,iBAAiB,EAAE;QACjB;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,oBAAoB;YAC/B,IAAI,EAAE,2BAAc,CAAC,KAAK;SAC3B;KACF;IACD,iBAAiB,EAAE;QACjB;YACE,KAAK,EAAE,cAAc;YACrB,SAAS,EAAE,6CAA6C;YACxD,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B;KACF;IACD,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE;QACpC,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,qBAAU,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,GAAG,6BAAa,CAAC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;QAE3E,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;QAEjD,OAAO,qBAAU,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC;CACF,CAAC"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue