Hostname: page-component-77f85d65b8-grvzd Total loading time: 0 Render date: 2026-03-26T19:43:59.549Z Has data issue: false hasContentIssue false

Discretization-independent surrogate modeling of physical fields around variable geometries using coordinate-based networks

Published online by Cambridge University Press:  08 January 2025

James Duvall*
Affiliation:
Department of Aerospace Engineering, University of Michigan, Ann Arbor, MI, USA
Karthik Duraisamy
Affiliation:
Department of Aerospace Engineering, University of Michigan, Ann Arbor, MI, USA
*
Corresponding author: James Duvall; Email: jamesduv@umich.edu

Abstract

Numerical solutions of partial differential equations require expensive simulations, limiting their application in design optimization, model-based control, and large-scale inverse problems. Surrogate modeling techniques aim to decrease computational expense while retaining dominant solution features and characteristics. Existing frameworks based on convolutional neural networks and snapshot-matrix decomposition often rely on lossy pixelization and data-preprocessing, limiting their effectiveness in realistic engineering scenarios. Recently, coordinate-based multilayer perceptron networks have been found to be effective at representing 3D objects and scenes by regressing volumetric implicit fields. These concepts are leveraged and adapted in the context of physical-field surrogate modeling. Two methods toward generalization are proposed and compared: design-variable multilayer perceptron (DV-MLP) and design-variable hypernetworks (DVH). Each method utilizes a main network which consumes pointwise spatial information to provide a continuous representation of the solution field, allowing discretization independence and a decoupling of solution and model size. DV-MLP achieves generalization through the use of a design-variable embedding vector, while DVH conditions the main network weights on the design variables using a hypernetwork. The methods are applied to predict steady-state solutions around complex, parametrically defined geometries on non-parametrically-defined meshes, with model predictions obtained in less than a second. The incorporation of random Fourier features greatly enhanced prediction and generalization accuracy for both approaches. DVH models have more trainable weights than a similar DV-MLP model, but an efficient batch-by-case training method allows DVH to be trained in a similar amount of time as DV-MLP. A vehicle aerodynamics test problem is chosen to assess the method’s feasibility. Both methods exhibit promising potential as viable options for surrogate modeling, being able to process snapshots of data that correspond to different mesh topologies.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Network schematics for (a): DV-MLP and (b) DVH.

Figure 1

Figure 2. Illustrating the difference between (a) fully-mixed batches and (b) batch-by-case training minibatches by considering the shape and dimension of the training arrays for a single batch $ j $. Colors correspond to data from a given case.

Figure 2

Table 1. Description of entries in geometric design-variable-vector $ {\boldsymbol{\mu}}_{\mathrm{geo}} $ for the 2D vehicle aerodynamics dataset

Figure 3

Figure 3. The drag coefficient versus significantly correlated design variables of windshield angle, vehicle length, and floor-to-roof height. The Pearson correlation coefficient is reported in each subplot.

Figure 4

Figure 4. The drag coefficient versus max/min dimensional static pressure, and max/min nondimensional static pressure.

Figure 5

Figure 5. Pertaining the training dataset, (a) an example unstructured CFD mesh and (b) a composite image of all 124 vehicle shapes overlain on the same axes

Figure 6

Table 2. Number of trainable parameters for DV-MLP and DVH models for all baseline results of Section 3, where $ H={H}_L=50 $, $ {L}_m={L}_H=5 $

Figure 7

Table 3. Comparing training profiles among the models and training methods

Figure 8

Table 4. Dataset and training options, where $ {s}_t $ is the total number of optimizer steps, and values in parentheses are dataset iterations or epochs

Figure 9

Table 5. Summary of training and validation error metrics at a vehicle speed of 90 kph

Figure 10

Figure 6. Mean absolute error over points truncated from training cases versus those retained and used in training for DV-MLP and DVH M2 predictions for each field variable.

Figure 11

Table 6. Comparing training-case error metrics between points that are retained and actually used in training versus those which are truncated

Figure 12

Figure 7. Validation-group instance (a) ground-truth pressure field, (b) DV-MLP prediction, (c) DV-MLP error, (d) DVH prediction, and (e) DV-MLP error. Error colorbars are limited to $ \pm 4\times RMSE $ centered on the average error for the instance.

Figure 13

Table 7. Dataset and training options, where $ {s}_t $ is the total number of optimizer steps, and values in parentheses are dataset-iterations or epochs

Figure 14

Figure 8. Training (solid) and validation (dashed) losses during training as the amount of training data is varied from 5 to 199 cases, where darker lines correspond to more data, for (a) DV-MLP and (b) DVH. The curves have been smoothed using a moving average with a window length of 3 epochs for DV-MLP and 5 epochs for DVH.

Figure 15

Figure 9. Comparing trends in predictive error using mean-relative-L2-error (MRL2E), with (a) the final weights, and (b) the best weights per validation loss seen during training. The y-axis is not multiplied by 100%; therefore, $ {10}^{-1} $ corresponds to 10% mean error in the state variable.

Figure 16

Table 8. Summary of training and validation error metrics for vehicle speeds of 90 and 130 kph with a training fraction of 0.80

Figure 17

Table 9. Comparing DVH nondimensional and dimensional error metrics computed for each vehicle speed separately with a training fraction of 0.80

Figure 18

Figure 10. Pressure field ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape.

Figure 19

Table 10. Profiling DV-MLP and DVH models, which use random Fourier features, with single and mixed precision

Figure 20

Table 11. Number of trainable parameters for DV-MLP and DVH models for all Fourier-feature results of Section 4, where $ H={H}_L=50 $, $ {L}_m={L}_H=5 $

Figure 21

Table 12. Summary of training and validation error metrics at a vehicle speed of 90 kph for models using a Fourier-feature layer

Figure 22

Figure 11. DV-MLP (a–c) and DVH (d–f) single speed, pointwise absolute error probability distributions with and without random Fourier features, computed using Gaussian kernel density estimates using KDEpy python library .

Figure 23

Table 13. MRL2E (equivalent to mean-absolute-percent error) in predicting the pressure drag coefficient over the training and validation groups for non-Fourier and Fourier-based models for a single vehicle speed of 90 kph

Figure 24

Figure 12. Comparing trends in predictive error using mean-relative-L2-error (a), with (b) the final weights, and (c) the best weights per validation loss seen during training. The y-axis is not multiplied by 100%, therefore $ {10}^{-1} $ corresponds to 10% mean error in the state variable.

Figure 25

Table 14. Summary of training and validation error metrics for vehicle speeds of 90 and 130 kph with a training fraction of 0.80, including the use of Fourier features. The percentage improvement when using Fourier features is given in parentheses

Figure 26

Figure 13. $ x $-velocity ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape, where neither instance was included in the training set.

Figure 27

Figure 14. Line probes comparing baseline and Fourier feature DVH predictions for a validation-group case at 90 kph.

Figure 28

Figure 15. Comparing DV-MLP and DVH pointwise absolute error probability distributions using random Fourier features, computed using Gaussian kernel density estimates.

Figure 29

Table 15. MRL2E (equivalent to mean-absolute-percent error) in predicting the pressure drag coefficient over the training and validation groups for non-Fourier and Fourier-based models for multiple vehicle speeds of 90 and 130 kph

Figure 30

Table 16. Details on the structure of the networks used in the numerical experiments

Figure 31

Table 17. Summary of the network inputs and outputs for all sections

Figure 32

Figure 16. The variation in training RMSE for each component of the predicted flow-field as the spatial batch size is varied. Non-Fourier DV-MLP and DVH models are considered.

Figure 33

Figure 17. The variation in optimizer step times as the spatial batch size is varied for non-Fourier DVH and DV-MLP models trained using single precision. The errors bars denote the standard deviation of the profiled step time.

Figure 34

Figure 18. Validation group pressure field predictions and errors.

Figure 35

Figure 19. Validation group $ x $-velocity predictions and errors.

Figure 36

Figure 20. Validation group $ y $-velocity predictions and errors.

Figure 37

Figure 21. $ x $-velocity field ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape.

Figure 38

Figure 22. $ y $-velocity field ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape.

Figure 39

Figure 23. Training curves for DV-MLP models, where the Fourier features are (a) applied to all inputs $ {\mathbf{x}}^{\prime } $ and $ \boldsymbol{\mu} $ and (b) applied to only spatial inputs $ {\mathbf{x}}^{\prime } $.

Figure 40

Figure 24. Pressure field ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape, where neither instance was included in the training set.

Figure 41

Figure 25. $ y $-velocity field ground truth, DVH prediction, and errors at 90 and 130 kph for the same vehicle shape, where neither instance was included in the training set.

Submit a response

Comments

No Comments have been published for this article.