commit
This commit is contained in:
commit
b5ca2d50ac
337 changed files with 24672 additions and 0 deletions
57
dist/GEE/Escopo3/downstream/aereoDownstream/aereo1.js
vendored
Normal file
57
dist/GEE/Escopo3/downstream/aereoDownstream/aereo1.js
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3aereoDownstream1 = void 0;
|
||||
const resposta_1 = require("../../../../resposta");
|
||||
const fatorEmissaoCombustivel_1 = require("../../../ListasFatoresEmissao/fatorEmissaoCombustivel");
|
||||
const gwp_1 = require("../../../ListasFatoresEmissao/gwp");
|
||||
const listas_1 = require("../../../ListasFatoresEmissao/listas");
|
||||
const interfaces_1 = require("../../../interfaces");
|
||||
exports.escopo3aereoDownstream1 = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3aereoDownstream1",
|
||||
descricao: "(Downstream) Transporte Aéreo por aeroportos de origem e destino",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "tipoAereo",
|
||||
descricao: "Tipo de combustível Aereo",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaCombuAereo,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "consumo",
|
||||
descricao: "Consumo de combustível em Litros",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg }) => {
|
||||
const tipoCombustivel = fatorEmissaoCombustivel_1.listaAereo.find((a) => a.ref == cad.tipoAereo);
|
||||
if (!tipoCombustivel) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel aereo");
|
||||
}
|
||||
const QTDCombustivel = Number(reg.consumo);
|
||||
let [CH4, CO2, N2O] = [0, 0, 0];
|
||||
if (tipoCombustivel.combustivel == "Gasolina de Aviação") {
|
||||
CH4 = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_CH4;
|
||||
CO2 = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_CO2;
|
||||
N2O = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_N2O;
|
||||
}
|
||||
else if (tipoCombustivel.combustivel == "Querosene de Aviação") {
|
||||
CH4 = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_CH4;
|
||||
CO2 = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_CO2;
|
||||
N2O = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_N2O;
|
||||
}
|
||||
else {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado fator de emissao");
|
||||
}
|
||||
//Calculo de carbono Final
|
||||
const carbono = QTDCombustivel * (CO2 / 1000) * Number(gwp_1.gwp[0].gwp) +
|
||||
QTDCombustivel * (CH4 / 1000) * Number(gwp_1.gwp[1].gwp) +
|
||||
QTDCombustivel * (N2O / 1000) * Number(gwp_1.gwp[2].gwp);
|
||||
const bio = 0;
|
||||
//Arredondamento para duas casas do valor
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=aereo1.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue