solve

AnsSolver.solve(b, x=None)

Solve a linear system

Parameters
bansys.mapdl.math.AnsVec

APDLmath vector.

xansys.mapdl.math.AnsVec, optional

APDLmath vector to place the solution.

Returns
AnsVec

Solution vector. Identical to x if supplied.

Examples

>>> k = mm.stiff(fname='PRSMEMB.full')
>>> s = mm.factorize(k)
>>> b = mm.get_vec(fname='PRSMEMB.full', mat_id="RHS")
>>> x = s.solve(b)
>>> x
APDLMath Vector Size 20000