Giter Club home page Giter Club logo

opem's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar engnadeau avatar grosa1 avatar kasraaskari avatar mahi97 avatar nnadeau avatar pyup-bot avatar sadrasabouri avatar sepandhaghighi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opem's Issues

General syntax/grammar fixes in `opem/Documents/Amphlett.ipynb`

  • There are several grammar/syntax errors throughout the example that reduce the readability of the document.
  • E.g.,:
    • is a parametric model that predicting the performance
    • Main concepts in the Amphlett model includes Nernst voltage, PEMFC
    • This parametric model of PEMFC using a combination of mechanistic and empirical approach.
    • For most fuel cells and their practical operating range, a linear approximation

Do not use `except Exception`

`check-manifest`: List of files in version control and sdist do not match

$ check-manifest
lists of files in version control and sdist do not match!
missing from sdist:
  AUTHORS.md
  CHANGELOG.md
  CONTRIBUTING.md
  Documents
  Documents/Amphlett.ipynb
  Documents/Chamberline_Kim.ipynb
  Documents/Larminie_Dicks.ipynb
  Documents/Padulles1.ipynb
  Documents/Padulles2.ipynb
  Documents/Padulles_Amphlett.ipynb
  Documents/Padulles_Hauer.ipynb
  Documents/README.md
  Documents/images
  Documents/images/Padulles-Amphlett-Diagram.jpg
  Documents/images/Padulles-Diagram.jpg
  Documents/images/Padulles-Hauer-Diagram.jpg
  Documents/images/Padulles2-Diagram.jpg
  Documents/images/Static-Model-Graphic.jpg
  INSTALL.md
  OPEM.spec
  PEM.md
  appveyor.yml
  otherfile
  otherfile/Fuel Cell Graphic.gif
  otherfile/OPEM_BLOCK_DIAGRAM.jpg
  otherfile/PEMFC1.jpg
  otherfile/PEMFC2.jpg
  otherfile/Version.rc
  otherfile/icon.ico
  otherfile/logo.png
  otherfile/test.csv
  otherfile/test.html
  otherfile/test.opem
  paper
  paper/paper.bib
  paper/paper.md
  requirements.txt
suggested MANIFEST.in rules:
  include *.md
  include *.spec
  include *.txt
  include *.yml
  recursive-include Documents *.ipynb
  recursive-include Documents *.jpg
  recursive-include Documents *.md
  recursive-include otherfile *.csv
  recursive-include otherfile *.gif
  recursive-include otherfile *.html
  recursive-include otherfile *.ico
  recursive-include otherfile *.jpg
  recursive-include otherfile *.opem
  recursive-include otherfile *.png
  recursive-include otherfile *.rc
  recursive-include paper *.bib
  recursive-include paper *.md
  • Files and directories should be explicitly included/excluded/pruned from MANIFEST.ini

Add New Plots To App

  • Efficiency vs I
  • PH2 vs I
  • PO2 vs I
  • Power vs R
  • Anode/Cathode
  • Power vs Efficiency

General grammar/syntax fixes in paper

E.g.,:

  • In addition to the decreasing fuel sources, also pollution and global ...

  • reaction between hydrogen-rich fuel source and oxygen

  • ... of these devices owing to high efficiency relative

  • PEM fuel cells are a high-efficiency power source without pollution for urban vehicles, corroborated by recent legislative initiatives, That’s why these devices have become a great deal of attention to the option of fuel-cell-powered vehicles

  • Best fuel for fuel cell powered vehicle is hydrogen,

  • because the water is an only product of the reaction between hydrogen and air

  • protons that, flow via the membrane to the cathode

  • An external circuit that linked to the two electrodes containing the collection of electrons as electrical current

  • water and heat will be produced from the protons that flowing via the electrolyte membrane

  • The OPEM (software named based on open proton exchange membrane) written in Python, Python is a language that is very powerful for developers, but is also accessible to scientists.

  • In addition, dynamic models improve static models and complete the simulation process.

  • fluid science and material merge

  • make the simulation of fuel cell more

  • Simple linear regression used for this approximation and useful overall parameters such P(Thermal) and P(Elec) calculated by Simpson’s Rule

  • The method for using in this software is the specified inputs are presented according to the equations of each model by the user and outputs is in

  • That is represented by means of its voltage-current characteristic obtained in static operating mode

  • That the electrodes channel temperatures/pressures, t...

  • variables or constants and in model II, N... (split sentence)

  • Also, watch out for arbitrary capitalization, e.g.,: hydrogen vs Hydrogen

Why not use SciPy or NumPy?

SciPy and NumPy are considered the gold-standard and foundations of the Python scientific stack. Several functions can easily be replaced by these well-documented and tested packages.

E.g.,

opem/opem/Functions.py

Lines 14 to 34 in 41ed7e4

def integrate(y_vals, h):
'''
This function calculate integral with Simpson's Rule
:param y_vals: output values
:type y_valS : list
:param h: interval
:type h : float
:return: integrate output as float
'''
try:
i = 1
total = y_vals[0] + y_vals[-1]
for y in y_vals[1:-1]:
if i % 2 == 0:
total += 2 * y
else:
total += 4 * y
i += 1
return total * (h / 3.0)
except Exception:
return None

Can easily be replaced by numpy.trapz or scipy.integrate.trapz

Reference past research

The statement Previously, some research on modeling and simulation of PEMFC has been performed is not backed with references.

Requirements should be pinned

Exe File Crash

Error : The application was unable to start correctly (0xc000007b). Click OK to close the application.

Nitpick: Modelling vs. Modeling

  • Modelling/Modeling used interchangeably throughout documentation and source code
  • Pick one:
    • Modelling = international
    • Modeling = US

Follow PEP8 style guidelines (or explicitly define your own)

  • It would be preferable if the package followed PEP8 guidelines
  • From the PEP8 documentation:
One of Guido's key insights is that code is read much more often than it is written. The guidelines provided here are intended to improve the readability of code and make it consistent across the wide spectrum of Python code. As PEP 20 says, "Readability counts".

A style guide is about consistency. Consistency with this style guide is important. Consistency within a project is more important. Consistency within one module or function is the most important.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.