restauração
This commit is contained in:
parent
c7c8e377c3
commit
4d5c641223
357 changed files with 23543 additions and 591 deletions
63
dist/GEE/Escopo3/viagensNegocios/viagemAeronave/viagemAeronave2.js
vendored
Normal file
63
dist/GEE/Escopo3/viagensNegocios/viagemAeronave/viagemAeronave2.js
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3aeronave2 = void 0;
|
||||
const resposta_1 = require("../../../../resposta");
|
||||
const gwp_1 = require("../../../ListasFatoresEmissao/gwp");
|
||||
const interfaces_1 = require("../../../interfaces");
|
||||
exports.escopo3aeronave2 = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3aeronave2",
|
||||
descricao: "Viagens em aeronaves de acordo com quilômetros percorridos",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Registro do passageiro",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
{
|
||||
idCampo: "tipo",
|
||||
descricao: "Tipo de Viagem Aérea",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: [
|
||||
"Curta distância (d ≤ 500 km)",
|
||||
"Média distância (500 < d ≤ 3.700 km)",
|
||||
"Longa distância (d > 3.700 km)",
|
||||
],
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "distancia",
|
||||
descricao: "Quilometragem do passageiro (km)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ reg, cad }) => {
|
||||
const km = reg.distancia;
|
||||
let [fatorN2O, fatorCH4, fatorCO2] = [0, 0, 0];
|
||||
if (cad.tipo == "Curta distância (d ≤ 500 km)") {
|
||||
fatorN2O = 0.0;
|
||||
fatorCH4 = 0.000003703703704;
|
||||
fatorCO2 = 0.1191759259;
|
||||
}
|
||||
else if (cad.tipo == "Média distância (500 < d ≤ 3.700 km)") {
|
||||
fatorN2O = 0.0;
|
||||
fatorCH4 = 0.0000003703703704;
|
||||
fatorCO2 = 0.07444444444;
|
||||
}
|
||||
else if (cad.tipo == "Longa distância (d > 3.700 km)") {
|
||||
fatorN2O = 0.0;
|
||||
fatorCH4 = 0.0000003703703704;
|
||||
fatorCO2 = 0.09362037037;
|
||||
}
|
||||
const emissaoCO2 = ((1 + 8 / 100) * km * fatorCO2) / 1000;
|
||||
const emissaoCH4 = ((1 + 8 / 100) * km * fatorCH4) / 1000;
|
||||
const emissaoN2O = ((1 + 8 / 100) * km * fatorN2O) / 1000;
|
||||
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 = 0;
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=viagemAeronave2.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue