-
Notifications
You must be signed in to change notification settings - Fork 38
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
Docs update #28
Merged
Merged
Docs update #28
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
scikit-aero | ||
=========== | ||
.. image:: doc/source/_static/logo.png | ||
:align: center | ||
|
||
.. image:: https://img.shields.io/maintenance/yes/2019.svg?style=for-the-badge | ||
:target: https://github.com/AeroPython/scikit-aero | ||
:alt: Maintenance | ||
|
||
.. image:: https://img.shields.io/pypi/l/scikit-aero.svg?style=for-the-badge | ||
:target: https://github.com/AeroPython/scikit-aero/blob/master/COPYING | ||
:alt: License | ||
|
||
.. image:: https://readthedocs.org/projects/pip/badge/?version=latest&style=for-the-badge | ||
:target: https://aeropython.github.io/scikit-aero/ | ||
:alt: Docs | ||
|
||
.. image:: https://img.shields.io/badge/mailing%20list-groups.io-8cbcd1.svg?style=for-the-badge | ||
:target: [email protected] | ||
:alt: Email | ||
|
||
| | ||
|
||
:Name: scikit-aero | ||
:Description: Aeronautical engineering calculations in Python | ||
:Website: https://github.com/AeroPython/scikit-aero | ||
:Author: AeroPython Team <[email protected]> | ||
:Version: 0.2.dev0 | ||
|
||
| | ||
|
||
Scikit-aero | ||
----------- | ||
|
||
scikit-aero is a Python package for various aeronautical engineering | ||
calculations. It is based on several existing Python packages on the field, | ||
but intends to provide pythonic syntax, use of SI units and full NumPy arrays | ||
|
@@ -41,23 +64,29 @@ Future | |
Usage | ||
===== | ||
|
||
Atmosphere properties:: | ||
Atmosphere properties: | ||
|
||
>>> from skaero.atmosphere import coesa | ||
>>> h, T, p, rho = coesa.table(1000) # Altitude by default, 1 km | ||
.. code-block:: python | ||
|
||
Inverse computations allowed with density and pressure, which are monotonic:: | ||
from skaero.atmosphere import coesa | ||
h, T, p, rho = coesa.table(1000) # Altitude by default, 1 km | ||
|
||
>>> h, T, p, rho = coesa.table(p=101325) # Pressure of 1 atm | ||
Inverse computations allowed with density and pressure, which are monotonic: | ||
|
||
Gas dynamics calculations:: | ||
.. code-block:: python | ||
|
||
>>> from skaero.gasdynamics import isentropic, shocks | ||
>>> fl = isentropic.IsentropicFlow(gamma=1.4) | ||
>>> p = 101325 * fl.p_p0(M=0.8) # Static pressure given total pressure of 1 atm | ||
>>> ns = shocks.Shock(M_1=2.5, gamma=1.4) | ||
>>> M_2 = ns.M_2 # Mach number behind a normal shock wave | ||
>>> os = shocks.Shock(M_1=3.0, theta=np.radians(25), weak=True) | ||
h, T, p, rho = coesa.table(p=101325) # Pressure of 1 atm | ||
|
||
Gas dynamics calculations: | ||
|
||
.. code-block:: python | ||
|
||
from skaero.gasdynamics import isentropic, shocks | ||
fl = isentropic.IsentropicFlow(gamma=1.4) | ||
p = 101325 * fl.p_p0(M=0.8) # Static pressure given total pressure of 1 atm | ||
ns = shocks.Shock(M_1=2.5, gamma=1.4) | ||
M_2 = ns.M_2 # Mach number behind a normal shock wave | ||
os = shocks.Shock(M_1=3.0, theta=np.radians(25), weak=True) | ||
|
||
Dependencies | ||
============ | ||
|
@@ -87,9 +116,11 @@ version of IPython and its dependencies. | |
Install | ||
======= | ||
|
||
This package uses distutils. To install, execute as usual:: | ||
This package uses distutils. To install, execute as usual: | ||
|
||
$ python setup.py install | ||
.. code-block:: | ||
|
||
$ python setup.py install | ||
|
||
It is recommended that you **never ever use sudo** with distutils, pip, | ||
setuptools and friends in Linux because you might seriously break your | ||
|
@@ -109,13 +140,17 @@ Testing | |
======= | ||
|
||
scikit-aero recommends py.test for running the test suite. Running from the | ||
top directory:: | ||
top directory: | ||
|
||
.. code-block:: bash | ||
|
||
$ py.test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nowadays it's just |
||
|
||
$ py.test | ||
To test code coverage, make sure you install `py.test-cov`_ extension and run: | ||
|
||
To test code coverage, make sure you install `py.test-cov`_ extension and run:: | ||
.. code-block:: bash | ||
|
||
$ py.test --cov skaero/ | ||
$ py.test --cov skaero/ | ||
|
||
.. _`py.test-cov`: https://pypi.python.org/pypi/pytest-cov | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
About skaero | ||
============ | ||
|
||
The package collects different algorithms that solve for classical aeronautical | ||
or aerospace problems such us finding the isentropic relations for a given Mach | ||
number, atmospheric properties for a given altitude and many others. | ||
|
||
History | ||
------- | ||
|
||
.. _Juan Luis Cano: https://github.com/Juanlu001 | ||
.. _Guilles Aouizerate: https://github.com/Gillu13 | ||
.. _Javier J. Gutiérrez: https://github.com/javierj | ||
.. _Jorge Martínez: https://github.com/jorgepiloto | ||
|
||
The project was started by `Juan Luis Cano`_. With the contribution of | ||
`Guilles Aouizerate`_ and `Javier J. Gutiérrez`_ more implementations to the | ||
package were done such us tests implementation and extension of the COESA model | ||
up to 86km. | ||
|
||
After some time, the project was no longer mantained till `Jorge Martínez`_ | ||
started working again on `skaero`: a Python package for aeronautical and | ||
aerospace computations. | ||
|
||
Related Software | ||
---------------- | ||
|
||
.. _AeroCalc: https://pypi.org/project/AeroCalc/0.11/ | ||
.. _Matlab Aerospace Toolbox: www.mathworks.com/help/aerotbx/index.html | ||
.. _PDAS: http://www.pdas.com/index.html | ||
|
||
Many different softwares that enable the user to make similar computations are | ||
listed down: | ||
|
||
- `AeroCalc`_ | ||
- `Matlab Aerospace Toolbox`_ | ||
- `PDAS`_ | ||
|
||
In future versions | ||
------------------ | ||
|
||
We are still working in this software and therefore issues and pull requests are | ||
welcome. Some ideas for the moment are: | ||
|
||
- Improve project documentation | ||
- Implement GOST russian atmosphere | ||
- Include more examples on how to use the package | ||
|
||
Please, take a look to the official repository in GitHub if you want to make | ||
a contribution to the project. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Examples | ||
======== | ||
|
||
Different examples on how to use `skaero` have been implemented in the following | ||
Jupyter Notebook files. If you have more examples on how to use this package, | ||
please start a pull request in the official repository. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Convergent-divergent nozzle.ipynb | ||
Oblique shocks chart.ipynb |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
scikit-aero | ||
=========== | ||
.. image:: _static/logo.png | ||
:align: center | ||
|
||
| | ||
What is **scikit-aero**? | ||
======================== | ||
|
||
**scikit-aero** is a Python package for various aeronautical engineering | ||
calculations. It is based on several existing Python packages on the field, | ||
but intends to provide pythonic syntax, use of SI units and full NumPy arrays | ||
support among other things. scikit-aero is licensed under the BSD license. | ||
|
||
|
||
Contents: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
api | ||
|
||
Indices and tables | ||
================== | ||
about_skaero | ||
examples/index | ||
skaero/index | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Atmosphere module | ||
================= | ||
|
||
The atmosphere modeled by **scikit-aero** follows the U.S. Committee on | ||
Extension to the Standard Atmosphere (COESA), also known as U.S Standard | ||
Atmosphere 1976. | ||
|
||
This atmosphere rotates with the Earth. The air is assumed to follow all the | ||
laws for perfect gas and the hydrostatics equations. Therefore a realation | ||
between temperature, pressure and density can be stablished with geopotential. | ||
|
||
.. automodule:: skaero.atmosphere.coesa | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Gas dynamics | ||
============ | ||
|
||
This module holds different submodules related to gas dynamics, in particular | ||
with ideal flow computations. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
isentropic | ||
nozzles | ||
shocks | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Isentropic | ||
========== | ||
|
||
This submodule holds the class `IdealFlow` and `PrandtlMeyerExpansion`, since | ||
both of them are considered under the study of ideal flow dynamics. | ||
|
||
.. automodule:: skaero.gasdynamics.isentropic | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Nozzles | ||
======= | ||
|
||
.. automodule:: skaero.gasdynamics.nozzles | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Shocks | ||
====== | ||
|
||
.. automodule:: skaero.gasdynamics.shocks | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Geometry Module | ||
=============== | ||
|
||
.. automodule:: skaero.geometry.joukowsky | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
API skaero | ||
========== | ||
|
||
All the modules that `skaero` contains are listed down. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
atmosphere/index | ||
gasdynamics/index | ||
geometry/index |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend removing the references to distutils and just state that it can be installed using
pip install scikit-aero
, andpip install --editable .
for local installs 😊The reason is that
python setup.py xxx
is supposed to go away... Soon! The PyPA is standardizing around stuff that makessetup.py
files disappear.