ccs-sim
Version:
Modelling CCS systems
20 lines (19 loc) • 642 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
class FluidData {
constructor(data) {
this.uniquePressures = [];
this.groupedByPressure = {};
this.data = data;
data.forEach((datum) => {
if (!this.groupedByPressure[datum[0]]) {
this.groupedByPressure[datum[0]] = [];
}
this.groupedByPressure[datum[0]].push(datum);
if (!this.uniquePressures.includes(Number(datum[0]))) {
this.uniquePressures.push(Number(datum[0]));
}
});
}
}
exports.default = FluidData;
;