pyxfem.core.mapping module

Created on Mon Dec 18 14:05:29 2023

@author: nchevaug

class pyxfem.core.mapping.Mapping3DTri(t3)[source]

Bases: object

mapping of 3d triangles with 3d coordinates.

class pyxfem.core.mapping.MappingT3(t3xy, hmin=0.0, alpha=0.1, p=1)[source]

Bases: object

construct mapping from an array of T3 nodes coordinates

uv2xy(uv, elem_ids=None)[source]

map uv local coordinates to xy for all triangles

xy2uv(xy, elem_ids=None)[source]

return uv in each triangle for each entry of xy

class pyxfem.core.mapping.RemapHelper(index_parent2sons, sons, parent_mapping, son_mapping)[source]

Bases: object

a class to help mapping data when we have a partition of some ‘parent element’ into a set of sons element

get_eval_tris()[source]

retun an np.array containing the coordinates of the nodes of each sons elements if an element has no sons, it’s the coordinates of this element that are returned The elements are sorted according to there parent element index

remap_on_parent(evaltrisuv)[source]

compute local coordinate on parent element from local coordinate on son elements

class pyxfem.core.mapping.RemapHelperFiltered(index_parent2sons, sons, parent_mapping, son_mapping, only_on_parents)[source]

Bases: object

a class to help mapping data when we have a partition of some ‘parent element’ into a set of sons element. This version include a filter on parent element, only on parent

get_eval_tris()[source]

retun an np.array containing the coordinates of the nodes of each sons elements if an element has no sons, it’s the coordinates of this element that are returned The elements are sorted according to there parent element index

remap_on_parent(evaltrisuv)[source]

compute local coordinate on parent element from local coordinate on son elements

pyxfem.core.mapping.tri2g(t3, dim=None)[source]

transform the node coordinate of an array of triangles […, 3,2|3] to an array g[…,2,2|3], where g[…,i, :] is the vector linking vertice 0 to vertice i for each each entry in the array …