If this code is relevant for your research, please consider citing:
@article{li2023accelerating,
title={Accelerating unsteady aerodynamic simulations using predictive reduced-order modeling},
author={Li, Zilong and He, Ping},
journal={Aerospace Science and Technology},
volume={139},
pages={108412},
year={2023},
publisher={Elsevier}
}
- Compile OpenFOAM-v1812.
- Download Slepc https://slepc.upv.es/download/distrib/slepc-3.14.2.tar.gz
- Put this to the loadDAFoam.sh and source
export SLEPC_DIR=$DAFOAM_ROOT_PATH/packages/slepc-3.14.2 export SLEPC_ARCH=$PETSC_ARCH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SLEPC_DIR/$SLEPC_ARCH/lib export SLEPC_LIB=$SLEPC_DIR/$SLEPC_ARCH/lib
- Run ./configure and then run make to compile.
- Download TensorFlow-2.11 C API from wget https://github.com/DAFoam/files/releases/download/TensorFlow/libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz
- Make a new directory to your $HOME/packages folder called tensorflow-2.11
- Add these line to your loadDAFoam.sh
# Tensorflow export LIBRARY_PATH=$LIBRARY_PATH:$DAFOAM_ROOT_PATH/packages/tensorflow-2.11/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DAFOAM_ROOT_PATH/packages/tensorflow-2.11/lib export TENSOR_FLOW_INCLUDE_PATH=$DAFOAM_ROOT_PATH/packages/tensorflow-2.11/include
- Load your Python environment and install tensorflow python package: pip install tensorflow-cpu==2.11 numpy==1.24 scipy==1.10 pandas==1.5.3 seaborn
- Load the OpenFOAM environment and go to pisoROMFoam and run
./Allmake
- Go to a case and run
./Allrun