Skip to main content

Sherwood number in Stokes flow

Project description

Tests

advection diffusion solver

This repository attempts to find a solution to advection diffusion problem

$$ 0 = \Delta \phi - \mathrm{Pe} (u \cdot \nabla \phi) $$

with $\phi = 1$ for $z \to \infty$ and $\phi = 0$ on a surface of the sphere and $\mathrm{Pe}$ denoting Peclet number. Final determined value is Sherwood number defined as

$$ \mathrm{Sh} = \frac{\Phi}{ 4 \pi D R}$$

Where $D$ is diffusion constant and $\Phi$ is flux falling onto the sphere.

Both approaches solving the same problem

We use two approaches: (a) pychastic to generate and trace trajcetories of single particles and estimate the probability of hitting, which allows to calculate sherwood number. This however is expenive in time, so for spaller $\mathrm{Pe}$ we used (b) scikit-fem package to handle solving which requires rewriting equations in weak form.

Usage as module

Basic usage

python3 -m pypesh --peclet 1000 --ball_radius 0.9

Sample output:

Sherwood for given parameters is 12.033892568100546

Usage as package

Install

python3 -m pip install pypesh

Basic usage

import pypesh.pesh as psh
psh.sherwood(peclet = 10**4, ball_radius = 0.9)

For advanced options go to: https://pypesh.readthedocs.io/en/latest/

License

Copyright (C) 2024 Radost Waszkiewicz and Jan Turczynowicz. This repository is published under GPL3.0 license.

Bibliography

  • Bubbles, Drops and Particles; R. Clift, J. Grace, M. Weber (1978)
  • Electrochemical measurements of mass transfer between a sphere and liquid in motion at high Peclet numbers; S. Kutateladze, V. Nakoryakov, M. Iskakov (1982)
  • Mass and heat transfer from fluid spheres at low Reynolds numbers; Z. Feng, E. Michaelides (2000)
  • Heat transfer from spheres to flowing media; H. Kramers (1946)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypesh-0.1.5.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypesh-0.1.5-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file pypesh-0.1.5.tar.gz.

File metadata

  • Download URL: pypesh-0.1.5.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pypesh-0.1.5.tar.gz
Algorithm Hash digest
SHA256 92e9b7264f76e042ec959735895c00a87a7277e94d36cf148984c2169deaa5ae
MD5 b3c83d5de3fe01e869def29e5b1e186a
BLAKE2b-256 7ed6b50890242e3c92c280c4d539d0111a971b2736650183f37310a62d3ba3ed

See more details on using hashes here.

File details

Details for the file pypesh-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pypesh-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pypesh-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 86f2d248a7d6aff2da0e9c47c31c59636735288ea674bc516bb600df28de4574
MD5 8db2bc43ce1d99a3bce45857c4441032
BLAKE2b-256 fb6c53ac10f0eff2826cb03c913b9cff8e1b5d7e910c21b3940e4637dfb9556b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page