sfepy.postprocess.probes_vtk module

Classes for probing values of Variables, for example, along a line, using PyVTK library

class sfepy.postprocess.probes_vtk.Probe(data, mesh, **kwargs)[source]

Probe class.

add_circle_probe(name, centre, normal, radius, n_point)[source]

Create the ray (line) probe - VTK object.

Parameters:
namestr

The probe name.

centrearray

The coordinates of the circle center point.

normalarray

The normal vector perpendicular to the circle plane.

radiusfloat

The radius of the circle.

n_pointint

The number of probe points.

add_line_probe(name, p0, p1, n_point)[source]

Create the line probe - VTK object.

Parameters:
namestr

The probe name.

p0array_like

The coordinates of the start point.

p1array_like

The coordinates of the end point.

n_pointint

The number of probe points.

add_points_probe(name, coors)[source]

Create the point probe - VTK object.

Parameters:
namestr

The probe name.

coorsarray

The coordinates of the probe points.

add_ray_probe(name, p0, dirvec, p_fun, n_point)[source]

Create the ray (line) probe - VTK object.

Parameters:
namestr

The probe name.

p0array

The coordinates of the start point.

dirvecarray

The probe direction vector.

p_funfunction

The function returning the probe parametrization along the dirvec direction.

n_pointint

The number of probe points.

gen_mesh_probe_png(probe, png_filename)[source]

Generate PNG image of the FE mesh.

Parameters:
probeVTK objectstr

The probe, VTKPolyData or VTKSource.

png_filenamestr

The name of the output PNG file.

new_vtk_polyline(points, closed=False)[source]

Create the VTKPolyData object and store the line data.

Parameters:
pointsarray

The line points.

Returns:
vtkpdVTK object

VTKPolyData with the polyline.

class sfepy.postprocess.probes_vtk.ProbeFromFile(filename, **kwargs)[source]

Probe class - read a given VTK file.