pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap

Attributes

Classes

DLFTUniGap

This element is the DLFT unilateral gap element.

Functions

DLFTUniGapResidual_jax(x, om, Rlin, nbSub, Pdir, ...)

DLFTUniGapResidual(x, om, Rlin, nbSub, Pdir, Pslave, ...)

DLFTUniGapJacobian(x, om, Rlin, dJdxlin, dJdomlin, ...)

Module Contents

pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.DLFTUniGapResidual_jax(x, om, Rlin, nbSub, Pdir, Pslave, Pmaster, g, eps, DFT, DTF, N0)
pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.jaxf
pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.jaxf = None
pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.DLFTUniGapResidual(x, om, Rlin, nbSub, Pdir, Pslave, Pmaster, g, eps, DFT, DTF, N0)
pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.DLFTUniGapJacobian(x, om, Rlin, dJdxlin, dJdomlin, nbSub, Pdir, Pslave, Pmaster, g, eps, DFT, DTF)
class pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTUniGap.DLFTUniGap(nh: int | list[int], nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem, dynop: dict[str, numpy.ndarray] | None = None)

Bases: pyHarm.Elements.NodeToNodeElements.DLFTElements.DLFTElement.DLFTElement

This element is the DLFT unilateral gap element.

N0

normal force applied at contact.

Type:

float

g

gap value.

Type:

float

eps

penalty parameter of the DLFT method.

Type:

foat

jac

if “analytical” uses analytical expression of jacobian, if “jax” uses automatic differentiation, if “DF” uses finite difference.

Type:

str

factory_keyword: str = 'DLFTUniGap'

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

Type:

str

__post_init__()
_evalJaco_ana(xg, om, Rglin, dJgdxlin, dJgdomlin, *args)
_evalJaco_jax(xg, om, Rglin=None, dJgdxlin=None, dJgdomlin=None)
adim(lc, wc)

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

eps

modified penalty coefficient to apply according to the characteristic parameters.

Type:

float

g

modified gap value according to the characteristic parameters.

Type:

float

flag_adim

True if equations are to be adimensionalized

Type:

bool

evalResidual(xg, om, Rglin=None)

Computes the residual.

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

  • om (float) – angular frequency value.

  • Rglin (np.ndarray) – Residual vector of all the linear element contributions.

Returns:

residual vector.

Return type:

np.ndarray

evalJacobian(xg, om, Rglin=None, dJgdxlin=None, dJgdomlin=None)

Computes the jacobians.

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

  • om (float) – angular frequency value.

  • Rglin (np.ndarray) – Residual vector of all the linear element contributions.

  • dJgdxlin (np.ndarray) – Jacobian with respect to displacement of all the linear element contributions.

  • dJgdomlin (np.ndarray) – Jacobian with respect to angular frequency of all the linear element contributions.

Returns:

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

Return type:

np.ndarray