Palace Visualisation

class PVDVTU_Slice(pv_slice, units, normal, vec_x_axis=None)

Bases: object

get_2d_coordinates()

Project the 3D slice onto its local 2D coordinate system.

Returns coordinates in the same units as the original mesh.

get_data(param_name, association='point')

Retrieve a field with an explicit data association.

association: ‘point’ or ‘cell’

get_params()
plot(values, cmap='viridis', equalise_histogram=True, equal_pos_neg=True, association='point', fig=None, ax=None)

Plot a scalar field on an arbitrarily oriented planar slice.

association:

‘point’ -> one scalar per mesh vertex ‘cell’ -> one scalar per triangle

plot_mesh(fig=None, ax=None)
class PVDVTU_Viewer(pvd_file, units=0.001)

Bases: object

get_data_slice(data_set_index, slice_plane_normal=array([0, 0, 1]), slice_plane_origin=array([0, 0, 0]), vec_x_axis=None)