Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 6b1317ea authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

correct energy calculation for supercaps

parent 34a5b87d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public WattSecond StoredEnergy
{
get { return PreviousState.Charge * InternalVoltage; }
// E = 1/2 C * U^2 = 1/2 Q^2/C
get { return PreviousState.Charge * InternalVoltage / 2.0; }
}
public Watt MaxChargePower(Second dt)
......@@ -191,7 +192,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
container[ModalResultField.P_reess_charge_max] = CurrentState.MaxChargePower;
container[ModalResultField.P_reess_discharge_max] = CurrentState.MaxDischargePower;
container[ModalResultField.E_RESS] = CurrentState.Charge * internalVoltage * ModelData.Capacity;
container[ModalResultField.E_RESS] = CurrentState.Charge * CurrentState.Charge / ModelData.Capacity / 2.0;
}
protected override void DoCommitSimulationStep(Second time, Second simulationInterval)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment