how can I plot a P-v and T-S diagrams in simulink
20 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to make a Thermo plots like P-v and T-S based on the thermodynamic process I am modeling in simulink.
till now I have been working with the P-H diagram block but I need more details for the process.
are there any blocks for making a plot based on chosen properties? I know I can plot each parameter as time dependet by using SCOP, but that does not help me...
if the plot can be made by adding a code diractly to the main program or by using the MATLAB function block please add a manuall or a wide explanation becausse I have never done that before.
Thank YOU!!
0 个评论
回答(1 个)
Umang Pandey
2024-4-16
Hi Tomer,
There are no existing blocks to fetch Pv and Ts diagrams directly, however, you can make use of the MATLAB Function Block to obtain these plots.
Within the MATLAB function block, you can essentially write your function that takes in the input parameters which are obtainable from your model and create corresponding plots. The block automatically creates input ports corresponding to each specified input parameter, which can be connected via right signal lines from the model.
You can refer to the following MATLAB documentation on MATLAB Function blocks for more information and examples:
Hope this helps!
Regards,
Umang
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!