- sh.orifices.orifice_variable
- foundation.physical_signal.lookup_tables.one_dimensional (or two_dimensional, depending)
Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Simscape composite component path
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Sebastian Castro
2015년 10월 27일
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
Sebastian Castro
2015년 10월 27일
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
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!