functioncfdExchangeData
Exchange data between CFD and Modelica
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function calls a C function to conduct the data exchange between Modelica and CFD program during the coupled simulation.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | flag | Communication flag to CFD | |
| Modelica.Units.SI.Time | t | Current Modelica simulation time to CFD | |
| Modelica.Units.SI.Time | dt | Requested synchronization time step size | |
| Real | u | Input to CFD | |
| Integer | nU | Number of inputs to CFD | |
| Integer | nY | Number of outputs from CFD |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | modTimRea | Current model time from CFD | |
| Real | y | Output computed by CFD | |
| Integer | retVal | Return value for CFD simulation status |
Revisions
-
August 16, 2013, by Wangda Zuo:
First implementation.