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/viagemOnibus.js
vendored
Normal file
63
dist/GEE/Escopo3/viagensNegocios/viagemOnibus.js
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3viagemOnibus = void 0;
|
||||
const resposta_1 = require("../../../resposta");
|
||||
const gwp_1 = require("../../ListasFatoresEmissao/gwp");
|
||||
const listaFatorAno_1 = require("../../ListasFatoresEmissao/listaFatorAno");
|
||||
const interfaces_1 = require("../../interfaces");
|
||||
exports.escopo3viagemOnibus = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3viagemOnibus",
|
||||
descricao: "Viagem a negócios realizadas em ônibus por Km percorridos",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Descrição do percurso",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
{
|
||||
idCampo: "tipoTransporte",
|
||||
descricao: "Tipo de Onibus",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: ["Ônibus municipal", "Ônibus de viagem"],
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "numeroPassageiros",
|
||||
descricao: "Número de passageiros",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "distancia",
|
||||
descricao: "Distância percorrida (km) por trecho",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ reg, inventario, cad }) => {
|
||||
const bioN2O = 0.0;
|
||||
const oleo2O = 0.0;
|
||||
const bioCH4 = 0.0;
|
||||
const oleoCH4 = 0.0;
|
||||
let fatorCO2 = 0;
|
||||
if (cad.tipoTransporte == "Ônibus municipal") {
|
||||
fatorCO2 = 0.3;
|
||||
}
|
||||
else if (cad.tipoTransporte == "Ônibus de viagem") {
|
||||
fatorCO2 = 0.8;
|
||||
}
|
||||
const emissaoCO2 = (reg.distancia *
|
||||
reg.numeroPassageiros *
|
||||
fatorCO2 *
|
||||
(1 - listaFatorAno_1.listaFatorAno[Number(inventario.anoInventario) - 2000].percBio)) /
|
||||
1000;
|
||||
const emissaoCH4 = bioCH4 + oleoCH4;
|
||||
const emissaoN2O = bioN2O + oleo2O;
|
||||
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=viagemOnibus.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue