Linear Finite Element Analysis / Solvers and conditioning
Check your understanding
Use the module’s assumptions and units. Work through each question before opening its worked check.
Check 1
Count the CSR entries for 32 free translations.
Show worked check
Count the CSR entries for 32 free translations: 94. The row-pointer array has 33 entries.
Check 2
Multiply every stiffness and load by the same positive constant.
Show worked check
The exact displacement is unchanged. Absolute residual scales, whereas the relative residual should not.
Check 3
Set b=0.
Show worked check
A stable restrained system gives x=0. Relative forward error against that zero vector is undefined; the implementation does not divide by it.
Check 4
Stop the two-unknown example after one unpreconditioned iteration.
Show worked check
Starting from zero gives x=(0.5,0) and residual (0,0.5), so it is not converged.
Check 5
A multiplier constraint produces a negative eigenvalue. Does that necessarily indicate physical instability, and is ordinary CG appropriate?
Show worked check
A multiplier constraint produces a negative eigenvalue. Do not select CG on the basis of symmetry alone. Review the formulation and use an appropriate indefinite solver.
Continue to Stress recovery.
Sources and specialist review
Netlib’s Templates was inspected for CG, preconditioning and stopping-criterion context. The CSR chain, small-system derivation and conditioning example are original. Production-scale solvers, mixed-unit scaling and preconditioner selection require specialist review. The derivations, examples and teaching routines are original. Bounded numerical checks are recorded; independent specialist review of the formulation, applicability and educational treatment remains open. Download the analysis routines, together with their member and bar dependencies.
Module summary
- Read compressed sparse row storage and implement a matrix–vector product
- Derive preconditioned conjugate-gradient updates for an SPD system
- Check true residual and known-solution error without confusing algebraic and modelling accuracy