The diffence between SOC and DOD

State of Charge(SOC) is the proportion of the charge available at this point, compared to the total charge available when charging.

Death of Discharge(DOD) is the charge removed from the total charge available which unit is amper-hour(Ah) when discharging.

SOC isn't the inverse of DOD. The difference between them:

  • 1. Units are different.
  • 2. The difference in value when the battery is empty. For example, in that case, the SOC is 0% and the DOD is 100Ah when battery capacity is 100Ah, while the SOC is 0% and the DOD is 50Ah when battery capacity is 50Ah.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
定义一个Time类,包含: 私有数据成员: (1)表示时间的时(hour)分(minute)秒(second),均为整型量; (2)表示基准时间的时(baseHour)分(baseMinute)秒(baseSecond),均为整型量,而且必须是静态的。基准时间的初始值为1小时10分10秒。 (3)静态成员函数static int timeToSecond(Time t); 将时间t转化为总秒数,返回该秒数。 公有成员函数: (1)构造函数 Time(int=0, int=0, int=0); 完成对时间的初始化; (2)静态成员函数static int timeBaseDiffence(Time t); 计算时间t与基准时间相差的总秒数,返回该秒数。提示:将时分秒表示的时间转化为总秒数表示的时间。 (3)void show(); 以hour:minute:second 格式输出时间,例如1:10:10,表示1小时10分10秒。 友元函数: (1)friend int diffence(Time t1, Time t2); 返回t1和t2以秒为单位的时间差(t1-t2),返回该差值。要求调用成员函数timeToSecond()分别将t1和t2转换成总秒数,然后计算差值。 主函数: (1)定义时间对象t1,初始化为1小时11分2秒。 (2)定义时间对象t2,初始化为1小时12分50秒。 (3)输出时间t1和t2。 (4)计算并输出t1与基准时间的差值,即(t1-基准时间),正确结果是52秒。 (5)计算并输出t2与基准时间的差值,即(t2-基准时间),正确结果是160秒。 (6)计算并输出t1与t2的时间差,即(t1-t2),正确结果是 -108秒
05-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值