eigs#

AnsMath.eigs(nev, k, m=None, c=None, phi=None, algo=None, fmin=None, fmax=None, cpxmod=None)#

Solve an eigenproblem.

Parameters:
nevint

Number of eigenvalues to compute.

kAnsMat

AnsMath matrix representing the operation A * x where A is a square matrix.

mAnsMat, optional

AnsMath matrix representing the operation M * x for the generalized eigenvalue problem:

K * x = M * x

Examples

Solve an eigenproblem using the mass and stiffness matrices stored from a prior Ansys run.

>>> k = mm.stiff()
>>> m = mm.mass()
>>> nev = 10
>>> a = mm.mat(k.nrow, nev)
>>> ev = mm.eigs(nev, k, m, phi=a)