- sh.orifices.orifice_variable
- foundation.physical_signal.lookup_tables.one_dimensional (or two_dimensional, depending)
Info
This question is closed. Reopen it to edit or answer.
Simscape composite component path
3 views (last 30 days)
Show older comments
Hello,
I am trying to create a custom composite component for Simscape. My simple question is how do I find out the path to the components I want to include in the composite component?
Example: I want to add a "Fixed Orifice Empirical" to the comopnent. What path do I have to use in the following code block:
components (Hidden=true)
r1 = foundation.hydraulic.... ???;
end
I have searched for quite some time in the documentation but couldn't find anything. If someone could point me in the right direction as to where to look, that would be very helpful.
Thank you, Johannes
0 Comments
Answers (1)
Sebastian Castro
on 27 Oct 2015
The Fixed Orifice Empirical block is actually not directly developed as an .ssc file, so you can't use it directly as a component. It looks like you'd have to combine a Variable Orifice with a 1-D Lookup Table block that uses measured quantities.
These are
... or, you could implement your own .ssc empirical orifice by taking foundation.hydraulic.elements.constant_area_orifice and replacing its equations section with a call to the tablelookup function. This might actually be easier than the above.
- Sebastian
2 Comments
Sebastian Castro
on 27 Oct 2015
It's not very straightforward, especially for the add-on libraries which are protected as .sscp files.
So, you can type matlabroot to figure out your MATLAB install directory. From there, you can go to
- matlabroot\toolbox\physmod\simscape\library\m\+foundation\ for the Simscape foundation library
- matlabroot\toolbox\physmod\sh\sh\+sh for SimHydraulics
... and so on. You sort of have to know the folder structure and take a good guess. The component name starts with the + folder in those paths above.
- Sebastian
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!