Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions src/prog_models/models/battery_electrochem.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,14 @@ class BatteryElectroChemEOD(PrognosticsModel):
| An : Redlich-Kister parameters (- electrode)
| VEOD : End of Discharge Voltage Threshold
| x0 : Initial state
| nomCapacity : Nominal capacity (Ah)
| CRateMin : Minimum C rate
| CRateMax : Maximum C rate
"""
events = ['EOD']
inputs = ['i']
states = ['tb', 'Vo', 'Vsn', 'Vsp', 'qnB', 'qnS', 'qpB', 'qpS']
observables_keys = ['currentMin', 'currentMax']
outputs = ['t', 'v']

default_parameters = { # Set to defaults
Expand Down Expand Up @@ -209,7 +213,12 @@ class BatteryElectroChemEOD(PrognosticsModel):

# End of discharge voltage threshold
'VEOD': 3.0,
'VDropoff': 0.1 # Voltage above EOD after which voltage will be considered in SOC calculation
'VDropoff': 0.1, # Voltage above EOD after which voltage will be considered in SOC calculation
# current ratings
'nomCapacity': 2.2, # nominal capacity, Ah
'CRateMin': 0.7, # current necessary for cruise,
'CRateMax': 2.5 # current necessary for hover
# CRateMin, CRateMax based on values determined in `C. Silva and W. Johnson, "VTOL Urban Air Mobility Concept Vehicles for Technology Development" Aviation and Aeronautics Forum (Aviation 2018),June 2018. https://arc.aiaa.org/doi/abs/10.2514/6.2018-3847`
}

def get_derived_callbacks(self):
Expand Down Expand Up @@ -285,6 +294,15 @@ def event_state(self, x):
'EOD': min(charge_EOD, voltage_EOD)
}

def observables(self, x) -> dict:
params = self.parameters
nomCapacity = params['nomCapacity']
CRateMin = params['CRateMin']
CRateMax = params['CRateMax']
return {
'currentMin': nomCapacity * CRateMin,
'currentMax': nomCapacity * CRateMax,
}
def output(self, x):
params = self.parameters
An = params['An']
Expand Down Expand Up @@ -494,4 +512,4 @@ def threshold_met(self, x):
t_met.update(BatteryElectroChemEOL.threshold_met(self, x))
return t_met

BatteryElectroChem = BatteryElectroChemEODEOL
BatteryElectroChem = BatteryElectroChemEODEOL