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

An error occurred while attempting to couple OpenFoam with a machine learning model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2023, 10:17
Default An error occurred while attempting to couple OpenFoam with a machine learning model
  #1
New Member
 
BAI
Join Date: May 2023
Posts: 1
Rep Power: 0
Rockbeth is on a distinguished road
Hello everyone.

I attempted to update the source item location in the flame table and replaced it with neural network inference. The compilation was successful, but the following error occurred while updating the item. I don't know where the problem occurred. It should have been an error reported when establishing the Tensor.

Here are the error content and interface content
Attached Images
File Type: png 1.png (42.7 KB, 15 views)
File Type: png 2.png (66.6 KB, 12 views)
File Type: png 3.png (61.5 KB, 11 views)
Rockbeth is offline   Reply With Quote

Old   May 17, 2023, 04:11
Default
  #2
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
Segmentation error means that you are trying to access memory that has not been allocated. This is perhaps something like you are trying to access a pointer that has not been assigned, or an index in a list that does not exist.
In your figure 3, in line 59 the loop looks weird. Why use i<1? Where is inputs_ defined? Seems to be an error with that. Maybe add some print checks or use a debugger (Build OPENFOAM from Source and Debug with VisualCode).
joshwilliams is offline   Reply With Quote

Reply

Tags
machine learning, mlp, openfoam5.x


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
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 model compilation error 351Cleveland OpenFOAM 1 January 24, 2011 05:43


All times are GMT -4. The time now is 01:55.