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, 15:56
Default Compiling OpenFOAM (V7) with libtorch
  #1
New Member
 
serg
Join Date: Dec 2015
Posts: 29
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, 5 views)
File Type: jpg 2.jpg (199.9 KB, 4 views)
kont87 is offline   Reply With Quote

Old   June 30, 2024, 01:46
Default
  #2
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18
sharonyue is on a distinguished road
https://cfd-china.com/topic/6967/ope...l-step-by-step

Please see this and try.
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue 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 26 June 21, 2024 07:54
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54


All times are GMT -4. The time now is 00:35.