Analysis

class compas_tno.analysis.Analysis(name='Analysis')[source]

Bases: compas.data.data.Data

The Analysis class unites the FormDiagram, the Shape and the Optimiser to compute the optimisation.

Examples

>>> from compas_tno.analysis import Analysis
>>> from compas_tno.shapes import Shape
>>> from compas_tno.diagrams import FormDiagram
>>> arch = Shape.create_arch()
>>> form = FormDiagram.create_arch()
>>> analysis = Analysis.create_minthrust_analysis(form, arch)

Methods

apply_bounds_on_q

Invoke method to apply bounds on the force densities of the pattern (qmax, qmin)

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 shape's intrados and extrados

apply_envelope_on_xy

_summary_

apply_envelope_with_damage

Apply ub and lb to the nodes based on the shape's intrados and extrados and in the intra/extra damaged

apply_hor_multiplier

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

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 shape

apply_selfweight_from_pattern

Apply selfweight to the nodes considering a different Form Diagram to locate loads.

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)

from_elements

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

from_form_and_optimiser

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

from_form_and_shape

Create a analysis 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

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_data

Construct an object of this type from the provided data.

from_json

Construct an object from serialized data contained in a JSON file.

from_jsonstring

Construct an object from serialized data contained in a JSON string.

sha256

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

to_data

Convert an object to its native data representation.

to_json

Serialize the data representation of an object to a JSON file.

to_jsonstring

Serialize the data representation of an object to a JSON string.

validate_data

Validate the object's data against its data schema.

validate_json

Validate the object's data against its json schema.