Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Foundation Domain Types and Directory Structure

Simscape Foundation libraries are organized in a package containing domain and component Simscape files. The name of the top-level package directory is +foundation, and the package consists of subpackages containing domain files, structured as follows:

- +foundation 
|-- +electrical 
| |-- electrical.ssc 
| |-- ...
|-- +gas 
| |-- gas.ssc 
| |-- ...
|-- +hydraulic  
| |-- hydraulic.ssc 
| |-- ...
|-- +magnetic  
| |-- magnetic.ssc 
| |-- ...
|-- +mechanical  
| |-- +rotational 
| | |-- rotational.ssc 
| | |-- ...
| |-- +translational 
| | |-- translational.ssc 
| | |-- ...
|-- +pneumatic  (kept for compatibility purposes)
| |-- pneumatic.ssc 
| |-- ...
|-- +thermal  
| |-- thermal.ssc 
| |-- ...
|-- +thermal_liquid  
| |-- thermal_liquid.ssc 
| |-- ...
|-- +two_phase_fluid  
| |-- two_phase_fluid.ssc 
| |-- ...

To use a Foundation domain in a component declaration, refer to the domain name using the full path, starting with the top package directory. The following example uses the syntax for the Simscape Foundation mechanical rotational domain:

r = foundation.mechanical.rotational.rotational; 

The name of the top-level package directory is +foundation. It contains a subpackage +mechanical, with a subpackage +rotational, which in turn contains the domain file rotational.ssc.

Was this topic helpful?