cratepy.clustering.clusteringdata.SpatialCoordinates

class SpatialCoordinates[source]

Bases: FeatureAlgorithm

Spatial coordinates.

get_feature_data_matrix(self, strain_formulation, problem_type, rve_dims, n_voxels_dims, rve_response)[source]

Compute data matrix associated to clustering feature.

Constructor.

List of Public Methods

get_feature_data_matrix

Compute data matrix associated to clustering feature.

Methods

__init__()[source]

Constructor.

get_feature_data_matrix(strain_formulation, problem_type, rve_dims, n_voxels_dims, rve_response)[source]

Compute data matrix associated to clustering feature.

Parameters:
  • strain_formulation ({'infinitesimal', 'finite'}) – Problem strain formulation.

  • problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).

  • rve_response (numpy.ndarray (2d)) – RVE elastic response for one or more macroscale loadings (numpy.ndarray of shape (n_voxels, n_strain_comps)), where each macroscale loading is associated with a set of independent strain components.

Returns:

data_matrix – Clustering feature data matrix (numpy.ndarray of shape (n_voxels, n_feature_dim)).

Return type:

numpy.ndarray (2d)