Analysis
- class compas_tno.analysis.Analysis
Bases:
Data
Class to organise the data involved in an optimisation.
The
Analysis
class unites theFormDiagram
, theShape
and theOptimiser
to compute the optimisation.Examples
>>> from compas_tno.analysis import Analysis >>> from compas_tna.shapes import Envelope >>> from compas_tna.diagrams import FormDiagram >>> arch = Envelope.create_arch() >>> form = FormDiagram.create_arch() >>> analysis = Analysis.create_minthrust_analysis(form, arch)
Methods
Apply cracks on the nodes (key) and in the positions up / down
Invoke method to apply ub and lb to the nodes based on the envelope's intrados and extrados
_summary_
Apply a multiplier on the selfweight to the nodes of the form diagram based on the envelope
Apply limit thk to be respected by the anchor points
Invoke method to apply selfweight to the nodes of the form diagram based on the envelope
Apply target to the nodes based on the shape's target surface
Clear Previous results stored in the Analysis object.
Create a bestfit analysis from the elements of the problem (form and shape)
Create a complementary energy analysis from the elements of the problem (form and shape)
Create a minimum thickness analysis from the elements of the problem (form and shape)
Create a minimum thickness analysis from the elements of the problem (form and shape)
Create a maximum thickness analysis from the elements of the problem (form and shape)
Create a minimum thickness analysis from the elements of the problem (form and shape)
Create a minimum thickness analysis from the elements of the problem (form and shape)
Create a complementary energy analysis including a quadratic term from the elements of the problem (form and shape)
Check if the analysis problem is convex.
With the data from the elements of the problem compute the matrices for the optimisation
Set the additional options of the optimisation.
With the data from the elements of the problem compute the matrices for the optimisation and the starting point
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.