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
2024-06-24
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{<a class="link-external link-https" href="https://github.com/symbench/Anvil" rel="external noopener nofollow">this https URL</a>}.
Computational Engineering, Finance, and Science,Machine Learning,Numerical Analysis
What problem does this paper attempt to address?
The main objective of this paper is to address shape optimization problems in engineering design, particularly those requiring Computer-Aided Design (CAD) modeling and Computational Fluid Dynamics (CFD) analysis. Specifically, the paper attempts to solve the following two major issues: 1. **Lack of open-source and user-friendly automated CAD-CFD evaluation tools**: The current shape optimization process is hindered by manual and fragmented CAD design modifications and CFD fluid dynamics analysis, requiring manual file handling (e.g., creating and transferring STL files between two programs). Seamless integration is crucial for automating the design evaluation process and reducing human intervention. Although integrated commercial CAD-CFD solutions exist, the high licensing costs often make them unaffordable for researchers. 2. **Time-consuming and computationally expensive evaluation process**: The evaluation process through the CAD-CFD pipeline is significantly time-consuming and computationally intensive, with simulation times ranging from a few minutes to several days. In complex design spaces, this inefficiency is particularly pronounced in exhaustive search methods. AI-based optimization methods offer a solution due to their sample efficiency and superior convergence performance, highlighting the need to integrate these methods with CAD-CFD tools to enhance practicality and performance. To address these issues, the paper introduces an open-source, highly automated, and algorithmically efficient software tool—Anvil, for CAD-CFD design optimization problems. This tool integrates existing open-source CAD and CFD tools and encapsulates this integration within a Python-based sampling and optimization framework.