Adding custom components to a custom component ssc file

4 views (last 30 days)
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

Answers (0)

Categories

Find more on Composite Components in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!