Adding custom components to a custom component ssc file

조회 수: 1 (최근 30일)
Johannes Lutz
Johannes Lutz 2021년 8월 25일
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개)

카테고리

Help CenterFile Exchange에서 Composite Components에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by