Analysis

class compas_tno.analysis.Analysis

Bases: Data

Class to organise the data involved in an optimisation.

The Analysis class unites the FormDiagram, the Shape and the Optimiser 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

Apply cracks on the nodes (key) and in the positions up / down

apply_envelope

Invoke method to apply ub and lb to the nodes based on the envelope's intrados and extrados

apply_envelope_on_xy

_summary_

apply_hor_multiplier

Apply a multiplier on the selfweight to the nodes of the form diagram based on the envelope

apply_reaction_bounds

Apply limit thk to be respected by the anchor points

apply_selfweight

Invoke method to apply selfweight to the nodes of the form diagram based on the envelope

apply_target

Apply target to the nodes based on the shape's target surface

clear_previous_results

Clear Previous results stored in the Analysis object.

create_bestfit_analysis

Create a bestfit analysis from the elements of the problem (form and shape)

create_compl_energy_analysis

Create a complementary energy analysis from the elements of the problem (form and shape)

create_lp_analysis

Create a minimum thickness analysis from the elements of the problem (form and shape)

create_max_load_analysis

Create a minimum thickness analysis from the elements of the problem (form and shape)

create_maxthrust_analysis

Create a maximum thickness analysis from the elements of the problem (form and shape)

create_minthk_analysis

Create a minimum thickness analysis from the elements of the problem (form and shape)

create_minthrust_analysis

Create a minimum thickness analysis from the elements of the problem (form and shape)

create_quad_compl_energy_analysis

Create a complementary energy analysis including a quadratic term from the elements of the problem (form and shape)

is_convex

Check if the analysis problem is convex.

run

With the data from the elements of the problem compute the matrices for the optimisation

set_optimiser_options

Set the additional options of the optimisation.

set_up_optimiser

With the data from the elements of the problem compute the matrices for the optimisation and the starting point

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.