Skip to main content

PyPI Documentation Status PyPI - License

A Python package to assist in the study of sedimentation 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 dielectric 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 DLVO theory.

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

  • Basic functions for analysis of Dielectric Spectroscopy measurements (HP4194A)

Installation

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

(env) pip install dielectric

or

(env) conda install dielectric

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 dielectric.constants import *
from dielectric.electrolytes import Electrolyte
from dielectric.particles import Particle
from dielectric.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

dielectric pages

Author and license

References

  • …

Release files for dielectric 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dielectric 2.0.7
File Size Uploaded
dielectric-2.0.7.tar.gz 46.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dielectric 2.0.7
File Interpreter ABI Platform
dielectric-2.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 99.3 kB

Release files / dielectric-2.0.7.tar.gz

Download URL dielectric-2.0.7.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
046f1ad2def1b656245dcdb45bc64460cf48205ffbaffc7077ff2b2466b2f3db
BLAKE2b-256 checksum
How to use checksums
766b7bf821a0324743948710fef546d4646d41298b56f8646f10fb2a2c7baedd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / dielectric-2.0.7-py3-none-any.whl

Download URL dielectric-2.0.7-py3-none-any.whl
Size 53.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2227bed2d65c54346176addc8562a1dce805b8fc1d2cbcebda2fe32a2e3e92f9
BLAKE2b-256 checksum
How to use checksums
c4b23672d49d277ea54d6296cab0c9a9db4e167a033f455f31e9a43ae9b28c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

2.0.7 This release

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page