Region defines a subset of a FE domain.
Created: 31.10.2005
Complete the region description by listing edges and faces for each element group.
| Parameters: | ed : Facets instance
fa : Facets instance
surface_integral : bool
|
|---|
Notes
If surface_integral is False, self.edges, self.faces simply list edge/face indices per group (pointers to ed.facets, fa.facets) - repetitions among groups are possible.
Create mapping from reference elements to physical elements, given the integration kind (‘v’ or ‘s’).
This mapping can be used to compute the physical quadrature points.
| Returns: | mapping : VolumeMapping or SurfaceMapping instance
|
|---|
Create a new region containing given faces.
| Parameters: | faces : array
domain : Domain instance
name : str, optional
igs : list, optional
can_cells : bool, optional
|
|---|---|
| Returns: | obj : Region instance
|
Create a new region containing given vertices.
| Parameters: | vertices : array
domain : Domain instance
name : str, optional
igs : list, optional
can_cells : bool, optional
surface_integral : bool, optional
|
|---|---|
| Returns: | obj : Region instance
|
Get cells of the region.
Raises ValueError if true_cells_only is True and the cells are not true cells (e.g. surface integration region).
Return the characteristic function of the region as a vector of values defined either in the mesh nodes (by_cell == False) or cells. The values are either 1 (val_by_id == False) or sequential id + 1.
Return the graph of region edges as a sparse matrix having uid(k) + 1 at (i, j) if vertex[i] is connected with vertex[j] by the edge k.
Degenerate edges are ignored.
Get number of region cells.
| Parameters: | ig : int, optional
is_surface : bool
|
|---|---|
| Returns: | n_cells : int
|
Return all vertices, that are in some cell of the region.
| Parameters: | return_per_group : bool
|
|---|
Set region data using given faces. The region description is complete afterwards.
| Parameters: | faces : array
igs : list, optional
can_cells : bool, optional
|
|---|
Initialize an array (per group) of (iel, ifa) for each face.
Vertices common to several groups are listed only in all of them - fa, ed.unique_indx contain no edge/face duplicates already.
Return a dependency graph and a name-sort name mapping for given region definitions.