Generic region class
Parameters : | points : float array of 3D points coordinates |
---|---|
Returns : | points : boolean array
|
Generates a set of randomly distrubuted points in the region
Parameters : | npoints : int
ensure_exact_count : boolean (default True)
|
---|---|
Returns : | points : array
|
Bases: pymses.utils.regions.Region
Spherical region class
Parameters : | center : 3-tuple of float
radius : float
|
---|
Examples
>>> sph = Sphere((0.5, 0.5, 0.5), 1.0)
TODO
TODO
Returns : | V : float
|
---|
Bases: pymses.utils.regions.Region
Spherical shell class
Parameters : | center : 3-tuple of float
radius_in : float
radius_out : float
|
---|
Examples
>>> sph_shell = SphericalShell((0.5, 0.5, 0.5), 0.5, 0.6)
TODO
TODO
Returns : | V : float
|
---|
Bases: pymses.utils.regions.Region
Box region class
Parameters : | bounds : 2-tuple of list
|
---|
Examples
>>> min_coords = [0.1, 0.2, 0.25]
>>> max_coords = [0.9, 0.8, 0.75]
>>> b = Box((min_coords, max_coords))
Returns : | (min_coords, max_coords) : 2-tuple of list
|
---|
Returns : | V : float
|
---|
Print bounding box limit in console
Bases: pymses.utils.regions.Box
Cubic region class
Parameters : | center : tuple
width : float
|
---|
Examples
>>> cu = Cube((0.5, 0.5, 0.5), 1.0)
Returns : | V : float
|
---|
Bases: pymses.utils.regions.Region
Cylinder region class
Parameters : | center : 3-tuple of float
axis_vector : 3-tuple of float
radius : float
height : float
|
---|
Examples
>>> center = (0.5, 0.5, 0.5)
>>> axis = (0.1, 0.9, -0.1)
>>> radius = 0.3
>>> h = 0.05
>>> cyl = Cylinder(center, axis, radius, h)
TODO
TODO
Returns : | V : float
|
---|