Interface

class compas_assembly.datastructures.Interface

Bases: Data

A data structure for representing interfaces between blocks and managing their geometrical and structural properties.

Parameters:
size
points
frame
forces
mesh
Attributes:
pointslist[Point]

The corner points of the interface polygon.

sizefloat

The area of the interface polygon.

frameFrame

The local coordinate frame of the interface polygon.

polygonPolygon

The polygon defining the contact interface.

meshMesh

A mesh representation of the interface.

kernPolygon

The “kern” part of the interface polygon.

forceslist[dict]

A dictionary of force components per interface point. Each dictionary contains the following items: {"c_np": ..., "c_nn": ...,  "c_u": ..., "c_v": ...}.

stressdistribution???

???

normalforceslist[Line]

A list of lines representing the normal components of the contact forces at the corners of the interface. The length of each line is proportional to the magnitude of the corresponding force.

compressionforceslist[Line]

A list of lines representing the compression components of the normal contact forces at the corners of the interface. The length of each line is proportional to the magnitude of the corresponding force.

tensionforceslist[Line]

A list of lines representing the tension components of the normal contact forces at the corners of the interface. The length of each line is proportional to the magnitude of the corresponding force.

frictionforceslist[Line]

A list of lines representing the friction or tangential components of the contact forces at the corners of the interface. The length of each line is proportional to the magnitude of the corresponding force.

resultantforcelist[Line]

A list with a single line representing the resultant of all the contact forces at the corners of the interface. The length of the line is proportional to the magnitude of the resultant force.

resultantpointPoint

The point of application of the resultant force on the interface.

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.