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.FEMapping
.
- fix_element_orientation(geom_els=None, force_check=False)[source]¶
Ensure element vertices ordering giving positive cell volumes.
- get_conn(ret_gel=False, tdim=None, cells=None)[source]¶
Get the cell-vertex connectivity and, if ret_gel is True, also the corresponding reference geometry element. If tdim is not None get the connectivity of the cells with topological dimension tdim.
- get_diameter()[source]¶
Return the diameter of the domain.
Notes
The diameter corresponds to the Friedrichs constant.