Measure features of second phases in microstructures of materilas
Project description
MPLn23d
Python library to measure the 2-dimensional local number (LN2D) and the 3-dimensional local number (LN3D).
References
class ln2d_new(nsmax)
- nsmax : maximum number of section
Methods :
add_gc(sid, x, y, r)
add gc (gravity center)
- sid : section id
- x, y : position of gc
- r : radius
add_gc_random(sid, ngc, sd, r)
add gc randomly
- sid : section id
- ngc : number of gc
- sd : standard deviation of random number, if sd <= 0.0 uniform random
- r : radius
add_sec(step, sx, sy)
add section
- step : allocation step of gc
- sx : size of section in x direction
- sy : size of section in y direction
area_fraction()
calculate area fraction
cut(step, ln3d, cid, dir, pos)
cut ln3d cell
- step : allocation step of gc
- ln3d : ln3d cell
- cid : cell id
- dir : direction of cut plane, x:0, y:1, z:2
- pos : position of cut plane
cut_random(nsec, step, ln3d, cid)
cut ln3d cell randomly
- nsec : number of sections
- step : allocation step of gc
- ln3d : ln3d cell
- cid : cell id
measure_gc(f)
measure ln2d on gc
- f : numpy dimension for result, dtype=np.uint32
measure_random(f, nsample)
measure ln2d on random point
- f : numpy dimension for result, dtype=np.uint32
- nsample : number of sample
Data descriptors :
nsec
number of section
nsec_max
maximum number of section
seed
seed of random number (settable)
class ln3d_new(ncmax)
- ncmax : maximum number of cell
Methods :
add_cell(step, sx, sy, sz)
add cell
- step : allocation step of gc
- sx : size of cell in x direction
- sy : size of cell in y direction
- sz : size of cell in z direction
add_gc(cid, x, y, z, r)
add gc (gravity center)
- cid : cell id
- x, y, z : position of gc
- r : radius
add_gc_random(cid, ngc, sd, r)
add gc randomly
- cid : cell id
- ngc : number of gc
- sd : standard deviation of random number, if sd <= 0.0 uniform random
- r : radius
measure_gc(f)
measure ln3d on gc
- f : numpy dimension for result, dtype=np.uint32
measure_random(f, nsample)
measure ln3d on random point
- f : numpy dimension for result, dtype=np.uint32
- nsample : number of sample
volume_fraction()
calculate volume fraction
Data descriptors :
ncell
number of cell
ncell_max
maximum number of cell
seed
seed of random number (settable)
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 MPLn23d-0.0.7.tar.gz.
File metadata
- Download URL: MPLn23d-0.0.7.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0516000256b8444a3f911a8c616f8320415fed430a2d5bb9ebbaa4a6fe5972b
|
|
| MD5 |
f3f8aa0718b297adb235e3dd5c51c11c
|
|
| BLAKE2b-256 |
ff7d2fb15325c53ca2f70e40689daf517626627340c388d6807f46d4c8a62ac8
|
File details
Details for the file MPLn23d-0.0.7-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: MPLn23d-0.0.7-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 20.6 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
547370e1980ae0ae31bb00b14a05f82daea3507fdbbf612dda3db027febc019b
|
|
| MD5 |
4666b9ce7fd8d2dad71e2851b65eed89
|
|
| BLAKE2b-256 |
5ca1c0a5ca69b173b6c11e22849cb94112d843c58c3c2de3549b3bc3d3623cb5
|