trusspy.model module#
title: TrussPy - Truss Solver for Python author: Andreas Dutzler year: 2023
- class trusspy.model.Model(log=2, logfile=False, logfile_name='analysis')[source]#
Bases:
objectModel Class with Nodes, Elements, Boundaries, etc.
- stdout#
get current stdout
- Type:
sys.stdout
- log#
Level of collecting logging informations during analysis. Higher numbers will collect more informations (default is 2).
- Type:
int
- logfile#
flag for logfile creation (default is True)
- Type:
boolean
- Nodes#
Handles all nodes inside the model
- Type:
- Elements#
Handles all elements inside the model
- Type:
- Boundaries#
Handles all boundaries inside the model
- Type:
- ExtForces#
Handles all external forces inside the model
- Type:
- Analysis#
Handles all data for one increment
- Type:
AnalysisHandler
- Results#
Handles all result data inside the model. A collection of all converged analysis solutions.
- Type:
- Settings#
Handles all model parameters inside the model
- Type:
- equilibrium(Ured, U0red, stage='G', analysis=None, statev_write=False)[source]#
Method to generate equilibrium for given displacements and external forces.
- plot_model(view='xz', contour=None, lim_scale=1.2, force_scale=1.0, nodesize=10, cbar_limits='auto', inc=-1)[source]#
- plot_movie(view='xz', contour=None, lim_scale=1.2, force_scale=0.5, nodesize=10, cbar_limits='auto', incs='all', **kwargs)[source]#
- stiffness(Ured, analysis=None)[source]#
Method for evaluating the stiffness matrix. It re-shapes the stiffness matrix to
K(nnodes,nnodes,ndim,ndim) --> K(nnodes*ndim,nnodes*nim)and returns a view on the reduced (active part of the) matrixK(nnodes*ndim,nnodes*nim)[active DOF rows][:,active DOF columns].