Table of Contents
Fetching ...

Anvil: An integration of artificial intelligence, sampling techniques, and a combined CAD-CFD tool

Harsh Vardhan, Umesh Timalsina, Michael Sandborn, David Hyde, Peter Volgyesi, Janos Sztipanovits

TL;DR

Anvil addresses the need for an open-source, automated CAD-CFD workflow for shape optimization in subsonic flows by integrating FreeCAD for CAD modeling, OpenFOAM for CFD, and Bayesian optimization within a Python-driven toolchain. It enables three operational modes—data generation, CFD evaluation, and optimization—using a parametric CAD seed design expressed in a configuration JSON, with meshing via auto-refinement and turbulence modeled by Reynolds-averaged Navier–Stokes with the $k$-$\omega$ SST model. The authors demonstrate Anvil through CFD studies of UUV, land vehicles, UAVs, as well as an underwater hull optimization and winged-air-vehicle data generation, highlighting its end-to-end automation and sample-efficient design exploration. The work advances accessible, efficient, open-source design optimization workflows for subsonic engineering problems and outlines clear directions for extending to higher speeds and enhanced numerical validation.

Abstract

In this work, we introduce an open-source integrated CAD-CFD tool, Anvil, which combines FreeCAD for CAD modeling and OpenFOAM for CFD analysis, along with an AI-based optimization method (Bayesian optimization) and other sampling algorithms. Anvil serves as a scientific machine learning tool for shape optimization in three modes: data generation, CFD evaluation, and shape optimization. In data generation mode, it automatically runs CFD evaluations and generates data for training a surrogate model. In optimization mode, it searches for the optimal design under given requirements and optimization metrics. In CFD mode, a single CAD file can be evaluated with a single OpenFOAM run. To use Anvil, experimenters provide a JSON configuration file and a parametric CAD seed design. Anvil can be used to study solid-fluid dynamics for any subsonic flow conditions and has been demonstrated in various simulation and optimization use cases. The open-source code for the tool, installation process, artifacts (such as CAD seed designs and example STL models), experimentation results, and detailed documentation can be found at \url{https://github.com/symbench/Anvil}.

Anvil: An integration of artificial intelligence, sampling techniques, and a combined CAD-CFD tool

TL;DR

Anvil addresses the need for an open-source, automated CAD-CFD workflow for shape optimization in subsonic flows by integrating FreeCAD for CAD modeling, OpenFOAM for CFD, and Bayesian optimization within a Python-driven toolchain. It enables three operational modes—data generation, CFD evaluation, and optimization—using a parametric CAD seed design expressed in a configuration JSON, with meshing via auto-refinement and turbulence modeled by Reynolds-averaged Navier–Stokes with the - SST model. The authors demonstrate Anvil through CFD studies of UUV, land vehicles, UAVs, as well as an underwater hull optimization and winged-air-vehicle data generation, highlighting its end-to-end automation and sample-efficient design exploration. The work advances accessible, efficient, open-source design optimization workflows for subsonic engineering problems and outlines clear directions for extending to higher speeds and enhanced numerical validation.

Abstract

In this work, we introduce an open-source integrated CAD-CFD tool, Anvil, which combines FreeCAD for CAD modeling and OpenFOAM for CFD analysis, along with an AI-based optimization method (Bayesian optimization) and other sampling algorithms. Anvil serves as a scientific machine learning tool for shape optimization in three modes: data generation, CFD evaluation, and shape optimization. In data generation mode, it automatically runs CFD evaluations and generates data for training a surrogate model. In optimization mode, it searches for the optimal design under given requirements and optimization metrics. In CFD mode, a single CAD file can be evaluated with a single OpenFOAM run. To use Anvil, experimenters provide a JSON configuration file and a parametric CAD seed design. Anvil can be used to study solid-fluid dynamics for any subsonic flow conditions and has been demonstrated in various simulation and optimization use cases. The open-source code for the tool, installation process, artifacts (such as CAD seed designs and example STL models), experimentation results, and detailed documentation can be found at \url{https://github.com/symbench/Anvil}.
Paper Structure (19 sections, 7 figures, 1 table)

This paper contains 19 sections, 7 figures, 1 table.

Figures (7)

  • Figure 1: Anvil Architecture Diagram. With a configuration JSON file and a parametric CAD seed design, designers can operate Anvil in three modes: (i.) Data Generation, where the CFD results by sampling provided design space can be saved in batches (ii.) CFD, for running CFD on a single parametric design (iii.) Optimization, for searching for optimum design parameters provided a design space and CFD drag, with Bayesian Optimization
  • Figure 2: \ref{['fig:UUV:des']} The UUV design. Steady state flow at the surface layer of design, with the flow field colored by \ref{['fig:UUV:vf']} Velocity field (meters/second), \ref{['fig:UUV:pf']} Pressure field (Pascals).
  • Figure 3: \ref{['fig:truck:des']} The land vehicle design. Steady state flow at the surface layer of design, with the flow field colored by \ref{['fig:truck:vf']} Velocity field (meters/second), \ref{['fig:truck:pf']} Pressure field (Pascals).
  • Figure 4: \ref{['fig:UAV:des']} The UAV design. Steady state flow at the surface layer of design, with the flow field colored by \ref{['fig:UAV:vf']} Velocity field (meters/second), \ref{['fig:UAV:pf']} Pressure field (Pascals).
  • Figure 5: A UUV hull sketch in a CAD environment, with control points are shown in black.
  • ...and 2 more figures