i want to download bond graphs of mathworks models

29 views (last 30 days)
Archana
Archana on 22 Oct 2025
Commented: Archana on 21 Nov 2025 at 16:54
i want to extract bong graphs from the mathworks models for eg. residential refrigerator, wind turbien or any.
i am trying to get from slwebview. but i am not able to get . i got the zip file but it consistes of 1kb or it doesnot open.
is it possibòle to extract bond graph? i am using matlab 2025a version. can anybody help m ewith this?

Answers (1)

Soumya
Soumya on 28 Oct 2025
I understand that you are trying to extract bond graphs from MathWorks models like the residential refrigerator or wind turbine examples, and you are using ‘slwebview’ to generate web views. However, the .zip file you are getting is very small or not opening properly.
Simulink models are not based on bond-graph formalism, so they do not contain bond graph representations internally. The ‘slwebview’ function is designed to export a visual web-based view of Simulink models and not to generate or extract bond graphs. That is why the ‘.zip’ file you’re getting is small and doesn’t contain what you expect.
If you would like to work with bond graphs in MATLAB, you have a couple of options:
  • Use Simscape for Physical Modeling: Simscape models use energy-based domains (electrical, mechanical, thermal, etc.) and are conceptually like bond graphs. You can interpret Simscape connections as effort-flow pairs, which are the basis of bond graphs.
  • Use Add On Bond Graph Libraries: There are MATLAB/Simulink add-on libraries developed by the that provide bond-graph blocks and functionality. For example, the “Bond Graph Add-On Block Library BG V2.1” on the MathWorks File Exchange offers a set of configurable blocks to build bond-graphstyle models in Simulink
For more information you can refer to the following resources:
I hope this helps!
  1 Comment
Archana
Archana on 21 Nov 2025 at 16:54
Thank you for the response.
I have this question,
I am working with MATLAB/Simulink physical models and my goal is to compute ARR(analytical redundancy residuals/relations) residuals automatically, so I can compute thresholds, compute coherence vectors, and ultimately detect faults for machine-learning training and get fault class.
I tried the Bond Graph method, but rebuilding a full Bond Graph for every new model is very time-consuming and one should have good knowledge of pysics if i am not wrong. I want to know if MATLAB provides any tools, workflows, or automated methods that can generate residuals directly from Simulink or Simscape models, without manually constructing Bond Graphs every time.
Any solutions or recommended steps for automatic ARR residual generation in MATLAB would be extremely helpful.
I am using FDI tools, Simlogging and system identification toolbox.
simulink residuals genartion i snot available .

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!