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.
- frame
Frame
The local coordinate frame of the interface polygon.
- polygon
Polygon
The polygon defining the contact interface.
- mesh
Mesh
A mesh representation of the interface.
- kern
Polygon
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.
- resultantpoint
Point
The point of application of the resultant force on the interface.
- pointslist[
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.