ansys.mapdl.core.solution.Solution

class ansys.mapdl.core.solution.Solution(mapdl)

Collection of parameters specific to the solution.

Useful for checking the status of a solve after running mapdl.solve() and determining if it converged, the number of iterations to converge, etc.

Examples

Check if a solution has converged.

>>> mapdl.solution.converged
True

Get the cumulative number of iterations.

>>> mapdl.solution.n_cmit
1.0

Methods

Attributes

Solution.converged

Convergence indicator.

Solution.current_cnv

Current convergence value.

Solution.current_segment_cnv

Current segment convergence value.

Solution.decent_parm

Descent parameter.

Solution.displacement_cnv

Displacement convergence value.

Solution.fluid_flow_cnv

Fluid flow convergence value.

Solution.force_cnv

Force convergence value.

Solution.heat_flow_cnv

Heat flow convergence value.

Solution.magnetic_flux_cnv

Magnetic flux convergence value.

Solution.moment_cnv

Moment convergence value.

Solution.mx_creep_rat

Maximum creep ratio.

Solution.mx_dof

Maximum degree of freedom value.

Solution.mx_plastic_inc

Maximum plastic strain increment.

Solution.n_cg_iter

Number of iterations in the PCG and symmetric JCG (non-complex version) solvers.

Solution.n_cmit

Cumulative number of iterations.

Solution.n_cmls

Cumulative number of load steps.

Solution.n_cmss

Used only for static and transient analyses.

Solution.n_eqit

Number of equilibrium iterations.

Solution.pressure_conv

Pressure convergence value.

Solution.res_eig

Response eigenvalue for 1st order systems.

Solution.res_frq

Response frequency for 2nd order systems.

Solution.rotation_cnv

Rotation convergence value.

Solution.smcv

Scalar magnetic potential convergence value.

Solution.temperature_cnv

Temperature convergence value.

Solution.time_step_size

Time step size.

Solution.vector_cnv

Vector magnetic potential convergence value.

Solution.velocity_conv

Velocity convergence value.

Solution.voltage_conv

Voltage convergence value.