Adding custom components to a custom component ssc file
4 ビュー (過去 30 日間)
古いコメントを表示
I am trying to create a custom component A (via *.ssc file) that includes a variable number of the another custom component B (created via composite modeling techniques). Basically this should be very similar to the segmented pipeline approach, see Segemented pipeline using component arrays. Composite component B is in a user-created library in the library browser. This library is on the same level as the Simscape library in the library hierarchy, i.e. not part of any of the Simscape sub-libraries, see below.

My questions is, how do I call out part B in the the part A .ssc file, see code snippet below for the example of the segemented pipeline? It is not part of the foundation library. Is there another root-level library to call-out here?
% Declare array of N components
for i=1:N
components (ExternalAccess=none)
pipe(i) = foundation.isothermal_liquid.elements.pipe(length = segm_length);
end
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Composite Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!