Skip to main content

CVP/IVP/CVI/IVI analysis software in Python

Project description

PyPI Documentation Status PyPI - License

A Python package to assist in the study of electrokinetic phenomena in colloidal suspensions. The code is being developed by Paul J.M. van Kan for the MUDNET group at Delft Technical University and DELTARES, The Netherlands. The electrokinetic package can be used under the conditions of the GPLv3 license.

Features

  • Basic classes for binary electrolytes.

  • Basic classes for colloidal systems with particles.

  • Basic functions for calculation of ion vibration potential (IVP).

Installation

To use the package electrokinetic, install it in a Python environment:

(env) pip install electrokinetic

or

(env) conda install electrokinetic

This should automatically install the dependency packages matplotlib , scipy and pandas, if they haven’t been installed already. If you are installing by hand, ensure that these packages are installed as well.

Example use

import numpy as np

from electrokinetic.constants import *
from electrokinetic.electrolytes import Electrolyte
from electrokinetic.particles import Particle
from electrokinetic.file_utils import load_config

import matplotlib
import matplotlib.pyplot as plt
from pathlib import Path

matplotlib.use("QtAgg")
DATADIR = Path(__file__).parent

el = Electrolyte.from_yaml(str(DATADIR / "cegm.yaml"))
el.calc_kappa()

param = load_config(str(DATADIR / "cegm.yaml"))
part = Particle.from_dict(param["particles"][0])

zeta_zero = BOLTZ_T / (el.z_plus * E_CHARGE)
print(f"zeta_zero: {1000 * zeta_zero} mV")
psi_zero = 0.5 * zeta_zero

electrokinetic pages

Author and license

References

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

electrokinetic-0.0.3.tar.gz (746.4 kB view details)

Uploaded Source

Built Distribution

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

electrokinetic-0.0.3-py3-none-any.whl (783.9 kB view details)

Uploaded Python 3

File details

Details for the file electrokinetic-0.0.3.tar.gz.

File metadata

  • Download URL: electrokinetic-0.0.3.tar.gz
  • Upload date:
  • Size: 746.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for electrokinetic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6185e0c62d9af6b2ce218e6e76083474cb0b50b65395e2e684034997223cdbf1
MD5 7cc21bc5fde4a94dc378516edfead494
BLAKE2b-256 a1884586c91e5bc80e37f8560f721b64b1e8bb154d5d1c47f220268005204ef6

See more details on using hashes here.

File details

Details for the file electrokinetic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: electrokinetic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 783.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for electrokinetic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d6df3bc36207af1891abd0cc30aea639aee9d09b0468779a28b10d4545b33b7f
MD5 0af827c05573cce54e6f68173bfaec81
BLAKE2b-256 17b652177603984d51217bda8c2f56b64a23819fc068545038f349fff541e28e

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