feec.multipatch.plotting_utilities#

Functions#

get_diag_grid(mappings, N)

get_grid_quad_weights(etas, patch_logvols, ...)

get_grid_vals(u, etas, mappings_list[, ...])

get the physical field values, given the logical field and the logical grid :param u: FemField :param etas: logical grid :param space_kind: specifies the push-forward for the physical values

get_patch_knots_gridlines(Vh, N, mappings[, ...])

get_plotting_grid(mappings, N[, ...])

is_vector_valued(u)

my_small_plot(title, vals[, titles, xx, yy, ...])

plot a list of scalar fields on a list of patches

my_small_streamplot(title, vals_x, vals_y, ...)

plot_field([fem_field, stencil_coeffs, ...])

plot a discrete field (given as a FemField or by its coeffs in numpy or stencil format) on the given domain

Details#

is_vector_valued(u)[source]#
get_grid_vals(u, etas, mappings_list, space_kind='hcurl')[source]#

get the physical field values, given the logical field and the logical grid :param u: FemField :param etas: logical grid :param space_kind: specifies the push-forward for the physical values

get_grid_quad_weights(etas, patch_logvols, mappings_list)[source]#
get_plotting_grid(mappings, N, centered_nodes=False, return_patch_logvols=False)[source]#
get_diag_grid(mappings, N)[source]#
get_patch_knots_gridlines(Vh, N, mappings, plotted_patch=-1)[source]#
plot_field(fem_field=None, stencil_coeffs=None, numpy_coeffs=None, Vh=None, domain=None, surface_plot=False, cb_min=None, cb_max=None, plot_type='amplitude', cmap='hsv', space_kind=None, title=None, filename='dummy_plot.png', subtitles=None, N_vis=20, vf_skip=2, hide_plot=True)[source]#

plot a discrete field (given as a FemField or by its coeffs in numpy or stencil format) on the given domain

Parameters:
numpy_coeffs(np.ndarray)

Coefficients of the field to plot

VhTensorFemSpace

Fem space needed if v is given by its coeffs

space_kind(str)

type of the push-forward defining the physical Fem Space

N_vis(int)

nb of visualization points per patch (per dimension)

my_small_plot(title, vals, titles=None, xx=None, yy=None, gridlines_x1=None, gridlines_x2=None, surface_plot=False, cmap='viridis', cb_min=None, cb_max=None, save_fig=None, save_vals=False, hide_plot=False, dpi='figure', show_xylabel=True)[source]#

plot a list of scalar fields on a list of patches

Parameters:
title(str)

title of the plot

vals(list)

list of scalar fields to plot

titles(list)

list of titles for each plot

xx(list)

list of x-coordinates of the grid points

yy(list)

list of y-coordinates of the grid points

my_small_streamplot(title, vals_x, vals_y, xx, yy, skip=2, amp_factor=1, save_fig=None, hide_plot=False, show_xylabel=True, dpi='figure')[source]#
Parameters:

skip – every skip-th data point will be skipped