commit
This commit is contained in:
commit
b5ca2d50ac
337 changed files with 24672 additions and 0 deletions
73
dist/GEE/Escopo3/deslocamento/transportePublico/transportePublico3.js
vendored
Normal file
73
dist/GEE/Escopo3/deslocamento/transportePublico/transportePublico3.js
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3transportePublico3 = void 0;
|
||||
const resposta_1 = require("../../../../resposta");
|
||||
const gwp_1 = require("../../../ListasFatoresEmissao/gwp");
|
||||
const interfaces_1 = require("../../../interfaces");
|
||||
exports.escopo3transportePublico3 = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3transportePublico3",
|
||||
descricao: "Deslocamento casa-trabalho (Transporte público)3",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Descrição do percurso",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
{
|
||||
idCampo: "tipo",
|
||||
descricao: "Tipo de transporte",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: [
|
||||
"Balsa de passageiros",
|
||||
"Balsa de veículos",
|
||||
"Balsa híbrida veículos e passageiros",
|
||||
],
|
||||
},
|
||||
],
|
||||
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,
|
||||
},
|
||||
{
|
||||
campo: "diasTrabalhados",
|
||||
descricao: "Dias trabalhados / ano",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ reg, cad }) => {
|
||||
const registro = reg.diasTrabalhados * reg.distancia * reg.numeroPassageiros;
|
||||
let [fatorCO2, fatorCH4, fatorN20] = [0, 0, 0];
|
||||
if (cad.tipo === "Balsa de passageiros") {
|
||||
fatorCO2 = 0.01941632668;
|
||||
fatorCH4 = 0.000001033333204;
|
||||
fatorN20 = 0.000001033333204;
|
||||
}
|
||||
else if (cad.tipo === "Balsa de veículos") {
|
||||
fatorCO2 = 0.1341943773;
|
||||
fatorCH4 = 0.000007141799174;
|
||||
fatorN20 = 0.000007141799174;
|
||||
}
|
||||
else if (cad.tipo === "Balsa híbrida veículos e passageiros") {
|
||||
fatorCO2 = 0.1169331179;
|
||||
fatorCH4 = 0.000006223158237;
|
||||
fatorN20 = 0.000006223158237;
|
||||
}
|
||||
const emissaoCO2 = (registro * fatorCO2) / 1000;
|
||||
const emissaoCH4 = (registro * fatorCH4) / 1000;
|
||||
const emissaoN2O = (registro * fatorN20) / 1000;
|
||||
const carbono = Number(emissaoCO2) * Number(gwp_1.gwp[0].gwp) +
|
||||
Number(emissaoCH4) * Number(gwp_1.gwp[1].gwp) +
|
||||
Number(emissaoN2O) * Number(gwp_1.gwp[2].gwp);
|
||||
const bio = 0;
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=transportePublico3.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue