utils.GhiaValidator#
- class utils.GhiaValidator(h5_path: Path | str, Re: float | None = None, validation_data_dir: Path | str | None = None)[source]#
Bases:
objectValidator for lid-driven cavity results against Ghia et al. (1982) benchmark.
- Parameters:
Methods
__init__Initialize validator and load solution fields from HDF5 file.
Compute error metrics against Ghia benchmark data.
Plot velocity validation against Ghia benchmark using seaborn.
Print validation summary with error metrics.
Attributes
Examples using
utils.GhiaValidator#- AVAILABLE_RE = [100, 400, 1000, 3200, 5000, 7500, 10000]#
- compute_errors()[source]#
Compute error metrics against Ghia benchmark data.
- Returns:
dictDictionary containing error metrics for u and v velocities: - ‘u_l2’: L2 norm of u error - ‘u_linf’: L∞ (maximum) norm of u error - ‘u_rms’: Root mean square error for u - ‘v_l2’: L2 norm of v error - ‘v_linf’: L∞ (maximum) norm of v error - ‘v_rms’: Root mean square error for v