Module platepy.displayModel

Displays geometry and results of a plateModel class using matplotlib

Functions

def plotBeamComponent(self, valuesToPlotList, plotOnMesh=False, saveToSVG=False)

Display the requested line-results over the model structural components.

INPUT
  • self: Solved PlateModel object with line-results stored.
  • valuesToPlotList: List of strings representing the requested output plots. Possible values are:

    • "vDisp_line": Vertical displacements on a line.
    • "Mx_line": Bending moments in x-direction on a line.
    • "My_line": Bending moments in y-direction on a line.
    • "Mxy_line": Twisting moment on a lines.
    • "Vx_line": Shear forces in x-direction on a line.
    • "Vy_line": Shear forces in y-direction on a line.
  • plotOnMesh = False: If True, the line results are plotted over the underlying mesh.

  • saveToSVG = False: if True, saves the plot as SVG in the current folder.
RETURN
  • outFig, outAxis
def plotInputGeometry(self, figaspect=1)

Display the structural elements contained in a PlateModel object.

INPUT
  • self: PlateModel object with initialized structural components.
  • figaspect = 1: aspect ratio of the output figure (width:high).
RETURN
def plotMesh(self, plotNodes=True, plotStrucElements=True, plotPoints=False)

Plot nodes and elements given an initialized mesh.

INPUT
  • self: PlateModel object with initialized mesh.
  • plotNodes = True: If True, plots the nodes with numeration.
  • plotStrucElements = True: If True, also plots the underlying structural components.
  • plotPoints = False: If True, plots the nodes without numeration.
RETURN
  • fig, outAx
def plotResults(self, valuesToPlotList, plotType='isolines', saveToSVG=False, saveImage=False)

Displays the requested result over the model's structural components.

INPUT
  • self: Solved PlateModel object with results stored.
  • valuesToPlotList: List of strings representing the requested output plots. Possible values are:

    • "vDisp": Vertical displacements.
    • "Mx": Bending moments in x-direction.
    • "My": Bending moments in y-direction.
    • "Mxy": Twisting moments.
    • "Vx": Shear forces in x-direction.
    • "Vy": Shear forces in y-direction.
    • "Mx_Rd_+": Required positive bending resistance in x-direction.
    • "My_Rd_+": Required positive bending resistance in y-direction.
    • "Mx_Rd_-": Required negative bending resistance in x-direction.
    • "My_Rd_-": Required negative bending resistance in y-direction.
    • "Mx_Rd_max": Required maximum bending resistance in x-direction.
    • "My_Rd_max": Required maximum bending resistance in y-direction.
  • plotType = "isolines": String representing the type of plot. Possible values are:

    • "isolines"(default): Lines with the same output-value are extrapolated and plotted.
    • "3d": 3-dimensional plot.
    • "text": The values at the data-points are printed as text near to the data-points.
    • "text+mesh": The values at the data-points are printed as text near to the data-points on the model's mesh.
  • saveToSVG = False: if True, saves the plot as SVG in the current folder.

  • saveImage = False: Experimental.
RETURN
  • outFig, outAxis