Module platepy.solveModel
Computes the equilibrium solution of a plate model using finite elements and stores the results.
Functions
def computeBeamComponents(self, startCoord, endCoord, nEvaluationPoints, resultsScales=(1, 1, 1), integrationWidth=0, nIntegrationPoints=0)-
Computes the results over a custom-defined line.
INPUT- self:
PlateModelobject. - startCoord: tuple with (x,y) coordinates defining the starting point of the line.
- endCoord: tuple with (x,y) coordinates defining the ending point of the line.
- resultsScales = (1e-3, 1, 1): Before being displayed the computed displacements are multiplied by resultsScales[0], the computed bending moments are multiplied by resultsScales[1] and the shear forces by resultsScales[2].
- integrationWidth = 0: if > 0, the values on a line normal to the main cut of length +-integrationWidth/2 are evaluated and integrated to a single value, which will then be displayed.
- nIntegrationPoint=0: number of point for the integration normal to the direction of the main cut.
RETURN- bendingMoments: (nPoints, 3) Numpy array containing Mx, My and Mxy for each evaluation point.
- shearForces: (nPoints, 2) Numpy array containing Vx and Vy for each evaluation point.
- arrayEvaluationPoints: (nPoints, 2) Numpy array containing x and y coordinates of each evaluation point.
- self:
def evaluateAtPoints(self, coords, displayPoints=False)-
Computes the displacement, rotation and internal forces at the location contained in coords.
INPUT- coords: Numpy array of shape (nPoints, 2) with the x,y coordinates of the points to be evaluated.
- displayPoints = False: If True, plots the requested evaluation points on the inputGeometry.
RETURN- vericalDisplacements: (nPoints, 1) Numpy array containing vertical displacements of each evaluation point.
- bendingMoments: (nPoints, 3) Numpy array containing Mx, My and Mxy for each evaluation point.
- shearForces: (nPoints, 2) Numpy array containing Vx and Vy for each evaluation point.
def solveModel(self, resultsScales=(1, 1, 1), internalForcePosition='center', smoothedValues=False, computeMoments=True, kBendingResistance=1)-
Given a
PlateModelobject with an initialized mesh, this function computes displacements, rotations and internal forces at each node.INPUT- self:
PlateModelobject. - resultsScales = (1e-3, 1, 1): Before being displayed the computed displacements are multiplied by resultsScales[0], the computed beding moments are multiplied by resultsScales[1] and the shear forces by resultsScales[2].
- internalForcePosition = 'center': String defining the desired position where the internal forces should be computed. Possible values are "center" (default), "nodes" and "intPoints" for the positions used in the Gauss quadrature.
- smoothedValues = False: Experimental. If True, the values of the shear forces by displacement based elements are smoothed according to the values at the Gauss points.
- computeMoments = True: Deactivates the computation of internal forces. For debug purposes.
- kBendingResistance = 1: 1/tan(alpha), to compute the plate bending resistance according to the SIA 262 swiss norm.
RETURN- ResultsDictionary: Dictionary with
Resultobjects.
- self:
Classes
class ResultsInformation-
Stores all kind of object regarding results.