pyHarm.Elements.SubstructureMatrixElements.MatrixElement

This module contains the basic MatrixElement class being a abstract class derived from the ABCElement class It mostly implements a part of the required abstract methods : the methods that generates the indices from the input datas.

Classes

MatrixElement

This is the abstract class ruling the element class.

Module Contents

class pyHarm.Elements.SubstructureMatrixElements.MatrixElement.MatrixElement(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem)

Bases: pyHarm.Elements.ABCElement.ABCElement

This is the abstract class ruling the element class.

An element consists in an elementary contribution to the residual equations.

Parameters:
  • nh (int) – number of harmonics.

  • nti (int) – number of time steps.

  • name (str) – name given to the kinematic condition.

  • data (dict) – dictionary containing all the definition information of the kinematic condition.

  • CS (CoordinateSystem) – local or global coordinate system the kinematic condition is defined on.

flag_nonlinear

if True, the element is nonlinear.

Type:

bool

flag_AFT

if True, the element requires an alternating frequency/time domain procedure for computing residuals.

Type:

bool

flag_extforcing

if True, the element is an external forcing.

Type:

bool

flag_DLFT

if True, the element uses the dynamic Lagrangian method for computing the residuals.

Type:

bool

flag_adim

if True, the element is adimentioned.

Type:

bool

nh

number of harmonics.

Type:

int

nti

number of time steps.

Type:

int

D

Dynamic operators containing inverse discrete Fourier transform and discrete Fourier transform.

Type:

dict[np.ndarray,np.ndarray]

nabla

Derivation operator.

Type:

np.ndarray

__init_data__(name, data, CS)
__str__()
generateIndices(ed: pandas.DataFrame)

From the explicit dof DataFrame, generates the index of dofs concerned by the connector.

Parameters:

expl_dofs (pd.DataFrame) – explicit dof DataFrame from the studied system.

indices

index of the dofs that the connector needs.

Type:

np.ndarray

abstractmethod _generateMatrices(data)