meshes.reference_map Module

Provides the data structure for the family of reference maps.

class pysofe.meshes.reference_map.ReferenceMap(mesh)[source]

Establishes a connection between the reference domain and the physical mesh elements.

Parameters:mesh (pysofe_light.meshes.mesh.Mesh) – The mesh instance
eval(points, deriv=0)[source]

Evaluates each member of the family of reference maps or their derivatives at given local points.

Provides the following forms of information:

  • Zero order information, i.e. the ordinary evaluation, is needed to compute global points given their local counterparts
  • First order information is used to compute Jacobians, e.g. in integral transformations
Parameters:
  • points (array_like) – The local points at which to evaluate
  • deriv (int) – The derivation order
Returns:

nE x nP x nD [x nD]

Return type:

numpy.ndarray

eval_inverse(points, hosts)[source]

Evaluates the inverse maps of the reference maps corresponding to the given host elements at given global points.

Parameters:
  • points (array_like) – The global points for which to evaluate the inverse mappings
  • hosts (array_like) – The host element for each of the global points
jacobian_inverse(points)[source]

Returns the inverse of the reference maps’ jacobians evaluated at given points.

Parameters:points (array_like) – The local points at which to evaluate the jacobians
jacobian_determinant(points)[source]

Returns the determinants of the reference maps’ jacobians evaluated at given points.

Parameters:points (array_like) – The local points at which to compute the determinants