Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fuel cell draft code #329

Merged
merged 14 commits into from
Aug 14, 2022
Merged

Add fuel cell draft code #329

merged 14 commits into from
Aug 14, 2022

Conversation

matbock
Copy link
Contributor

@matbock matbock commented Apr 13, 2022

The code implements a fuel cell as new component. It is designed just like the water electrolyzer, i.e. it produces water out of hydrogen and oxygen with an additional cooling fluid.
The import of the code is implemented in the components init file, the code itself is located in the folder components/reactors.

@pep8speaks
Copy link

pep8speaks commented Apr 13, 2022

Hello @matbock! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 22:80: E501 line too long (83 > 79 characters)
Line 23:80: E501 line too long (81 > 79 characters)
Line 34:80: E501 line too long (82 > 79 characters)

Comment last updated at 2022-08-14 09:10:28 UTC

@lgtm-com
Copy link

lgtm-com bot commented Apr 13, 2022

This pull request introduces 5 alerts when merging 1600d09 into 26865e3 - view on LGTM.com

new alerts:

  • 4 for Unused import
  • 1 for First parameter of a method is not named 'self'

hf['H2O'] = -286000
hf['H2'] = 0
hf['O2'] = 0
M = molar_masses['H2']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fwitte
Copy link
Member

fwitte commented Apr 30, 2022

@matbock: I added some ToDos as comments in the code, could you have a look at them? Thanks!

Comment on lines 521 to 534
0 = x_\mathrm{i,in,1} - x_\mathrm{i,out,1}
\forall i \in \text{network fluids}
0 = \begin{cases}
1 - x_\mathrm{i,in2} & \text{i=}H_{2}O\\
x_\mathrm{i,in2} & \text{else}
\end{cases} \forall i \in \text{network fluids}
0 = \begin{cases}
1 - x_\mathrm{i,out,2} & \text{i=}O_{2}\\
x_\mathrm{i,out,2} & \text{else}
\end{cases} \forall i \in \text{network fluids}
0 = \begin{cases}
1 - x_\mathrm{i,out,3} & \text{i=}H_{2}\\
x_\mathrm{i,out,3} & \text{else}
\end{cases} \forall i \in \text{network fluids}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some linebreaks missing here:

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants