pyxfem.postpro.interpolator module

define interpolator from mesh field

class pyxfem.postpro.interpolator.ConstantPerTriInterpolator(xy, t2v, values, trifinder=None)[source]

Bases: object

Constant per Element field interpolator : find in which element is a point and return the corresponding element consant value

class pyxfem.postpro.interpolator.LinearPerTriInterpolator(xy, t2v, values, trifinder=None)[source]

Bases: object

linear per Element field interpolator field is supposed C0 on the input mesh, and linear per element input : value at node and mesh.

pyxfem.postpro.interpolator.get_triangulation(xy, t2v)[source]

return a matplotlib.tri.Triangulation from - a set of point xy and triangle connectivity t2xy

pyxfem.postpro.interpolator.get_trifinder(xy, t2v)[source]

return a matplotlib “trifinder “ : a function that return the triangle number in which each point it is called on is in