CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Compiling OpenFOAM (V7) with libtorch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2024, 14:56
Default Compiling OpenFOAM (V7) with libtorch
  #1
New Member
 
serg
Join Date: Dec 2015
Posts: 28
Rep Power: 10
kont87 is on a distinguished road
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
Attached Images
File Type: jpg 1.jpg (132.2 KB, 2 views)
File Type: jpg 2.jpg (199.9 KB, 1 views)
kont87 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 10:54.