Codes
Description
These codes are used to reproduce the results of paper. They are organized into two test cases: Test Case 1 and Test Case 2. It is recommended to start with the codes for Test Case 2, as it contains more comprehensive comments, and then proceed to Test Case 1. To enable users without OpenFOAM installed to reproduce the results in the paper, the OpenFOAM simulation data has been preprocessed and stored in mBase.mat.
Files
Steps to reproduce
For Test Case 1, there are four main scripts: main_adaptive, main_linear, main_quadratic, and main_cubic, corresponding to different basis function selection strategies. Running any of these scripts will reproduce the results presented in the paper. For Test Case 2, the main script is main.m. Running it will generate the result file U_95_Quad7_0.05.mat. Based on this file, the evaluation script TestOnPoints.m can be used to assess the performance of the proposed nonlinear ROM on the test set. Additionally, the script main_rank.m is used to generate nonlinear ROMs with different truncation ranks. The results are saved in the matRank folder, and the corresponding evaluation script is TestOnPoints_rank.m. These programs can be run on MATLAB 2021 or GNU Octave.
Institutions
- Harbin Engineering University