Import geometry from various formats (‘import’ is python keyword, hence the name ‘ymport’).
Imports geometry from LSMGenGeo library and creates spheres. Since 2012 the package is available in Debian/Ubuntu and known as python-demgengeo http://packages.qa.debian.org/p/python-demgengeo.html
Parameters : |
|
---|
LSMGenGeo library allows one to create pack of spheres with given [Rmin:Rmax] with null stress inside the specimen. Can be useful for Mining Rock simulation.
Example: examples/packs/packs.py, usage of LSMGenGeo library in examples/test/genCylLSM.py.
Imports geometry from LSMGenGeo .geo file and creates spheres. Since 2012 the package is available in Debian/Ubuntu and known as python-demgengeo http://packages.qa.debian.org/p/python-demgengeo.html
Parameters : |
|
---|---|
Returns : | list of spheres. |
LSMGenGeo library allows one to create pack of spheres with given [Rmin:Rmax] with null stress inside the specimen. Can be useful for Mining Rock simulation.
Example: examples/packs/packs.py, usage of LSMGenGeo library in examples/test/genCylLSM.py.
Imports geometry from mesh file and creates facets.
Parameters : |
|
---|---|
Returns : | list of facets forming the specimen. |
mesh files can be easily created with GMSH. Example added to examples/regular-sphere-pack/regular-sphere-pack.py
Additional examples of mesh-files can be downloaded from http://www-roc.inria.fr/gamma/download/download.php
Read given meshfile in gts format.
Parameters : |
|
---|---|
Returns : | list of facets. |
Import geometry from stl file, return list of created facets.
Load sphere coordinates from file, create spheres, insert them to the simulation.
Parameters: |
|
---|---|
Returns: | list of spheres. |
Lines starting with # are skipped
Load sphere coordinates from file in specific format, create spheres, insert them to the simulation.
Parameters: |
|
---|---|
Returns: | list of spheres. |
Lines starting with # are skipped
Import geometry from unv file, return list of created facets.
param string fileName: name of unv file param (float,float,float)|Vector3 shift: (X,Y,Z) parameter moves the specimen. param float scale: factor scales the given data. param **kw: (unused keyword arguments) is passed to utils.facet param bool returnElementMap: if True, apart from facets returns also nodes (list of (x,y,z) nodes coordinates) and elements (list of (id1,id2,id3) element nodes ids). If False (default), returns only facets
unv files are mainly used for FEM analyses (are used by OOFEM and Abaqus), but triangular elements can be imported as facets. These files cen be created e.g. with open-source free software Salome.
Example: examples/test/unv-read/unvRead.py.