Uncertainty Quantification and Sensitivity Analysis¶
Manufacturing tolerances and tuning errors perturb a cavity’s geometry, and
those perturbations propagate to the figures of merit. cavsim2d answers two
questions: how much does a QOI scatter (uncertainty quantification), and
which input dimensions drive that scatter (sensitivity analysis)
[SRA+08].
Problem Setup¶
Let \(\mathbf{x} = (x_1, \dots, x_d)\) be the uncertain geometric inputs (half-cell parameters, or shape control points) with a joint probability density \(\rho(\mathbf{x})\) on a domain \(\Gamma\), and let \(Q(\mathbf{x})\) be a scalar QOI obtained by solving the (eigenmode or wakefield) model at \(\mathbf{x}\). The uncertain inputs are taken independent and each mapped to a reference interval \([-1, 1]\).
Moment Propagation by Cubature¶
The statistics of \(Q\) are its weighted moments under \(\rho\):
Rather than sampling these integrals with Monte Carlo, cavsim2d evaluates
them with a cubature rule: a small set of nodes \(\{\mathbf{x}^{(i)}\}_{i=1}^{N}\)
and weights \(\{w_i\}\) chosen so that the weighted sum is exact for
polynomials up to a given total degree. The model is solved once per node, and
the moments are the weighted sums
The skewness and (non-excess) kurtosis follow from the higher central moments, normalised by the standard deviation \(\sigma = \sqrt{\mathrm{Var}[Q]}\):
The default rule is a degree-3 Stroud cubature [Str71], which needs only \(\mathcal{O}(2d)\) nodes for \(d\) inputs — far fewer model solves than Monte Carlo for the same accuracy on smooth responses. Degree-5 Stroud, tensor Gauss–Legendre, and Latin-hypercube / Monte-Carlo sampling are also available (the sampling rules fall back to uniform weights \(w_i = 1/N\)).
Sensitivity: Sobol Indices¶
Variance-based (Sobol) sensitivity analysis attributes the output variance \(\mathrm{Var}[Q]\) to the inputs through the ANOVA/Sobol decomposition [Sobol01]. The first-order index of input \(x_j\),
is the fraction of the variance removed on average by fixing \(x_j\) alone — its main effect. The total-effect index,
additionally captures every interaction \(x_j\) participates in, so \(S_{T_j} \ge S_j\), with equality when \(x_j\) has no interactions. The inputs with the largest \(S_{T_j}\) are the ones whose tolerances matter most. The indices are estimated from the model evaluations (over a surrogate or directly), giving a ranked, dimensionless attribution of the QOI’s scatter to the geometry.