BasicTools.FE.IntegrationsRules module

BasicTools.FE.IntegrationsRules.CheckIntegrity(GUI=False)[source]
BasicTools.FE.IntegrationsRules.GetRule(ruleName: str | None = None, rule: ElementIntegrationRuleType | None = None) ElementIntegrationRuleType[source]

Get the integration rule using a name or a integration rule. In the case where both are none then LagrangeIsoParam is returned

Parameters:
  • ruleName (str, optional) – name of the integration rule, by default None

  • rule (IntegrationRuleType, optional) – integration rule in the case ruleName is None, by default None

Returns:

the integration rule

Return type:

IntegrationRuleType

BasicTools.FE.IntegrationsRules.TensorProd(p1: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], w1: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], p2: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], w2: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], p3: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None, w3: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None) ElementIntegrationRuleType[source]
BasicTools.FE.IntegrationsRules.TensorProdHomogeneous(dim: int, p: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], w: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) ElementIntegrationRuleType[source]
BasicTools.FE.IntegrationsRules.TensorProductGauss(dim: int, npoints: int = 2) ElementIntegrationRuleType[source]

Tensor product of gauss point in dim dimension using npoints per dimension

Parameters:
  • dim (int) – the dimensionality of the tensor product

  • npoints (int, optional) – Number of points per dimension , by default 2

Returns:

Integration Rule (points and weights)

Return type:

IntegrationRuleType