Base Classes
The package containes templates to include different types of
neural networks in Modelica. One find blocks within the model which
have to be connected with the dessired in- and outputs. The user
should extend the model, give all parameters and give a interface
which has to be connected to the inner blocks.
Steps to include a model:
- Create and train a model in, e.g., TensorFlow
- Export a trained model as TfLite or ONNX model
- Extend the appropriate base class
- Parametrize the model (provide path, number of in- and outputs,
etc.)
- Define the interface and connect the in- and outputs of the
blocks. The arrays have the same structure as those in the AI model
(e.g. TensorFlow model): the inputs have to be connected in the
same manner as they are used in the neural network during
training.
The examples
PipeLocalHeatTransfer_smallNN uses this approach to create a
model. The BaseClasses are also extended by the various neural
network blocks.
Contents
Generated at 2026-06-23T20:19:05Z by OpenModelicaOpenModelica 1.26.9 using
GenerateDoc.mos