Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshrinet committed Jul 24, 2024
1 parent 8cdb392 commit e353c1d
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 32 deletions.
40 changes: 39 additions & 1 deletion examples/ex01-unboundedFlow.ipynb

Large diffs are not rendered by default.

65 changes: 48 additions & 17 deletions examples/ex01a-colab.ipynb

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pystokes/utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def plotLogo():
plt.streamplot(yy, zz, vy, vz, color="gray", arrowsize =arrowSize, density=density, linewidth=4.4, 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+N]),1.1,facecolor='w',alpha=1,edgecolor="steelblue", linewidth=4))
plt.grid()

ww=0.3
Expand Down Expand Up @@ -338,9 +338,9 @@ def plotStreamlinesXY(vv, rr, r, density=0.82, arrowSize=1.2, mask=1, ms=36, off
ss[0, ii] = a0*(-5 + i)
ss[1, ii] = a0*(-5 + j)

plt.streamplot(xx, yy, vx, vy, color="black", arrowsize =arrowSize, arrowstyle='->', start_points=ss.T, density=density, zorder=1)
plt.streamplot(xx, yy, vx, vy, color="black", arrowsize =arrowSize, arrowstyle='->', start_points=ss.T, density=density, broken_streamlines=True, zorder=1)
for i in range(N):
ax.add_patch(patches.Circle((r[i],r[i+N]),1.0,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+N]),1.1,facecolor='w',alpha=1,edgecolor="steelblue", linewidth=4))

plt.xlim(np.min(xx), np.max(xx))
plt.ylim(np.min(yy), np.max(yy))
Expand Down 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+2*N]),1,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+2*N]),1.1,facecolor='w',alpha=1,edgecolor="steelblue", linewidth=4))

plt.xlim(np.min(yy), np.max(yy))
plt.ylim(np.min(zz), np.max(zz))
Expand Down Expand Up @@ -432,7 +432,7 @@ def plotStreamlinesYZsurf(vv, rr, r, density=0.8, 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+2*N]),1,color='k',alpha=1))
ax.add_patch(patches.Circle((r[i],r[i+2*N]),1.1,facecolor='w',alpha=1,edgecolor="steelblue", linewidth=4))

plt.xlim(np.min(yy), np.max(yy))
ww=0.3
Expand Down

0 comments on commit e353c1d

Please sign in to comment.