Muscat.FE.SymWeakForm module

ArrayToMatrix(array, normalize=False) MutableDenseMatrix[source]

Convert a list of object into a sympy.Matrix (1D). str objects are converted into a symbols. If normalize is True, the array is rescaled by its L2-norm, if all values are numerical; a warning is issued otherwise.

Parameters:
  • array (arraylike) – a list of objects

  • normalize (bool, optional) – if true and all the values in the array are numerical then the vector is rescaled (norm(array) ==1), by default False

Returns:

a sympy matrix with str converted to symbols

Return type:

Matrix

CheckIntegrity(GUI: bool = False)[source]
Cross(a, b)[source]
Diag(arg)[source]
Divergence(arg, sdim=3)[source]
FromVoigtSigma(arg)[source]

https://en.wikipedia.org/wiki/Voigt_notation

GetConstant(name, size=1) Symbol | MutableDenseMatrix[source]
GetField(name: str, size: int64, star=False, sdim=3, extraCoordinates=[]) MutableDenseMatrix[source]
GetNormal(size: int64)[source]
GetScalarField(alpha)[source]
GetTestField(name, size, sdim=3, extraCoordinates=[])[source]
GetTestSufixChar() str[source]
Gradient(arg, sdim=3)[source]
Inner(a, b)[source]
Laplacian(arg, sdim=3)[source]
Strain(arg, sdim=3)[source]
StrainAxyCol(arg, radius)[source]
ToVoigtEpsilon(arg)[source]

https://en.wikipedia.org/wiki/Voigt_notation

ToVoigtSigma(arg)[source]

https://en.wikipedia.org/wiki/Voigt_notation

Trace(arg)[source]