%% Vehicle with Fuel Cell Powertrain
%
% This example shows a fuel cell powertrain modeled in Simscape. A single
% fuel cell stack in parallel with a battery powers a single motor that
% propels the vehicle. The fuel cell is modeled using a custom domain to
% track the different species of gas that are used in the fuel cell. The
% vehicle can be tested on custom drive cycles or using the Drive Cycle
% Source from Powertrain Blockset.
%
% Products Used
%
% * <https://www.mathworks.com/products/matlab.html MATLAB>
% * <https://www.mathworks.com/products/matlab.html Simulink>
% * <https://www.mathworks.com/products/simscape.html Simscape>
% * <https://www.mathworks.com/products/simscape-driveline.html Simscape Driveline>
% * <https://www.mathworks.com/products/simscape-electrical.html Simscape Electrical>
% * <https://www.mathworks.com/products/simscape-fluids.html Simscape Fluids>
% * <https://www.mathworks.com/products/powertrain.html Powertrain Blockset>
%
%
% Copyright 2019-2023 The MathWorks, Inc.
%% Model
open_system('ssc_car_fuel_cell_1motor')
set_param(find_system(bdroot,'MatchFilter',@Simulink.match.allVariants,'FindAll','on','type','annotation','Tag','ModelFeatures'),'Interpreter','off');
%% Powertrain Subsystem
%
% The fuel cell and battery are connected on a DC electrical network to the
% motor. The control system determines how much power to draw from the
% battery and fuel cell. During braking events, power is fed back into the
% battery to recharge it. A thermal system modeled using a fluid network
% controls the temperature of the battery, DC-DC converters, and the motor.
open_system('ssc_car_fuel_cell_1motor/Vehicle/Powertrain/FuelCell1Motor','force')
%% Fuel Cell Subsystem
%
% The flow of oxygen, hydrogen, nitrogen, and water is captured in a custom
% Simscape domain. Equations for reactions and heat generated are
% implemented in Simscape language. A thermal management system keeps the
% fuel cell at the optimal operating temperature.
open_system('ssc_car_fuel_cell_1motor/Vehicle/Powertrain/FuelCell1Motor/Fuel Cell/Fuel Cell','force')
%% Simulation Results from Simscape Logging: Cycle 1
%
% Plot shows how the current from the battery and fuel cell vary as the car
% is driven along a standard drive cycle. Note that the battery is
% recharged (current changes sign) while the fuel cell is only discharged.
set_param('ssc_car_fuel_cell_1motor/Driver/Drive Cycle','LabelModeActiveChoice','Data');
set_param('ssc_car_fuel_cell_1motor/Driver/Drive Cycle/Drive Cycle Data','popup_cycle','Cycle 1');
set_param('ssc_car_fuel_cell_1motor','StopTime','195');
sim('ssc_car_fuel_cell_1motor');
sm_car_plot7power(logsout_ssc_FuelCell1Motor);
sm_car_plot8fuelcell(simlog_ssc_FuelCell1Motor);
%% Simulation Results from Simscape Logging: Cycle 2
set_param('ssc_car_fuel_cell_1motor/Driver/Drive Cycle','LabelModeActiveChoice','Data');
set_param('ssc_car_fuel_cell_1motor/Driver/Drive Cycle/Drive Cycle Data','popup_cycle','Cycle 2');
set_param('ssc_car_fuel_cell_1motor','StopTime','2474');
sim('ssc_car_fuel_cell_1motor');
sm_car_plot7power(logsout_ssc_FuelCell1Motor);
sm_car_plot8fuelcell(simlog_ssc_FuelCell1Motor);
%%
%clear all
close all
bdclose all
Matlab科研辅导帮
- 粉丝: 3w+
- 资源: 7814
最新资源
- 带补偿和电力市场上升问题的二元平衡问题的精确求解方法 二元策略中的纳什均衡 GAMS源代码,代码按照高水平文章复现,保证正确 纳什均衡在游戏中与二元决策变量包括薪酬支付和激励相容约束的非合作博弈理论直
- 利用群稀疏性进行风险约束的微电网重构 matlab源代码,代码按照高水平文章复现,保证正确 针对现有的配电系统和微电网,在存在可再生发电和负载森林化错误的情况下,考虑系统重构任务 通过求解一个机会约
- this is a very very file
- (1)微电网能源管理系统基于粒子群优化算法的风力光伏储能风光储系统的实时能量管理 如图123 matlab源代码,代码按照高水平文章复现,保证正确 粒子群优化算法(PSO),并将其应用于独立风力微型发
- python 操作涉及删除链表的第一个节点
- 西南科技大学数据挖掘实验1.zip
- 配电网潮流解的存在性与线性逼近 MATLAB源代码,代码按照高水平文章复现,保证正确 讨论了描述平衡配电网的非线性功率方程的显式近似解的推导问题 给出了潮流方程实际解存在的充分条件,并给出了PQ母线
- 西南科技大学数据挖掘实验2.zip
- 西门子PLC smart200伺服液压PID昆仑通态人机界面 包括整套SMART200 PLC程序,昆仑通态MCGS程序,东元伺服,外挂编码器高速输入,PLC用户库,液压PID控制,温度采集、压力采
- 西南科技大学数据挖掘实验3.zip
- 西南科技大学数据挖掘实验4.zip
- 台达触摸屏上位机 C#监控触摸屏软元件数据,MODBUS TCP协议 1,例子简单易懂,自己写的程序,程序有注解
- Halcon联合C#最新版本视觉开发框架,源码,采用仿visionpro拖拉流程形式,非常适合学习使用,摸索完成后可修改参考用于项目使用 我用的halcon版本为17 ,其它版本需要自行重新引用dl
- this is is is vey very file
- 信捷XDPLC系列5轴 6轴脉冲步进工程带屏 数据配方 运行信息实时监控 学习教程调试OK版
- 微网电压调节控制源代码,保证正确 通过控制分布式微网发电无功注入来调节配电网电压分布的问题 首先介绍了一类非常普遍的纯局部控制策略,并通过一个反例演示了这类策略中的所有策略都无法将电网驱动到可行电压
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈