pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing

Classes

GeneralOrderForcing

This element is the general polynomial external forcing.

Functions

GOFResidual(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)

GOFJacobian(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)

Module Contents

pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFResidual(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)
pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFJacobian(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)
class pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GeneralOrderForcing(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem)

Bases: pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.NodeToNodeElement

This element is the general polynomial external forcing.

A forcing is an element that cannot be applied in between substructures (only considers the first entry in “connect” keyword).

dto

order of the time derivative.

Type:

int

ho

order of the harmonic where the forcing is applied.

Type:

int

phi

phase lag to apply between the cosine and sine term (0 = pure cosinus forcing).

Type:

float

amp

amplitude of the forcing.

Type:

float

factory_keyword: str = 'GOForcing'

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

Type:

str

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

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

amp

modified amplitude 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:
  • xg (np.ndarray) – full displacement vector.

  • om (float) – angular frequency value.

Returns:

residual vector.

Return type:

np.ndarray

evalJacobian(xg, om)

Computes the jacobians.

Parameters:
  • xg (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