Skip to main content

Identify bubbles/droplets based on volume of fluid (VOF) simulation data

Project description

BlobID-Python

A python library for identifying bubbles/droplets based on volume of fluid (VOF) simulation data.

Installation

It is suggested to install the library with Numba enabled:

pip install blobid[numba]

Documentation

For the latest release: dgaylo.github.io/blobid-python

Example

Here we load a 2D slice from a simulation of air bubbles in water near the surface, and then use this library to identify and label all the air bubble.

>>> import numpy as np
>>> from blobid import get_labels
>>> vof = 1.0 - np.load("tests/resources/fs_vof.npy")[:, 0, :]
>>> labels = get_labels(vof, periodic=[True, False])

Below is a rendering of the vof field (air is white, water is black) and the labels field calculated using get_labels()

vof and label field

The full script, including creating these graphics using Matplotlib, is doc/example.py.

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

blobid-0.6.1.tar.gz (899.2 kB view details)

Uploaded Source

Built Distribution

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

blobid-0.6.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file blobid-0.6.1.tar.gz.

File metadata

  • Download URL: blobid-0.6.1.tar.gz
  • Upload date:
  • Size: 899.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blobid-0.6.1.tar.gz
Algorithm Hash digest
SHA256 7bd69de92041d16ee56456f00f6939438c2024d4c370b730fa22c013c4c6daeb
MD5 c8eeca80550d222af88b5fdfb43c9c71
BLAKE2b-256 b074b96942c1666e53bc4b5e540992d8fa1b1a3124c9a65d3a111320df646499

See more details on using hashes here.

Provenance

The following attestation bundles were made for blobid-0.6.1.tar.gz:

Publisher: upload_package.yml on dgaylo/blobid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blobid-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: blobid-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blobid-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 822f68bacf09735b5be99d98989b7cabc812339c4a37aaa339f5e7854b77a3ba
MD5 a15a76ee73518c3beffc5655503bf26d
BLAKE2b-256 a635deb0d104af1c287c00c6ed3b66913a0ea62a962607338cdad322a7ed17ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for blobid-0.6.1-py3-none-any.whl:

Publisher: upload_package.yml on dgaylo/blobid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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