Module: tens

4 Classes

class hexrd.tens.T2Symm(args)[source]

template for symmetric second order tensor components

__init__(args)[source]
class hexrd.tens.T2Vecds(vecds)[source]

Bases: hexrd.tens.T2Symm

__init__(vecds)[source]
class hexrd.tens.T2Svec(val)[source]

Bases: hexrd.tens.T2Symm

__init__(val)[source]
class hexrd.tens.T2SvecP(svecp)[source]

Bases: hexrd.tens.T2Symm

__init__(svecp)[source]

23 Functions

hexrd.tens.vecdvToVecds(vecdv)[source]

convert from [t1,...,t5,v] to vecds[:] representation, where v is the relative volume

hexrd.tens.vecdsToSymm(vecds)[source]

convert from vecds representation to symmetry matrix

hexrd.tens.traceToVecdsS(Akk)[source]
hexrd.tens.vecdsSToTrace(vecdsS)[source]
hexrd.tens.trace3(A)[source]
hexrd.tens.symmToVecds(A)[source]

convert from symmetry matrix to vecds representation

hexrd.tens.matxToSkew(A)[source]
hexrd.tens.skewOfMatx(A)[source]
hexrd.tens.matxToSymm(A)[source]
hexrd.tens.symmOfMatx(A)[source]
hexrd.tens.symmToMVvec(A)[source]

convert from symmetric matrix to Mandel-Voigt vector representation (JVB)

hexrd.tens.MVvecToSymm(A)[source]

convert from Mandel-Voigt vector to symmetric matrix representation (JVB)

hexrd.tens.MVCOBMatrix(R)[source]

GenerateS array of 6 x 6 basis transformation matrices for the Mandel-Voigt tensor representation in 3-D given by:

[A] = [[A_11, A_12, A_13],
[A_12, A_22, A_23], [A_13, A_23, A_33]]


V

{A} = [A_11, A_22, A_33, sqrt(2)*A_23, sqrt(2)*A_13, sqrt(2)*A_12]

where the operation R * A *R.T (in tensor notation) is obtained by the matrix-vector product [T]*{A}.

USAGE

T = MVCOBMatrix(R)

INPUTS

  1. R is (3, 3) an ndarray representing a change of basis matrix

OUTPUTS

  1. T is (6, 6), an ndarray of transformation matrices as described above

NOTES

  1. Compoments of symmetric 4th-rank tensors transform in a manner analogous to symmetric 2nd-rank tensors in full matrix notation.

SEE ALSO

symmToMVvec, quatToMat

hexrd.tens.NormalProjectionOfMV(vec)[source]
hexrd.tens.svecToVecds(svec)[source]

convert from svec to vecds representation

hexrd.tens.symmPlusI(Ain)[source]

add the identity to a symmetric matrix

hexrd.tens.svecpToSvec(svecp)[source]
hexrd.tens.symmToSvec(symm)[source]
hexrd.tens.matxToSvec(matx)[source]
hexrd.tens.svecToMatx(svec)[source]
hexrd.tens.svecToSymm(svec)[source]
hexrd.tens.dAiAoH_svecList(aInv)[source]

derivative of inverse of symmetric matrix wrt svec components of that matrix; aInv is the inverse of the matrix

hexrd.tens.svecToSvecP(svec)[source]