Skip to content

Commit

Permalink
Display battery chemistry in sample cars
Browse files Browse the repository at this point in the history
Also, update sample SUV to use NMC and LFP instead of NCA.
  • Loading branch information
PatrickNLT committed Aug 16, 2023
1 parent ccb32fc commit b27261e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function Landing() {
totalMassOtherThanSteelOrAluminiumKg: 100,
massWithoutDriverKg: 1900,
batteryCapacityKWh: 70,
chemistry: BatteryChemistry.NCA_Graphite,
chemistry: BatteryChemistry.NMC622_Graphite,
isLargeCar: true,
}

Expand All @@ -85,7 +85,7 @@ export function Landing() {
totalMassOtherThanSteelOrAluminiumKg: 60,
massWithoutDriverKg: 1200,
batteryCapacityKWh: 30,
chemistry: BatteryChemistry.NCA_Graphite,
chemistry: BatteryChemistry.LFP_Graphite,
isLargeCar: false,
}

Expand Down
3 changes: 3 additions & 0 deletions src/SampleCarCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export function SampleCarCard(props: { car: SampleCar, maxTotalFootprint: number
<div className="font-medium text-lg">
{`${emoji} ${name}`}
</div>
<div>
{`Batterie ${footprintEstimator.chemistry} ${footprintEstimator.batteryCapacityKWh} kWh`}
</div>
<div className="flex flex-row">
<EnvironmentalScore footprintEstimator={footprintEstimator} />
</div>
Expand Down
14 changes: 7 additions & 7 deletions src/methodology/footprintItems/batteryFootprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export enum BatteryRegion {
}

export enum BatteryChemistry {
NMC111_Graphite = 'NMC111_Graphite',
NMC532_Graphite = 'NMC532_Graphite',
NMC622_Graphite = 'NMC622_Graphite',
NMC811_Graphite = 'NMC811_Graphite',
NCA_Graphite = 'NCA_Graphite',
LFP_Graphite = 'LFP_Graphite',
Other_Chemistry = 'Other_Chemistry'
NMC111_Graphite = 'NMC111 Graphite',
NMC532_Graphite = 'NMC532 Graphite',
NMC622_Graphite = 'NMC622 Graphite',
NMC811_Graphite = 'NMC811 Graphite',
NCA_Graphite = 'NCA',
LFP_Graphite = 'LFP',
Other_Chemistry = 'Autre chimie'
}

export function batteryChemistryName(batteryChemistry: BatteryChemistry) {
Expand Down

0 comments on commit b27261e

Please sign in to comment.