geoparticle 1.0.4
Project description
geoparticle
A Python package for geometry construction in particle-based simulation.
I mainly use this package for geometry construction in LAMMPS, with some examples provided in the repository; of course, it can also be used for other software.
Installation
Installing from pypi
pip install geoparticle
Installing from the source code
Download and enter the source code directory, then
pip install .
Documentation
The documentation is hosted on Read the Docs.
Background
Particles of specified geometries are typically created by the lattice command in LAMMPS, which can lead to rough surfaces when the particle spacing is not small enough. However, too small spacing can result in too many particles and thus increase the computational cost.
The case is the same when one creates atoms based on an external STL file (an example STL file exported by COMSOL is shown below):
Features
To resolve this problem, I developed this package for easy construction of geometries where smooth surfaces are required. Miscellaneous geometries are provided, including 1D geometries (lines and curves):
2D geometries (rectangles and circles):
3D geometries (blocks, cylinders, tori, and spheres):
all of which can be surface, thick shells, or filled bodies.
Diverse operations are also provided, including translation, mirror, rotation, stack, clipping, union, intersection, and subtraction.
Some utility functions are also provided.
Quick start
examples/gallery.py provided detailed scripts to yield the geometries above.
Two more examples are given to shown how to couple geoparticle with LAMMPS. The first example is the 2D gas-liquid dam break, while the second is a 3D intestine connected with an inlet and an outlet.
See the documentation for details.
Limitations
The particle spacings may be not exactly as specified in order to create a smooth surface.
Resultant geometries of boolean operations can have more particles than expected in some cases, because
- For intersection and subtraction, only particles with distances smaller than
rmaxwill be identified the same. Users should align particles of different geometries to get the expected results. - For union, particles of all the given geometries will be collected to yield the union. Users should ensure no particles are overlapped.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geoparticle-1.0.4.tar.gz.
File metadata
- Download URL: geoparticle-1.0.4.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a41407252103f8d9182218453501bbcfa1560ba0e8def518de52d24db6a914
|
|
| MD5 |
6e603b15118471cad3dc6af18e9db667
|
|
| BLAKE2b-256 |
085d5c01a9a9a1481e97d4d6dd0d5a90c91e6d797e2383c79a7fab582d281121
|
Provenance
The following attestation bundles were made for geoparticle-1.0.4.tar.gz:
Publisher:
python-publish.yml on Jasmine969/geoparticle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geoparticle-1.0.4.tar.gz -
Subject digest:
57a41407252103f8d9182218453501bbcfa1560ba0e8def518de52d24db6a914 - Sigstore transparency entry: 716984551
- Sigstore integration time:
-
Permalink:
Jasmine969/geoparticle@cda94fa2da0cdb9928f4f4c6a1d26fc7a0502790 -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/Jasmine969
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cda94fa2da0cdb9928f4f4c6a1d26fc7a0502790 -
Trigger Event:
release
-
Statement type:
File details
Details for the file geoparticle-1.0.4-py3-none-any.whl.
File metadata
- Download URL: geoparticle-1.0.4-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649e0599422fc182e537aa2157f8f2e3f3c42fa5ee0e5a4e0c0ca674aa5a7088
|
|
| MD5 |
720132dee79a19793e53b3c1fd630991
|
|
| BLAKE2b-256 |
150372eaf6e8df717251add42a8a1d87bb46c6e955d4b46d86f33c48486b099f
|
Provenance
The following attestation bundles were made for geoparticle-1.0.4-py3-none-any.whl:
Publisher:
python-publish.yml on Jasmine969/geoparticle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geoparticle-1.0.4-py3-none-any.whl -
Subject digest:
649e0599422fc182e537aa2157f8f2e3f3c42fa5ee0e5a4e0c0ca674aa5a7088 - Sigstore transparency entry: 716984556
- Sigstore integration time:
-
Permalink:
Jasmine969/geoparticle@cda94fa2da0cdb9928f4f4c6a1d26fc7a0502790 -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/Jasmine969
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cda94fa2da0cdb9928f4f4c6a1d26fc7a0502790 -
Trigger Event:
release
-
Statement type: