![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1489207/image.png)
How to connect H2 tank with fuelcell
1 view (last 30 days)
Show older comments
Hello, I'm receiving the below message while trying to connect the H2 tank with the fuel cell. While on fuel cell side the unit is expect in Pa
on H2 (electrolyser) side the unit is kg/s. My impresseion was using a gain or an integrator which could change the unit. Any will help wiil be appreciated.
=== Simulation (Elapsed: 7 sec) ===
Error:Error compiling Simscape network for model ee_solar_standalone_acsystem_withbatterybackup_elec.
Caused by:
['ee_solar_standalone_acsystem_withbatterybackup_elec/Electrolysis unit/PS Integrator']: Type mismatch for equation. The left hand side of the equation is {[1x1 double], 'bar/s'} and the right hand side of the equation is {[1x1 double], 'kg/s'}.
x = {[1x1 double], 'bar'}
I = {[1x1 double], 'kg/s'}
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1480576/image.png)
0 Comments
Answers (1)
Alan
on 21 Sep 2023
Edited: Alan
on 21 Sep 2023
Hi,
I understand that you want to connect to subsystems, and you are facing an issue with units.
Different sensors can be used to match units on the Hydrogen tank and Fuel cell sides. Currently a Flow Rate sensor is used which outputs kg/s. If kg/s unit is to be retained, the input on the fuel cell side will have to be changed. Whereas, if Pa is required, a Pressure & Temperature sensor can be used instead.
To view the unit output by the sensors, enable Units from Information Overlays, which can be found in the Debug tab.
Here are different ways to connect the Hydrogen tank:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1489207/image.png)
0 Comments
See Also
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!