The fc_meshtools Python package contains some simplicial meshes given by their vertices array q and connectivity array me. Theses meshes can be easily used in other Python codes for debugging or testing purpose.
Introduction:
A simplicial mesh is given by its vertices array q and its connectivity array me. For demonstration purpose, some simplicial meshes are given in this package and stored in the fc_meshtools/data directory. They can be load by using the functions getMesh2D, getMesh3D or getMesh3Ds of the fc_meshtools.simplicial module. Here are the kind of simplicial meshes present in this package:
a triangular mesh in dimension 2, made with 2-simplices (ie. triangles),
a tetrahedral mesh in dimension 3, made with 3-simplices (ie. tetrahedron),
a triangular mesh in dimension 3 (surface mesh), made with 2-simplices,
a line mesh in dimension 2 or 3 made with 1-simplices (ie. lines).
One can go to the dedicated web page fc-meshtools for more informations.
Installation:
The fc_meshtools Python package is available from the Python Package Index. so to install/upgrade simply type
pip install fc_meshtools
Examples
first example
import fc_meshtools
q,me,toG=fc_meshtools.simplicial.getMesh2D(2)
vols=fc_meshtools.simplicial.Volumes(q,me)
print(' q:%s, me:%s, vols:%s'%(str(q.shape),str(me.shape),str(vols.shape)))
The output of the print command is:
q:(2, 9116), me:(3, 17638), vols:(17638,)
second example
import fc_meshtools,numpy
q3,me3=fc_meshtools.simplicial.getMesh3D(3)[:2]
vols3=fc_meshtools.simplicial.Volumes(q3,me3)
G3=fc_meshtools.simplicial.GradBaCo(q3,me3)
print(' q3:%s, me3:%s, vols3:%s, G3:%s'%(str(q3.shape),str(me3.shape),str(vols3.shape),str(G3.shape)))
q2,me2,toG2=fc_meshtools.simplicial.getMesh3D(2)
vols2=fc_meshtools.simplicial.Volumes(q2,me2)
G2=fc_meshtools.simplicial.GradBaCo(q2,me2)
print(' q2:%s, me2:%s, vols2:%s, G2:%s'%(str(q2.shape),str(me2.shape),str(vols2.shape),str(G2.shape)))
E=numpy.max(numpy.abs(q2-q3[:,toG2]))
print(' E=%g'%E)
The output is:
q3:(3, 14120), me3:(4, 67653), vols3:(67653,), G3:(67653, 3, 4) q2:(3, 6471), me2:(3, 12950), vols2:(12950,), G2:(12950, 3, 3) E=0.000000e+00
Metadata
Release files for fc-meshtools 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fc_meshtools-0.2.1.tar.gz | 20.6 MB | Without provenance | Details for fc_meshtools-0.2.1.tar.gz |
Release files / fc_meshtools-0.2.1.tar.gz
| Download URL | fc_meshtools-0.2.1.tar.gz |
|---|---|
| Size | 20.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aac28be2b8d375ed20bcc50e1aae30bd0904e9a0c119df5c56b22daed34f54fb
|
|
BLAKE2b-256 checksum How to use checksums |
492906dbade9435db8ab9d1fdf343d5197b9594666737db48fa1e55c5aff3ca0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9
|
Security for fc-meshtools 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.