VirtualFCS.Control.ECMS.costFunction

Model Description and References

Evaluates the ECMS equivalent hydrogen-consumption rate in g/s for a candidate fuel-cell/battery power split. Fuel-cell consumption is estimated from the lower heating value and the empirical efficiencyFC function. The battery contribution is weighted by sigma and corrected by the battery state of charge through mu. The implementation uses SOC_max + SOC_min in the state-of-charge normalization denominator. Positive battery power contributes a positive equivalent-consumption term.

Governing Equations

cost := ((powerFC)/(LHVH2 * efficiencyFC(powerFC))) + ((1-2*mu*((SOC - 0.5*(SOC_min+SOC_max))/(SOC_max+SOC_min))) * ((sigma * powerBatt)/(LHVH2 * efficiencyFC(powerFC))));
QuantityDescription
powerFCFuel cell power
LHVH2Lower heating value for hydrogen
muECMS parameter
SOCBattery SOC
SOC_minBattery min SOC
SOC_maxBattery max SOC
sigmaSigma parameter for ECMS
powerBattBattery power
costCost at the current instance

Parameters

NameTypeUnitDefaultDescription
No locally declared parameters.----

Interfaces and Connections

NameKindTypeUnitDescription
powerFCInput signalModelica.Units.SI.PowerWFuel cell power
LHVH2Input signalRealWs/gLower heating value for hydrogen
muInput signalReal1ECMS parameter
SOCInput signalReal1Battery SOC
SOC_minInput signalReal1Battery min SOC
SOC_maxInput signalReal1Battery max SOC
sigmaInput signalReal1Sigma parameter for ECMS
powerBattInput signalModelica.Units.SI.PowerWBattery power
costOutput signalRealg/sCost at the current instance