eigs

MapdlMath.eigs(nev, k, m=None, c=None, phi=None, algo=None, fmin=None, fmax=None)

Solve an eigenproblem.

Parameters
  • nev (int) – Number of eigenvalues to compute.

  • K (ansys.AnsMat) – An array representing the operation A * x where A is a square matrix.

  • M (ansys.AnsMat, optional) –

    An array 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)