Base class for fields.
Create a Field subclass instance corresponding to a given space.
Parameters: | name : str
dtype : numpy.dtype
shape : int/tuple/str
region : Region
approx_order : int/str
space : str
poly_space_base : str
|
---|
Notes
Assumes one cell type for the whole region!
Create a Field subclass instance based on the configuration.
Return indices of DOFs that belong to the given region.
For given region, integral and integration type, get a reference mapping, i.e. jacobians, element volumes and base function derivatives for Volume-type geometries, and jacobians, normals and base function derivatives for Surface-type geometries corresponding to the field approximation.
The mappings are cached in the field instance in mappings attribute. The mappings can be saved to mappings0 using Field.save_mappings. The saved mapping can be retrieved by passing get_saved=True. If the required (saved) mapping is not in cache, a new one is created.
Returns: | geo : CMapping instance
mapping : VolumeMapping or SurfaceMapping instance
key : tuple
|
---|