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-graph‐style models in Simulink
For more information you can refer to the following resources:
I hope this helps!