Field outputs, plots and files#

The solvers return the Ritz constants \(\boldsymbol{c}\), from which the fields are calculated at points or over a grid, plotted, and saved with the model.

Field outputs#

object

displacements, strains, stress resultants

other outputs

Shell

Shell.uvw(), Shell.strain(), Shell.stress()

MultiDomain

MultiDomain.uvw(), MultiDomain.strain(), MultiDomain.stress(), MultiDomain.calc_results()

MultiDomain.force(), MultiDomain.force_out_plane(), MultiDomain.reaction_pd(), MultiDomain.reaction_resultant()

StiffPanelBay

StiffPanelBay.uvw_skin(), StiffPanelBay.uvw_stiffener()

The methods of Shell store the fields in the dictionary Shell.fields and the coordinates of the points in Shell.plot_mesh; the strains and stress resultants include the non-linear terms of the strains of the model by default. Those of MultiDomain evaluate the domains of a group, or one domain eval_panel, at a grid or at the Gauss-Legendre points, and MultiDomain.force() integrates the stress resultants along a line of constant \(x\) or \(y\). The eigenvalues, eigenvectors and Ritz constants of an analysis may be kept in the dictionary Shell.results, which is saved with the shell.

Plots#

  • plot_shell(): contour plot of one field of a Shell, with matplotlib;

  • MultiDomain.plot(): contour plot of the domains of a group, each domain placed at x0, y0 in the plane of the group;

  • MultiDomain.plot3d(): interactive 3D plot of the deformed assembly with plotly, which must be installed, each domain placed in the global coordinate system by x0, y0, z0, point_x and point_xy, see Shell.global_frame();

  • StiffPanelBay.plot_skin() and StiffPanelBay.plot_stiffener(): contour plots of a bay.

Saving and loading#

Shell.save(), StiffPanelBay.save() and MultiDomain.save() write a zip file with the inputs in JSON and the arrays, e.g. the fields and the results, in NumPy’s format, and panels.shell.load(), panels.stiffpanelbay.load() and panels.multidomain.load() read it back; the matrices are not stored and are calculated again. File objects, e.g. io.BytesIO, are accepted in place of file names. The format and the attributes stored are described in panels.json_io. Since the inputs are stored exactly, a model loaded back rebuilds the same laminate and the same matrices, and the stored eigenpairs, Ritz constants and fields are those saved, bit for bit.