Skip to main content

Educational MUDNET software in Python

Project description

PyPI PyPI - Downloads 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 EduMUD package can be used under the conditions of the GPLv3 license.

Features

  • Basic classes colloidal systems

  • Basic functions for DLVO theory.

Installation

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

(env) pip install edumud

or

(env) conda install edumud

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

"""Example Python script using the EduMUD module."""

import numpy as np

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

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

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

el = Electrolyte(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

EduMUD 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

edumud-0.0.8.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

edumud-0.0.8-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file edumud-0.0.8.tar.gz.

File metadata

  • Download URL: edumud-0.0.8.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for edumud-0.0.8.tar.gz
Algorithm Hash digest
SHA256 939fc8aa1f159c12a419499a9645fc1e443731fd56d65001d262790845af2d51
MD5 df03950eccdbf31735a3402df92b8253
BLAKE2b-256 1a1d26f6caeaddc11986c45cd1cb58b5fb9323cc3c99edad6aa69b66a6529250

See more details on using hashes here.

File details

Details for the file edumud-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: edumud-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for edumud-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d65d466ce3b3feb86ee195cf0336f0afc974dbdfe1019b886838c9ca50182a16
MD5 eddcc8e0d592897f96b3db98b9a206e5
BLAKE2b-256 57fbab19e2424faa15d5fe859ff61b98b36535348e0cc895ef25f46955c3b1aa

See more details on using hashes here.

Supported by

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