Base class for fields.
Create a mesh for evaluating the field. The default implementation returns None, because this mesh is for most fields the same as the one created by Field.create_mesh().
Evaluate source DOF values corresponding to the field in the given coordinates using the field interpolation.
Parameters: | coors : array, shape (n_coor, dim)
source_vals : array, shape (n_nod, n_components)
mode : {‘val’, ‘grad’}, optional
strategy : {‘general’, ‘convex’}, optional
close_limit : float, optional
get_cells_fun : callable, optional
cache : Struct, optional
ret_ref_coors : bool, optional
ret_status : bool, optional
ret_cells : bool, optional
verbose : bool
|
---|---|
Returns: | vals : array
ref_coors : array
cells : array
status : array
|
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.
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
|
---|