genericROM.Containers.OperatorCompressionData.OperatorPreCompressionDataMechanical module

class OperatorPreCompressionDataMechanical(solutionName, gradPhiAtIntegPoint, integrationWeights, listOfTags)[source]

Bases: OperatorCompressionDataBase

Class containing an OperatorPreCompressionDataMechanical, used in a precomputation of the operator compression step of the POD-ECM method. The implementation uses Lagrange isoparametric finite elements as high-dimension integration model. This structure only depends on the mesh, and is computed once in nongeometrical varitions cases, even when snapshots are updated.

gradPhiAtIntegPoint

of length dimensionality of the mesh, of scipy.sparse.coo_matrix of size (numberOfIntegrationPoints, numberOfModes), components of the gradient of the shape functions at the integration points

Type:

list

integrationWeights

of size (numberOfIntegrationPoints,), vector containing the integration weights associated to the computation of the internal forces vector with the high-fidelity integration scheme

Type:

1D np.ndarray

listOfTags

(of length numberOfIntegrationPoints) at each integration point, containing all the tags of the element containing the integration points

Type:

list of lists (of str)

GetGradPhiAtIntegPoint()[source]

Get the gradPhiAtIntegPoint attribute

Returns:

of length dimensionality of the mesh, of scipy.sparse.coo_matrix of size (numberOfIntegrationPoints, numberOfModes)

Return type:

list

GetIntegrationWeights()[source]

Get the integrationWeights attribute

Returns:

of size (numberOfIntegrationPoints,)

Return type:

1D np.ndarray

GetListOfTags()[source]

Get the listOfTags attribute

Returns:

(of length numberOfIntegrationPoints)

Return type:

list of lists (of str)

GetNumberOfIntegrationPoints()[source]

Get the number of integration points

Returns:

number of integration points

Return type:

int