UMN-CRFEL / OpenFOAM-Cantera

Interface to couple OpenFOAM and Cantera
GNU General Public License v3.0
34 stars 18 forks source link

The version of OpenFOAM ? #1

Open woshidaxia123 opened 2 years ago

woshidaxia123 commented 2 years ago

Hi! I'm also a Shanghai Jiao Tong University student and I'm from the School of Aeronautic and Astroanutics. Your works make great progress for the combustion similation with OF. However, it's seems that there are some problems when I compile the solver. So I'm wondering which version of OpenFOAM are you based on?

suoy305 commented 2 years ago

This is based on OpenFOAM-6

barbariansubhkaran commented 11 months ago

But the solver is not working with OpenFOAM v6.

barbariansubhkaran commented 11 months ago

But the solver is not working with OpenFOAM v6.

bialger commented 1 month ago

Oh it will, after editing some files. See https://github.com/EclipseRE/OpenFOAM-EclipseRE

barbariansubhkaran commented 1 month ago

Screenshot from 2024-08-07 13-47-15

Hello, Thank you very much. It started to compile. Just there is an error. I think it is related to the cantera installation. Please can you help me with this.

bialger commented 1 month ago

Screenshot from 2024-08-07 13-47-15

Hello, Thank you very much. It started to compile. Just there is an error. I think it is related to the cantera installation. Please can you help me with this.

Hello. Yes,the version of cantera should be v2.5.1 (or lower, but I tested only with 2.5.1) - that's because they removed IdealGasMix from the 2.6. However, if you try git checkout v2.5.1 and then scons build in the Conda environment, you will face a lot of build errors related to the format_to function. I decided to comment all occurrences in *.cpp. It works, but then it faces some sort of installation error on my device. Source code and build files are attached to the release on our team OpenFOAM fork repo. Tomorrow or a bit later, I will try to fix Cantera installation and publish edited source code for version 2.5.1.

bialger commented 1 month ago

Hello, Thank you very much. It started to compile. Just there is an error. I think it is related to the cantera installation. Please can you help me with this.

Hello, I did it. Go to the parent catalog of OpenFOAM-EclipseRE, then clone out team Cantera fork. Then create conda env from cantera-build.yaml file, and when it is ready, activate the environment with the same name and build Cantera with following options (replace the paths):

prefix = '/common/install/dir/canteraInstall'
python3_package = 'full'
boost_inc_dir = '/conda/envs/path/cantera-build/include'

Then do scons install.

After this, do git pull in cloned OpenFOAM-EclipseRE repo and then update the build.