Python package for simulation of grain-based system
Project description
butiran-py
Python package for simulation of grain-based system using molecular dynamics method and agent-based model
module
- vect3
Vect3()Initialize with 3 arguments or nonestrval()Get string value of Vect3 instanceadd()Add two Vect3 instancessub()Substract two Vect3 instancesdot()Dot product of two Vect3 instancescross()Cross product of two Vect3 instancesmul()Multiply a scalar with a Vect3 instance (or vice versa)div()Divide a Vect3 instance with a scalarlen()Get length or magnitude of a Vect3 instanceunit()Get unit vector of a Vect3 instanceneg()Set a Vect3 instance to opposite direction
usage
from butiran.vect3 import Vect3
a = Vect3(100.001, -0.5, 2021)
print("a = " + a.strval())
b = a.neg()
print("b = " + b.strval())
a = (100.001, -0.5, 2021)
b = (-100.001, 0.5, -2021)
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
butiran-0.0.9.tar.gz
(4.3 kB
view details)
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 butiran-0.0.9.tar.gz.
File metadata
- Download URL: butiran-0.0.9.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04ae48d3952aee8138d69361ce3396c76ee185b3ca9bb4056856f6c0307822c7
|
|
| MD5 |
6209bc09d81f8acc14edb4b503dd4c08
|
|
| BLAKE2b-256 |
184037153dec313b4d9ed4dc9d990793be7989f2a9b1e441833970e43d8104fb
|
File details
Details for the file butiran-0.0.9-py3-none-any.whl.
File metadata
- Download URL: butiran-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7bb6d731eb0bcf394fbf0957c036c66d98b697c46620f12b45017d82f10621d
|
|
| MD5 |
5ebe1b38e48c80ce5ff157a9b72501c6
|
|
| BLAKE2b-256 |
c143fb5cdfb3d0969293d65dfcafe8986085e1edc5d1f2a4ab0995dc21bed69e
|