pyHarm.Elements.NodeToNodeElements.GeneralOrderElement

Classes

GeneralOrderElement

This element is the general polynomial element, it can apply any required polynomial link in displacement and in derivative order.

Functions

GOEResidual_noAFT(x, om, Pdir, Pslave, Pmaster, dto, ...)

GOEJacobian_noAFT(x, om, Pdir, Pslave, Pmaster, dto, ...)

GOEResidual_AFT(x, om, Pdir, Pslave, Pmaster, dto, xo, ...)

GOEJacobian_AFT(x, om, Pdir, Pslave, Pmaster, dto, xo, ...)

Module Contents

pyHarm.Elements.NodeToNodeElements.GeneralOrderElement.GOEResidual_noAFT(x, om, Pdir, Pslave, Pmaster, dto, xo, nabo, k)
pyHarm.Elements.NodeToNodeElements.GeneralOrderElement.GOEJacobian_noAFT(x, om, Pdir, Pslave, Pmaster, dto, xo, nabo, k)
pyHarm.Elements.NodeToNodeElements.GeneralOrderElement.GOEResidual_AFT(x, om, Pdir, Pslave, Pmaster, dto, xo, nabo, k, DFT, DTF)
pyHarm.Elements.NodeToNodeElements.GeneralOrderElement.GOEJacobian_AFT(x, om, Pdir, Pslave, Pmaster, dto, xo, nabo, k, DFT, DTF)
class pyHarm.Elements.NodeToNodeElements.GeneralOrderElement.GeneralOrderElement(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem)

Bases: pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.NodeToNodeElement

This element is the general polynomial element, it can apply any required polynomial link in displacement and in derivative order.

dto

order of the time derivative.

Type:

int

xo

order of the power to apply to the displacement.

Type:

int

k

linear factor to apply.

Type:

float

factory_keyword: str = 'GOElement'

keyword that is used to call the creation of this class in the system factory.

Type:

str

__post_init__()
__flag_update__()
_evalResidual(x, om)
_evalJacobian(x, om)
adim(lc, wc)

Modifies the element properties according to the characteristic length and angular frequency.

k

modified linear coefficient to apply according to the characteristic parameters.

Type:

float

flag_adim

True if equations are to be adimensionalized.

Type:

bool

evalResidual(xg, om)

Computes the residual.

Parameters:
  • x (np.ndarray) – full displacement vector.

  • om (float) – angular frequency value.

Returns:

residual vector.

Return type:

np.ndarray

evalJacobian(xg, om)

Computes the jacobians.

Parameters:
  • x (np.ndarray) – full displacement vector.

  • om (float) – angular frequency value.

Returns:

Jacobian with respect to displacement. np.ndarray: Jacobian with respect to angular frequency.

Return type:

np.ndarray