This package demonstrates how to replace traditional heat transfer coefficient calculations with Feed-Forward Neural Networks (FFNNs) in a Modelica simulation.
Two types of neural networks are integrated as surrogates for the physical Nusselt number model:
Both models are exported in TensorFlow Lite and ONNX formats and are incorporated into Modelica via SMArtInt interface blocks.
The pipe model is spatially discretized into 100 segments. Each segment requires one inference, which is performed efficiently in batch mode using a single neural network instance.
This model compares neural network outputs directly to a physical reference for a set of test inputs. Important variables to monitor:
heatTransfer.Nus): Neural network output for heat
transfer estimation.heatTransfer.alphas): Derived from the predicted
Nusselt number.In this model, the neural network replaces the heat transfer calculation inside the pipe simulation. Key variables include:
pipe.port_a.h_outflow): Enthalpy at the pipe
entry.pipe.port_b.h_outflow): Enthalpy at the pipe
exit.pipe.heatPorts.T): Port/wall temperature in different
pipe segments.| Name | Description |
|---|---|
| Tensor Flow Lite Tester | |
| ONNX Tester |