Adding custom components to a custom component ssc file
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Composite Components en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!