Adding custom components to a custom component ssc file

4 Ansichten (letzte 30 Tage)
Johannes Lutz
Johannes Lutz am 25 Aug. 2021
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

Antworten (0)

Kategorien

Mehr zu Composite Components finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by