- Using functions, you can seperate each of the sections in to seperate function and make a call to both the functions return the values as requirement from one which can be used in the other depending on your system configuration. https://www.mathworks.com/help/matlab/ref/function.html
- You can simulate and modulate physical systems using "Simscape". Here is an example it might help provide some more information.
Using Matlab pdepe solver
2 views (last 30 days)
Show older comments
luckywell seyitini
on 6 Apr 2024
Commented: luckywell seyitini
on 18 Apr 2024
I want to simulate performance of a hybrid thermal energy storage system with a latent and sensible heat storage sections, but i am new to Matlab. I have developed a code for transient heat transfer in the latent heat storage section, between a heat transfer fluid and the PCM capsules. I am seeking for assistance on how to include a similar code for the sensible section. The conditon for linking the two sections is that, the HTF outlet temperature from the latent section is equal to the HTF inlet temperature for the sensible section. Please help on how I can link the two codes.
0 Comments
Accepted Answer
Gyan Vaibhav
on 16 Apr 2024
Hi luckywell,
I understand that you are trying to use the values you get in the LHS section of your code in to the SHS section during simulation. If you could have provided the code I could have been able to suggest you better, however here are a few tips that might help.
Hope this helps.
Thanks
Gyan
More Answers (0)
See Also
Categories
Find more on Fluid Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!