Solvers (pyfe3d.solver)#
Solvers for the matrices and vectors that the elements of this package
assemble, all available from the pyfe3d.solver namespace:
linear static solution,
pyfe3d.solver.static:solve()andlinear_static();linear static analysis of unsupported structures with inertia relief,
pyfe3d.solver.inertia_relief:apply_inertia_relief();linear and non-linear static analyses of a model given by callables,
pyfe3d.solver.analysis:Analysis, with the Newton-Raphson method, full or modified and with an optional line search,pyfe3d.solver.newton_raphson, and the arc-length methods of Riks and of Crisfield,pyfe3d.solver.arc_length; configuration- and load-factor-dependent loads,pyfe3d.solver.callbacks, and prescribed displacements imposed exactly,FreeDofs;Crisfield’s convergence criterion, the default of the non-linear solvers,
pyfe3d.solver.convergence:crisfield_weights()andcrisfield_zeta();eigenvalue analyses,
pyfe3d.solver.eigen:linear_buckling(),natural_frequency()and, for damped systems,complex_frequency(), with the helpersdiagonal_preconditioner(),estimate_cayley_sigma(),is_positive_definite()andcheck_eigenpairs(), for symmetric and unsymmetric matrices, with the sparse solvers first and a dense solver as a last resort,DenseFallbackWarning;the cap of ARPACK’s
ncvagainst the faultydsteqrof some Intel MKL versions,pyfe3d.solver.arpackutils;sparse matrix utilities,
pyfe3d.solver.sparseutils:check_null_rows_cols()andis_symmetric().
The matrices given to the solvers are those of the free degrees-of-freedom,
e.g. KC0uu = KC0[bu, :][:, bu]: a null row or column of the stiffness
matrix, a degree-of-freedom without stiffness, raises a
numpy.linalg.LinAlgError naming the degrees-of-freedom, see
check_null_rows_cols(). A symmetric stiffness matrix that is not
positive definite, e.g. with insufficient boundary conditions, a mechanism
or re-entrant elements, raises a numpy.linalg.LinAlgError that
says so, with the likely causes, in linear_buckling(),
linear_static() and the linear Analysis.static(), and the
RuntimeError of natural_frequency() starts with that diagnosis
when its solvers fail.
The log messages of the non-linear static analyses are printed by
pyfe3d.solver.logger, unless silent=True.
- Linear static solution (
pyfe3d.solver.static) linear_static()solve()- Static analysis with inertia relief (
pyfe3d.solver.inertia_relief) apply_inertia_relief()- Static analyses of a model given by callables (
pyfe3d.solver.analysis) AnalysisFreeDofs- Convergence criteria of the non-linear solvers (
pyfe3d.solver.convergence) CRITERIAROUNDOFF_FACTORcheck_convergence()crisfield_weights()crisfield_zeta()roundoff_floor()scaled_norm()- Newton-Raphson solver (
pyfe3d.solver.newton_raphson) DIVERGENCE_FACTORINC_CUT_FACTORINC_GROWTH_FACTORLINE_SEARCH_ALPHANUM_ITER_BEFORE_DIVERGENCE_CHECKTOO_SLOW_WINDOW_NR_iterations()_abs_matrix()_check_divergence()_log_iteration()_norm()_solver_NR()_weights()- Arc-length solvers (
pyfe3d.solver.arc_length) DESIRED_NUM_ITERMAX_GROWTH_FACTORMAX_NUM_STEPSMETHODSMIN_GROWTH_FACTORPSI_solver_arc_length()- Calls to the callables of the non-linear solvers (
pyfe3d.solver.callbacks) accepts_kwarg()calc_fint()calc_kT()calc_load_vector()is_load_configuration_dependent()is_load_factor_dependent()- Eigenvalue analyses (
pyfe3d.solver.eigen) DenseFallbackWarningcheck_eigenpairs()complex_frequency()diagonal_preconditioner()estimate_cayley_sigma()is_positive_definite()linear_buckling()natural_frequency()- Utilities for ARPACK, against the Intel MKL bug of
dsteqr(pyfe3d.solver.arpackutils) ARPACK_MAX_NCVDSTEQR_MAX_SIZEMKL_FAULTY_VERSIONS_arpack_takes_rng()_auto_max_ncv()_deflation_shift()_lapack_name_from_config()_parse_mkl_version()_rayleigh_ritz()arpack_max_ncv()arpack_ncv()capped_eigsh()deflated_eigsh()dsteqr_is_faulty()lapack_is_mkl()mkl_version()release_memory()start_kwargs()start_vector()- Utilities for sparse matrices (
pyfe3d.solver.sparseutils) NUM_LISTED_DOFScheck_null_rows_cols()is_symmetric()- Log messages of the solvers (
pyfe3d.solver.logger) msg()warn()