how to couple ANN model in to fluent directly?

3 visualizaciones (últimos 30 días)
CL P
CL P el 3 de Nov. de 2023
Respondida: Akshat el 28 de Ag. de 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.

Respuestas (1)

Akshat
Akshat el 28 de Ag. de 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!

Categorías

Más información sobre Computational Fluid Dynamics (CFD) en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by