Skip to content

Commit 7a4322f

Browse files
committed
changed (again) the name of the package to *vlm*
1 parent 3169706 commit 7a4322f

21 files changed

+238
-212
lines changed

README.md

+36-4
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,53 @@
33
| ------ | ------ |
44
| Description | Python Vortex Lattice Method |
55
| Author | AeroPython Team <aeropython@groups.io> |
6-
| Version | 0.0.dev0 |
6+
| Version | 0.0.1 |
77
| Python Version | 3.6 |
88
| Requires | Numpy, Matplotlib |
99

1010
### Installation
1111

12-
PyVLM has been written in Python3
12+
PyVLM has been written in Python3. To install in development mode:
1313

1414
```sh
15-
$ cd ~/Desktop (or wherever you feel like)
1615
$ git clone https://github.com/aqreed/PyVLM.git
1716
$ cd PyVLM
18-
$ python setup.py install
17+
$ pip install -e .
1918
```
2019

20+
Please find a example notebook on the ['examples'](https://github.com/aqreed/PyVLM/tree/dev/examples) folder that you can open locally, or just try [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/aqreed/PyVLM/dev?filepath=examples) to launch online interactive Jupyter notebooks.
21+
22+
---
23+
**NOTE**:
24+
PyVLM is under development and might change in the near future.
25+
26+
---
27+
28+
### Dependencies
29+
30+
This package depends on Python, NumPy and Matplotlib and is usually tested on Linux with the following versions:
31+
32+
Python 3.6, NumPy 1.16, Matplotlib 3.0
33+
34+
35+
### Testing
36+
37+
PyVLM recommends py.test for running the test suite. Running from the top directory:
38+
39+
```sh
40+
$ pytest
41+
```
42+
43+
To test coverage (also from the top directory):
44+
45+
```sh
46+
$ pytest --cov
47+
```
48+
49+
### Bug reporting
50+
51+
Please feel free to open an [issue](https://github.com/aqreed/PyVLM/issues) on GitHub!
52+
2153
### License
2254

2355
MIT (see `COPYING`)

examples/example_pilatusPC12.ipynb

-191
This file was deleted.

examples/pilatusPC12.ipynb

+189
Large diffs are not rendered by default.

examples/example_pilatusPC12.py examples/pilatusPC12.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import numpy as np
1919
import matplotlib.pyplot as plt
2020

21-
from pyvlm.vlm import PyVLM
21+
from vlm import PyVLM
2222

2323

2424
pilatusPC12 = PyVLM()

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
long_description = fh.read()
55

66
setup(
7-
name="vlmpy",
7+
name="vlm",
88
author='aqreed',
99
description='Python Vortex Lattice Method',
1010
long_description=long_description,
1111
long_description_content_type='text/markdown',
1212
version="0.0.1",
13-
url='https://github.com/aqreed/vlmpy',
14-
packages=['vlmpy'],
13+
url='https://github.com/aqreed/PyVLM',
14+
packages=['vlm'],
1515
install_requires=['numpy', 'matplotlib'],
1616
tests_requires=['pytest']
1717
)

tests/test_airfoils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.airfoils import NACA4
10+
from vlm.airfoils import NACA4
1111

1212

1313
def test_camber_line():

tests/test_geometry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.geometry import (cross_prod, vect_dot, norm_dir_vect,
10+
from vlm.geometry import (cross_prod, vect_dot, norm_dir_vect,
1111
dist_point2line, area_4points)
1212

1313

tests/test_mesh_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.mesh_generator import Mesh
10+
from vlm.mesh_generator import Mesh
1111

1212

1313
def test_mesh_points():

tests/test_panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.panel import Panel
10+
from vlm.panel import Panel
1111

1212

1313
def test_area():

tests/test_vlm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.vlm import PyVLM
10+
from vlm.vlm import PyVLM
1111

1212

1313
def test_add_wing():

tests/test_vortices.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from numpy.testing import assert_almost_equal
99

10-
from vlmpy.vortices import (vortex_position_in_panel,
10+
from vlm.vortices import (vortex_position_in_panel,
1111
v_induced_by_horseshoe_vortex,
1212
v_induced_by_finite_vortex_line)
1313

vlmpy/__init__.py vlm/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,5 @@
44
Distributed under the terms of the MIT License.
55
"""
66

7-
from .airfoils import *
8-
from .geometry import *
9-
from .mesh_generator import *
10-
from .panel import *
7+
118
from .vlm import *
12-
from .vortices import *

vlmpy/airfoils.py vlm/airfoils.py

File renamed without changes.

vlmpy/geometry.py vlm/geometry.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

vlmpy/panel.py vlm/panel.py

File renamed without changes.

vlmpy/vlm.py vlm/vlm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ def vlm(self, alpha, print_output=False):
261261
Panel[i].gamma = gamma[i]
262262
Panel[i].l = V * rho * Panel[i].gamma * Panel[i].span
263263
Panel[i].cl = Panel[i].l / (q_inf * Panel[i].area)
264-
264+
265265
d0 = (Panel[i].l * Panel[i].accul_trail_ind_vel) / V
266266
d1 = -rho * abs(Panel[i].gamma) * Panel[i].span * (Panel[i].accul_trail_ind_vel)
267267
d2 = Panel[i].l * np.sin(Panel[i].alpha_ind)
268268

269-
#print("%8.3f % 8.3f %8.3f" % (d0, d1, d2))
269+
# print("%8.3f % 8.3f %8.3f" % (d0, d1, d2))
270270

271271
Panel[i].d = d1
272272
Panel[i].cd = Panel[i].d / (q_inf * Panel[i].area)

vlmpy/vortices.py vlm/vortices.py

File renamed without changes.

0 commit comments

Comments
 (0)