CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Compiling OpenFOAM (V7) with libtorch (https://www.cfd-online.com/Forums/openfoam-installation/255338-compiling-openfoam-v7-libtorch.html)

kont87 April 2, 2024 14:56

Compiling OpenFOAM (V7) with libtorch
 
2 Attachment(s)
Dear all,

I've been trying to compile libtorch with OF v7 using wmake. I managed to include torch headers into some classes of OF and compiled with success. However, when I try to include it in a some custom class of type combustionModel, I receive a series of errors, which I believe it is not directly related with my own class (even when I just add an include directive #include<torch/torch.h> and do not call any torch function, I get errors)

There are similar repositories from Tomislav Maric and Andre Weiner. They've managed to do that and have nice repositories. My code basis is on V7, and I would prefer not to convert my existing code to V2006 or V2012 as they are using.

The error I am receiving is something related with torch and openfoam but I am not sure if there is a naming issue or something like that?

I can supply more inputs, any help is appreciated.

Kind regards


All times are GMT -4. The time now is 07:51.