Typical Simscape Language Tasks
Simscape™ block libraries contain a comprehensive selection of blocks that represent engineering components such as valves, resistors, springs, and so on. These prebuilt blocks, however, may not be sufficient to address your particular engineering needs. When you need to extend the existing block libraries, use the Simscape language to define customized components, or even new physical domains, as textual files. Then convert your textual components into libraries of additional Simscape blocks that you can use in your model diagrams.
The following table lists typical tasks along with links to background information and examples.
|Create a custom component model based on equations|
|Create a custom component model constructed of other components|
|Generate a custom block from a Simscape component file|
|Add a custom block library to Simscape libraries|
|Define a new domain, with associated Through and Across variables, and then use it in custom components|
|Create a component that supplies domain-wide parameters (such as fluid temperature) to the rest of the model|