Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshrinet committed Mar 26, 2024
1 parent d3dab39 commit f2dcc05
Show file tree
Hide file tree
Showing 12 changed files with 87 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
run: python setup.py install

- name: Test pystokes
run: cd tests && python shortTests.py
run: cd tests && python test_short.pyx


2 changes: 1 addition & 1 deletion .github/workflows/run_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: python setup.py install

- name: Test example notebooks
run: cd tests && python shortTests.py
run: cd tests && python test_notebooks.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ Test installation and running

```bash
>> cd tests
>> python shortTests.py
>> python test_short.py
```

Long test of example notebooks

```bash
>> cd tests
>> python notebookTests.py
>> python test_notebooks.py
```


Expand Down
15 changes: 11 additions & 4 deletions examples/ex1-unboundedFlow.ipynb

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions examples/ex2-flowPlaneSurface.ipynb

Large diffs are not rendered by default.

41 changes: 31 additions & 10 deletions examples/ex3-crystalNucleation.ipynb

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions examples/ex4-crystallization.ipynb

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions examples/ex5-phoreticField.ipynb

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pystokes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import pystokes.wallBounded
import pystokes.forceFields
import pystokes.phoretic.unbounded
import pystokes.phoretic.wallBounded
import pystokes.phoretic.wallBounded
import pystokes.power.unbounded
import pystokes.power.wallBounded



Expand Down
6 changes: 3 additions & 3 deletions pystokes/utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def plotStreamlinesYZ(vv, rr, r, density=0.795, arrowSize=1.2, mask=0.6, ms=36,
ss[1, ii] = 1*(0 + j)
plt.streamplot(yy, zz, vy, vz, color="black", arrowsize =arrowSize, arrowstyle='->', start_points=ss.T, density=density, zorder=1)
for i in range(N):
ax.add_patch(patches.Circle((r[i],r[i+N]),1,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+2*N]),1,color='k',alpha=1))

plt.xlim(np.min(yy), np.max(yy))
plt.ylim(np.min(zz), np.max(zz))
Expand Down Expand Up @@ -489,7 +489,7 @@ def plotContoursYZ(vv, rr, r, density=1.2, arrowSize=1.2, mask=0.6, ms=36, offse
plt.title(title, fontsize=26);

for i in range(N):
ax.add_patch(patches.Circle((r[i],r[i+N]),1,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+2*N]),1,color='k',alpha=1))



Expand Down Expand Up @@ -518,7 +518,7 @@ def plotContoursYZsurf(vv, rr, r, density=1.2, arrowSize=1.2, mask=0.6, ms=36, o
plt.axhspan(-ww, ww, facecolor='black');
plt.axis('off')
for i in range(N):
ax.add_patch(patches.Circle((r[i],r[i+N]),1,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+2*N]),1,color='k',alpha=1))


if title==str('None'):
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f2dcc05

Please sign in to comment.