BlastOFormer: Attention and Neural Operator Deep Learning Methods for Explosive Blast Prediction
Reid Graves, Anthony Zhou, Amir Barati Farimani
TL;DR
BlastOFormer introduces a Transformer-based surrogate for full-field blast pressure prediction that encodes obstacle configurations via signed distance functions and processes a grid-to-grid representation with patch-wise tokens. By combining a spatial encoder with a cross-attention-based decoder and an auxiliary UnscalerCNN, it delivers real-time predictions with high magnitude fidelity and spatial coherence, outperforming CNN and FNO baselines on blastFoam-generated data. The approach achieves an unscaled R^2 of 0.9516, MAE around 484 kPa and MAPE near 21%, with inference time of 6.4 ms, representing orders-of-magnitude speedups over CFD. These results demonstrate BlastOFormer’s potential as a practical real-time surrogate for blast-pressure estimation in cluttered environments, with strong generalization across obstacle configurations and plan for future extensions to time-dependent and uncertainty-quantified predictions.
Abstract
Accurate prediction of blast pressure fields is essential for applications in structural safety, defense planning, and hazard mitigation. Traditional methods such as empirical models and computational fluid dynamics (CFD) simulations offer limited trade offs between speed and accuracy; empirical models fail to capture complex interactions in cluttered environments, while CFD simulations are computationally expensive and time consuming. In this work, we introduce BlastOFormer, a novel Transformer based surrogate model for full field maximum pressure prediction from arbitrary obstacle and charge configurations. BlastOFormer leverages a signed distance function (SDF) encoding and a grid to grid attention based architecture inspired by OFormer and Vision Transformer (ViT) frameworks. Trained on a dataset generated using the open source blastFoam CFD solver, our model outperforms convolutional neural networks (CNNs) and Fourier Neural Operators (FNOs) across both log transformed and unscaled domains. Quantitatively, BlastOFormer achieves the highest R2 score (0.9516) and lowest error metrics, while requiring only 6.4 milliseconds for inference, more than 600,000 times faster than CFD simulations. Qualitative visualizations and error analyses further confirm BlastOFormer's superior spatial coherence and generalization capabilities. These results highlight its potential as a real time alternative to conventional CFD approaches for blast pressure estimation in complex environments.
