how to couple ANN model in to fluent directly?

3 views (last 30 days)
CL P
CL P on 3 Nov 2023
Answered: Akshat on 28 Aug 2024
Dear Expert, My question is, is there any way to call or couple the code file (Matlab or Python) in the fluent simulation? if yes please let me know the what is procedure and steps. I created an ann model based on the weight and bias function and I want to know how can i couple or add directly this file to the fluent just like the UDF function of one property or function.

Answers (1)

Akshat
Akshat on 28 Aug 2024
Hey,
UDFs in Fluent are typically written in C, and I see that you want to integrate an ANN model written in MATLAB within these UDFs.
For this, there is MATLAB engine API for C, which allows calling of MATLAB Functions and Scripts from C files. You can make a MATLAB function does the whole processing of the ANN and then call it from the UDF which you have written.
For more information on how to use this engine, refer this documentation link:
Hope this helps!

Categories

Find more on Computational Fluid Dynamics (CFD) in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!