sfepy.discrete.fem.domain module¶
Computational domain, consisting of the mesh and regions.
-
class
sfepy.discrete.fem.domain.
FEDomain
(name, mesh, verbose=False, **kwargs)[source]¶ Domain is divided into groups, whose purpose is to have homogeneous data shapes.
-
create_surface_group
(region)[source]¶ Create a new surface group corresponding to region if it does not exist yet.
Notes
Surface groups define surface facet connectivity that is needed for
sfepy.discrete.fem.mappings.SurfaceMapping
.
-
fix_element_orientation
()[source]¶ Ensure element nodes ordering giving positive element volume.
The groups with elements of lower dimension than the space dimension are skipped.
-
get_diameter
()[source]¶ Return the diameter of the domain.
Notes
The diameter corresponds to the Friedrichs constant.
-
get_evaluate_cache
(cache=None, share_geometry=False)[source]¶ Get the evaluate cache for
Variable.evaluate_at()
.Parameters: cache : Struct instance, optional
Optionally, use the provided instance to store the cache data.
share_geometry : bool
Set to True to indicate that all the probes will work on the same domain. Certain data are then computed only for the first probe and cached.
Returns: cache : Struct instance
The evaluate cache.
-
get_mesh_bounding_box
()[source]¶ Return the bounding box of the underlying mesh.
Returns: bbox : ndarray (2, dim)
The bounding box with min. values in the first row and max. values in the second row.
-