How inport 1 is computed in the model Brayton cycle

3 次查看(过去 30 天)
Hello I am studying Brayton cycle model Brayton Cycle (Gas Turbine) with Custom Components - MATLAB & Simulink (mathworks.com) and it is hard to comprehend where the inport 1 gets the signal. It seems like it is not connected to anything so it makes me perplex. Could you tell me what it is like?

采纳的回答

Vignesh Murugavel
Vignesh Murugavel 2022-11-7
The inport 1 gets the Value from ts_N , defined in the Workspace as a double timeseries Variable.
In the Configuration Parameters which can be accessed by pressing CTRL +E , go to Data Import/Export Category.
The Data Import/Export category includes parameters for configuring input data for simulation (for example, for Inport blocks) and output data (for example, from Outport blocks). The parameters allow you to import input signal and initial state data from a workspace and export output signal and state data to the MATLAB workspace during simulation.
In the Data Import/Export section you can observe that 3 Variables are loaded as inputs to the Model from the Workspace, this is where the inport 1 gets its signal value (ts_N) from.
The Value of ts_N Variable is defined in PreLoadFcn Callback Function which can be viewed and edited by going to the Modeling tab, then clicking Model Settings > Model Properties > PreLoadFcn.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Troubleshooting 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by